From e7d689fccd98be8205752494ee8fcc38689e7790 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 22 Jan 2026 18:24:55 +0000 Subject: [PATCH 1/2] feat: add fields and messages for GKE Pods and IP masquerading docs: update comments PiperOrigin-RevId: 859595508 Source-Link: https://github.com/googleapis/googleapis/commit/3343c4ed68f17a8910a04ef54647e337818e7ec2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6da65f0d5fd4475a191de572b15dbd90ebecee93 Copy-Tag: eyJwIjoiTmV0d29ya01hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6IjZkYTY1ZjBkNWZkNDQ3NWExOTFkZTU3MmIxNWRiZDkwZWJlY2VlOTMifQ== --- .../Networkmanagement/V1/ConnectivityTest.php | Bin 0 -> 5490 bytes .../Networkmanagement/V1/Reachability.php | 84 ++ .../Cloud/Networkmanagement/V1/Trace.php | Bin 0 -> 21949 bytes .../Networkmanagement/V1/VpcFlowLogs.php | 102 ++ .../V1/VpcFlowLogsConfig.php | Bin 0 -> 4363 bytes .../Cloud/NetworkManagement/V1/AbortInfo.php | 173 +++ .../NetworkManagement/V1/AbortInfo/Cause.php | 394 +++++ .../V1/AppEngineVersionInfo.php | 169 +++ .../V1/CloudFunctionInfo.php | 169 +++ .../V1/CloudRunRevisionInfo.php | 169 +++ .../V1/CloudSQLInstanceInfo.php | 241 +++ .../NetworkManagement/V1/ConnectivityTest.php | 701 +++++++++ .../V1/CreateConnectivityTestRequest.php | 199 +++ .../V1/CreateVpcFlowLogsConfigRequest.php | 186 +++ .../V1/DeleteConnectivityTestRequest.php | 86 ++ .../V1/DeleteVpcFlowLogsConfigRequest.php | 108 ++ .../NetworkManagement/V1/DeliverInfo.php | 245 ++++ .../V1/DeliverInfo/GoogleServiceType.php | 95 ++ .../V1/DeliverInfo/Target.php | 179 +++ .../V1/DirectVpcEgressConnectionInfo.php | 204 +++ .../Cloud/NetworkManagement/V1/DropInfo.php | 271 ++++ .../NetworkManagement/V1/DropInfo/Cause.php | 863 +++++++++++ .../V1/EffectiveVpcFlowLogsConfig.php | 641 ++++++++ .../V1/EffectiveVpcFlowLogsConfig/Scope.php | 93 ++ .../Cloud/NetworkManagement/V1/Endpoint.php | 839 +++++++++++ .../V1/Endpoint/AppEngineVersionEndpoint.php | 78 + .../V1/Endpoint/CloudFunctionEndpoint.php | 70 + .../V1/Endpoint/CloudRunRevisionEndpoint.php | 124 ++ .../V1/Endpoint/ForwardingRuleTarget.php | 79 + .../V1/Endpoint/NetworkType.php | 88 ++ .../NetworkManagement/V1/EndpointInfo.php | 307 ++++ .../NetworkManagement/V1/FirewallInfo.php | 516 +++++++ .../V1/FirewallInfo/FirewallRuleType.php | 147 ++ .../V1/FirewallInfo/TargetType.php | 65 + .../NetworkManagement/V1/ForwardInfo.php | 135 ++ .../V1/ForwardInfo/Target.php | 120 ++ .../V1/ForwardingRuleInfo.php | 415 ++++++ .../NetworkManagement/V1/GKEMasterInfo.php | 204 +++ .../V1/GetConnectivityTestRequest.php | 86 ++ .../V1/GetVpcFlowLogsConfigRequest.php | 108 ++ .../Cloud/NetworkManagement/V1/GkePodInfo.php | 156 ++ .../V1/GoogleServiceInfo.php | 105 ++ .../GoogleServiceInfo/GoogleServiceType.php | 109 ++ .../NetworkManagement/V1/HybridSubnetInfo.php | 135 ++ .../NetworkManagement/V1/InstanceInfo.php | 425 ++++++ .../V1/InstanceInfo/Status.php | 65 + .../V1/InterconnectAttachmentInfo.php | 279 ++++ .../V1/InterconnectAttachmentInfo/Type.php | 78 + .../V1/IpMasqueradingSkippedInfo.php | 110 ++ .../V1/IpMasqueradingSkippedInfo/Reason.php | 103 ++ .../V1/LatencyDistribution.php | 67 + .../V1/LatencyPercentile.php | 109 ++ .../V1/ListConnectivityTestsRequest.php | 282 ++++ .../V1/ListConnectivityTestsResponse.php | 135 ++ .../V1/ListVpcFlowLogsConfigsRequest.php | 251 ++++ .../V1/ListVpcFlowLogsConfigsResponse.php | 135 ++ .../V1/LoadBalancerBackend.php | 203 +++ .../HealthCheckFirewallState.php | 69 + .../V1/LoadBalancerBackendInfo.php | 409 ++++++ .../HealthCheckFirewallsConfigState.php | 86 ++ .../NetworkManagement/V1/LoadBalancerInfo.php | 218 +++ .../V1/LoadBalancerInfo/BackendType.php | 71 + .../V1/LoadBalancerInfo/LoadBalancerType.php | 85 ++ .../NetworkManagement/V1/LoadBalancerType.php | 120 ++ .../Cloud/NetworkManagement/V1/NatInfo.php | 517 +++++++ .../V1/NatInfo/CloudNatGatewayType.php | 85 ++ .../NetworkManagement/V1/NatInfo/Type.php | 85 ++ .../NetworkManagement/V1/NetworkInfo.php | 203 +++ .../V1/OperationMetadata.php | 295 ++++ .../NetworkManagement/V1/ProbingDetails.php | 485 ++++++ .../V1/ProbingDetails/EdgeLocation.php | 71 + .../V1/ProbingDetails/ProbingAbortCause.php | 65 + .../V1/ProbingDetails/ProbingResult.php | 82 ++ .../V1/ProbingDetails/SingleEdgeResponse.php | 288 ++++ .../V1/ProxyConnectionInfo.php | 419 ++++++ .../V1/QueryOrgVpcFlowLogsConfigsRequest.php | 185 +++ .../V1/QueryOrgVpcFlowLogsConfigsResponse.php | 135 ++ .../V1/ReachabilityDetails.php | 197 +++ .../V1/ReachabilityDetails/Result.php | 94 ++ .../NetworkManagement/V1/RedisClusterInfo.php | 249 ++++ .../V1/RedisInstanceInfo.php | 237 +++ .../V1/RerunConnectivityTestRequest.php | 71 + .../Cloud/NetworkManagement/V1/RouteInfo.php | 978 +++++++++++++ .../V1/RouteInfo/NextHopType.php | 150 ++ .../V1/RouteInfo/RouteScope.php | 64 + .../V1/RouteInfo/RouteType.php | 112 ++ .../V1/ServerlessExternalConnectionInfo.php | 67 + .../V1/ServerlessNegInfo.php | 68 + .../ShowEffectiveFlowLogsConfigsRequest.php | 235 +++ .../ShowEffectiveFlowLogsConfigsResponse.php | 135 ++ .../Cloud/NetworkManagement/V1/Step.php | 1295 +++++++++++++++++ .../Cloud/NetworkManagement/V1/Step/State.php | 352 +++++ .../V1/StorageBucketInfo.php | 67 + .../Cloud/NetworkManagement/V1/Trace.php | 190 +++ .../V1/UpdateConnectivityTestRequest.php | 141 ++ .../V1/UpdateVpcFlowLogsConfigRequest.php | 171 +++ .../NetworkManagement/V1/VpcConnectorInfo.php | 135 ++ .../V1/VpcFlowLogsConfig.php | 810 +++++++++++ .../VpcFlowLogsConfig/AggregationInterval.php | 92 ++ .../CrossProjectMetadata.php | 67 + .../V1/VpcFlowLogsConfig/Metadata.php | 71 + .../V1/VpcFlowLogsConfig/State.php | 64 + .../VpcFlowLogsConfig/TargetResourceState.php | 65 + .../NetworkManagement/V1/VpnGatewayInfo.php | 245 ++++ .../NetworkManagement/V1/VpnTunnelInfo.php | 339 +++++ .../V1/VpnTunnelInfo/RoutingType.php | 72 + .../create_vpc_flow_logs_config.php | 118 ++ .../delete_vpc_flow_logs_config.php | 91 ++ .../get_iam_policy.php | 72 + .../get_location.php | 57 + .../get_vpc_flow_logs_config.php | 82 ++ .../list_locations.php | 62 + .../list_vpc_flow_logs_configs.php | 85 ++ .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 ++ .../update_vpc_flow_logs_config.php | 88 ++ .../create_connectivity_test.php | 113 ++ .../delete_connectivity_test.php | 81 ++ .../get_connectivity_test.php | 72 + .../get_iam_policy.php | 72 + .../get_location.php | 57 + .../list_connectivity_tests.php | 77 + .../list_locations.php | 62 + .../rerun_connectivity_test.php | 95 ++ .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 ++ .../update_connectivity_test.php | 92 ++ .../create_vpc_flow_logs_config.php | 118 ++ .../delete_vpc_flow_logs_config.php | 91 ++ .../get_iam_policy.php | 72 + .../VpcFlowLogsServiceClient/get_location.php | 57 + .../get_vpc_flow_logs_config.php | 82 ++ .../list_locations.php | 62 + .../list_vpc_flow_logs_configs.php | 85 ++ .../query_org_vpc_flow_logs_configs.php | 81 ++ .../set_iam_policy.php | 77 + .../show_effective_flow_logs_configs.php | 87 ++ .../test_iam_permissions.php | 84 ++ .../update_vpc_flow_logs_config.php | 88 ++ .../OrganizationVpcFlowLogsServiceClient.php | 693 +++++++++ .../V1/Client/ReachabilityServiceClient.php | 668 +++++++++ .../V1/Client/VpcFlowLogsServiceClient.php | 748 ++++++++++ .../v1/src/V1/gapic_metadata.json | 201 +++ ...n_vpc_flow_logs_service_client_config.json | 72 + ...pc_flow_logs_service_descriptor_config.php | 198 +++ ...c_flow_logs_service_rest_client_config.php | 238 +++ .../reachability_service_client_config.json | 87 ++ ...reachability_service_descriptor_config.php | 214 +++ ...eachability_service_rest_client_config.php | 250 ++++ .../vpc_flow_logs_service_client_config.json | 82 ++ ...pc_flow_logs_service_descriptor_config.php | 238 +++ ...c_flow_logs_service_rest_client_config.php | 260 ++++ ...ganizationVpcFlowLogsServiceClientTest.php | 1039 +++++++++++++ .../Client/ReachabilityServiceClientTest.php | 1202 +++++++++++++++ .../Client/VpcFlowLogsServiceClientTest.php | 1194 +++++++++++++++ 155 files changed, 32372 insertions(+) create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/ConnectivityTest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Reachability.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Trace.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogs.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogsConfig.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo/Cause.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AppEngineVersionInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudFunctionInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudRunRevisionInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudSQLInstanceInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ConnectivityTest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateConnectivityTestRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateVpcFlowLogsConfigRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteConnectivityTestRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteVpcFlowLogsConfigRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/GoogleServiceType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/Target.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DirectVpcEgressConnectionInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo/Cause.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig/Scope.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/AppEngineVersionEndpoint.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudFunctionEndpoint.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudRunRevisionEndpoint.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/ForwardingRuleTarget.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/NetworkType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EndpointInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/FirewallRuleType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/TargetType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo/Target.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardingRuleInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GKEMasterInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetConnectivityTestRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetVpcFlowLogsConfigRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GkePodInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo/GoogleServiceType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/HybridSubnetInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo/Status.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo/Type.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo/Reason.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyDistribution.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyPercentile.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsResponse.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsResponse.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend/HealthCheckFirewallState.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo/HealthCheckFirewallsConfigState.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/BackendType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/LoadBalancerType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/CloudNatGatewayType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/Type.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NetworkInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/OperationMetadata.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/EdgeLocation.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingAbortCause.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingResult.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/SingleEdgeResponse.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProxyConnectionInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsResponse.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails/Result.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisClusterInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisInstanceInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RerunConnectivityTestRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/NextHopType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteScope.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessExternalConnectionInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessNegInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsResponse.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step/State.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/StorageBucketInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Trace.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateConnectivityTestRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateVpcFlowLogsConfigRequest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcConnectorInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/AggregationInterval.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/CrossProjectMetadata.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/Metadata.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/State.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/TargetResourceState.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnGatewayInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo.php create mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo/RoutingType.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/create_connectivity_test.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/delete_connectivity_test.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_connectivity_test.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_location.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_connectivity_tests.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_locations.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/update_connectivity_test.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_location.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_locations.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/Client/OrganizationVpcFlowLogsServiceClient.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/Client/ReachabilityServiceClient.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/Client/VpcFlowLogsServiceClient.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_client_config.json create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_descriptor_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_client_config.json create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_descriptor_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_rest_client_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_client_config.json create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_descriptor_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_rest_client_config.php create mode 100644 owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/OrganizationVpcFlowLogsServiceClientTest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/ReachabilityServiceClientTest.php create mode 100644 owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/VpcFlowLogsServiceClientTest.php diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/ConnectivityTest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/ConnectivityTest.php new file mode 100644 index 0000000000000000000000000000000000000000..ea954ffbe505e4944ef94386627a2745adcc50d2 GIT binary patch literal 5490 zcmcIoTXWmS6%MKUp+r$oWJ5}uz_e4#)0!MHnKq^EBp?aNoKhr9QgYSd%oYTe6k-T~ zagm4hXr_;S?C(si6%YDM>Z_(l5#*+9Kd{hF+mhIZhNaQ{M^cE%WFI&-I_8-aTi9g2LO*q@mQP(v zHM)DK+i3AdX8 zT#f$f&hVe?7~MmIntF+ztCxoD7K_)Xx(2yzYl}t!o_p8r0qb^L4D$T?M~>|nm>|A- z;mp6cLgbp#$_eVZu9)1Yl--qA7cZLi1!mT-89Jw3C zk-I$D+l|mw$H=>p&%^rId;G(SedgFm{F6wW7Z;{w-jBT(3EYhYTt~~Z#0$LeL-t=Q zkeRL}VG9;neToSwvA$>4N zraC12kSk1{S+gKCVA)iA)bzwv6ipSrn&Ujv&db#}f@1mZQ1~2DnoH3N!U7@!Ki*!9 z8b>QP%Jt9;+!Z+352IbF`F5Sbhp0+BS9^xZx~+~))xe{y^X1)+AiFQu4m!7!AEZBPtsqx^YVBsYlhD9K3z|y5^1~kn4V)Bbb(f?L{1qU}P zJFEdLYA=T)G(Vjn!qYe*^KYWRuJWd>@e1(r1JmxQ=EUG+^Uce@VdL{E`wxKCxP}Du zqu~%$*Rg$gk)`Xf=-95$4P6qjG7JkV9tRpP(ly~OZ1!#Uwd(3Do^D`LaRZOPCVT^T zrall~b#ab~EZFJ7*K-6rwk&rzQqe*U9gf43>G=nLPb7paWK3Jt2_BW1<`P5aX%H6T z^8}MQ17T9eA39WId5|uAHis=WR8WfWJGeDepJdQ`APinoa-n)Sy@_T9?6=4}fq?$& zztSynn>z(1dBqU#m5E#;^5iQ2b_dcf#a?o~&hltY*ny33Jq8x|@+Pb>rH-wOJAB~` z(jj)tJ)#C7&vCesqsxpd9Y*9OUd3V(RL3FI8W--u z9a!;1^~bVrnT2HU0qo3nC^mz@HNq0x>pleWR>w?8${^l)zHvc8gp^0!OGBfC>EZL0 zCv28LYTW8yfLK>LFB+{skj`0CAt&{AQz=&ut4byFfv^dwqjHl(5}5?f?ag|lPR19L znBuF|dPixYSY{zRgb!y`tMDtx9yVGpqzNL>Evkbj$AJ*sBjB5 zY7MzUN^*^@v@%I%)M*oKkUPo?`7E;_tiVFEUCu0)cHu6W-E&IYutg@z-_T1tusyZN z5+VEFBy7(ZUYIb;*cb!T=W$CHp3RXeGjMP)G7upTDXb);k2e`M%~_06g||#|;T|ke z*R|b<9tp8}WMR3Gs0v@eGAD8#@)kxp_G1}dTr+uNj#KKa3d@mQcR*+|DA!*;a0Vt6>{djaEk!XIHf7LRZc zl?^X;{Lkk&{tc6|{{cu((hNrBCPF_Cm79dfMgRVc!T%Ga)E>@iqN#yLd6!EU%5%72 zwxu$|Dl;f-Cm9dp#kg;e5)HYQ&x!GpfF#HZG!6MeKQJf0vktf<9Kr^TC_2uyzRjm% zs*s<FvdH0M0CQ)r;Za31Hs4g z>fR$*pD<+?wl1je+K!EMUbTpdv^bhS-z7nqf&P={{H!cuUGHsK#BPF1v!Wl~?S7`{ zGb)fO{MhJYc*au3cl5_Y3*T&-0*XQWy$ zH|p(byQ9=`EZ=Cyi`fBeMHY-z`hEB$wn8p7S{+iBPukP8UuCJpAMGJBS5CjQ(G2Uq+MfES>F zJ>zW?8xzmGx$1>gM`7nMzyq4(sYDdpLR%`c3#MH};6f-cbx~#seOg44>Jq;0oaX DmZkDz literal 0 HcmV?d00001 diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Reachability.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Reachability.php new file mode 100644 index 000000000000..20446620128e --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Reachability.php @@ -0,0 +1,84 @@ +internalAddGeneratedFile( + ' +à +4google/cloud/networkmanagement/v1/reachability.proto!google.cloud.networkmanagement.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto9google/cloud/networkmanagement/v1/connectivity_test.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"¬ +ListConnectivityTestsRequestC +parent ( B3àAúA- ++cloudresourcemanager.googleapis.com/Project + page_size ( + +page_token (  +filter (  +order_by ( "• +ListConnectivityTestsResponseF + resources ( 23.google.cloud.networkmanagement.v1.ConnectivityTest +next_page_token (  + unreachable ( "e +GetConnectivityTestRequestG +name ( B9àAúA3 +1networkmanagement.googleapis.com/ConnectivityTest"Æ +CreateConnectivityTestRequestC +parent ( B3àAúA- ++cloudresourcemanager.googleapis.com/Project +test_id ( BàAJ +resource ( 23.google.cloud.networkmanagement.v1.ConnectivityTestBàA"¡ +UpdateConnectivityTestRequest4 + update_mask ( 2.google.protobuf.FieldMaskBàAJ +resource ( 23.google.cloud.networkmanagement.v1.ConnectivityTestBàA"h +DeleteConnectivityTestRequestG +name ( B9àAúA3 +1networkmanagement.googleapis.com/ConnectivityTest"g +RerunConnectivityTestRequestG +name ( B9àAúA3 +1networkmanagement.googleapis.com/ConnectivityTest"Ö +OperationMetadata/ + create_time ( 2.google.protobuf.Timestamp, +end_time ( 2.google.protobuf.Timestamp +target (  +verb (  + status_detail (  +cancel_requested ( + api_version ( 2– +ReachabilityServiceç +ListConnectivityTests?.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest@.google.cloud.networkmanagement.v1.ListConnectivityTestsResponse"KÚAparent‚Óä“<:/v1/{parent=projects/*/locations/global}/connectivityTestsÔ +GetConnectivityTest=.google.cloud.networkmanagement.v1.GetConnectivityTestRequest3.google.cloud.networkmanagement.v1.ConnectivityTest"IÚAname‚Óä“<:/v1/{name=projects/*/locations/global/connectivityTests/*}¬ +CreateConnectivityTest@.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest.google.longrunning.Operation"°ÊAG +2google.cloud.networkmanagement.v1.ConnectivityTestOperationMetadataÚAparent,test_id,resource‚Óä“F":/v1/{parent=projects/*/locations/global}/connectivityTests:resource² +UpdateConnectivityTest@.google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest.google.longrunning.Operation"¶ÊAG +2google.cloud.networkmanagement.v1.ConnectivityTestOperationMetadataÚAupdate_mask,resource‚Óä“O2C/v1/{resource.name=projects/*/locations/global/connectivityTests/*}:resource +RerunConnectivityTest?.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest.google.longrunning.Operation"•ÊAG +2google.cloud.networkmanagement.v1.ConnectivityTestOperationMetadata‚Óä“E"@/v1/{name=projects/*/locations/global/connectivityTests/*}:rerun:*ñ +DeleteConnectivityTest@.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest.google.longrunning.Operation"vÊA* +google.protobuf.EmptyOperationMetadataÚAname‚Óä“<*:/v1/{name=projects/*/locations/global/connectivityTests/*}TÊA networkmanagement.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB‡ +%com.google.cloud.networkmanagement.v1BReachabilityServiceProtoPZScloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpbª!Google.Cloud.NetworkManagement.V1Ê!Google\\Cloud\\NetworkManagement\\V1ê$Google::Cloud::NetworkManagement::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Trace.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Trace.php new file mode 100644 index 0000000000000000000000000000000000000000..5f4282bf8c7bfefbb47306b7416b4e3f8e27367e GIT binary patch literal 21949 zcmc&+-H#htR$uqGZ+AMCN+$8-YaAytllkgQda|>-Js&&%sP6X0ZF~ID*$fRej$PgH zrek|;cV+|H2PBYor4B&+gutjyqj%gE0#+=sfi%BRt6N)C+swwA1TMI|n}^To*47M>A7rQF6VF^dn;m=8lkwm^rkfD_(EsZoX4CSc z{=s(NJMI;{$DL>W;dpB+c&h-(=T0pT4u|p6crV`iu&>@c-|P7=x(&v-?UP1?zAAqF zdnxhOmtqO~h6LYW4%(REpp9pDFJDm@JEQ)cLwZ#l^x;slRPJ|DVv)JR-WF%PL2on! zu?&z&WmC6TH}7nG;R+j$nnxR9zbh6eQ*SiM%w^{>|KQaG2%4B+XM}Y)9Dmjs_grRr zx8KVwfQH4~Z(kP+402wq_7wAg|CqwG{XQ)SF~owY+v}TeC0uW#Nt0}#>~>Bj-o)*V zhoj6qaIDz25Rkag#R-cUq?h#n#v(EF3U|e?-;MyMzcH|_5X=ESg&-4Km1V~vYD-3xbL9m0*MqO785677o67S&t zs9ThD4aW-GV{x?yJ_e5Y$R z3GWBe?3ioic&%cBwTMe4B1hqwSuQV@d){#$V3{?>yO98INzPCd1BK%L%$dX}6xS;h zPzs$#!|^n;&Ipnyg*?Hl>FgIL=s%C5fn2 zFt4Dd5w^lyCI$6^4N7`^Q^zm7t=!mP6FZ}k>kW?j1J8vtPe?0WOuUKt z(a7Ps`*Lc4R+2eB8MtHbS)b8fN{p6CZJZ1mYN|r}EipgnOfxSsp4StcakZmGy&)_( zH$Ql8D#Xi-=iLN&;LiWx`HT+yR9p^e0H}iQ6L=ZYlf1&%w-R7C)j>g`2#$M#hyjt2 z`{)F?r5|<-`KdGw}Jk-5q#GnQO`M`4g+&k;Iq#=M}LiJ<1ovxn?Wha@=;c zS$B%%?Xpv{zGhz%=kd7FaVsP2zBO;ZC|)qeq1N2Jd=tp67wjA2nlV(Y)Y>H%@*hxj z(Y`2b1B7PRYbER8)d*D$M6}IdUe>-UGR8bPT&%Qt;Tw_3a^dZEwb&}xs@A0lUHN+5 zb*ek%s^jiEjV6J-7y*$O8ttmvaQ4d#ayha{vsG*4cO19SF5btsUbAnBtU+PDS#;~| zLZ#f?b+8F)cdtj0;JMSNIL#(Dc*lCleo0&bd6kEF^_>Pi-Yz$s2l-0HZL}+nwLqsM z0i3w;MfmegoZ-0nR&Yvb8eZCd%_?w(U^Sufk6h4<@4S3%Vp7VN&bTEfv_4vnb8PyobHH|?Cb zPRFi}*MCI==9axI=BxRZwNB`o_sexx351J3Aypr@okpHc%(`t~5Ei!oyAL%Lw8&X| zRVl{5+$8FhmS}f)ZwMNT2Pu#a(b{^n}>rP{@+$7F+`G2f& zp|C2_FrXvWuDSo36KkfW1qEv`zN6#LbC(iEDokD#^C#mz2gzysoJe!m$Gm9@ zgq6$X5*$U|{E*?0wsHF-j(ho`?^NR<#j$BxR8OCFjwXmr=kfH4I7_ZL;zPI7?G8^6 zoKVP_CN~coe|a?NLicjo%LrhY01E$Ttz{U_0emKoxmI}MwpfBgGCi4a__V&6#BP~8 z#G(JmB=@0MB9(nIQQEH6Zbpjr+}fc0Nm;Gk;ezWzL_L4G&f~K|Dc>e3wU5?&q@+p|1~LK zTeNGz8_{|cf~{{RaaZ&bbo?7F-V|CX_ows1(qsPe&@&+;;kF*uqfP=e-fkJXq*2^0 z7om~;3H4f~Tzn`ELW;CKX)}M6Z4NsO<-K|Z{st?%@bJ8SN4#MuIzo^y7Rh$)!Mf~V zQh34wDLds(1Vbhvi}q{cWew4AcA%tAqj||bcvakNK7=2zr+t)oq|5f(;!OqUg|ojS1gG#MgOf^3rp0^=8~hiu zbxoWZKp(r0ha-uOH0S!}Hxszq0lF$M><&kaur5|5ag**4;y?+7_01%4WPpzUYSMI8 z*a<9BpyMcRO@qbHAk~Zft5$_lXI&60`emioV*C-?CH1MP&Pa1D63)Jgj!oSK>L%lE zuo5NrSRFF~BP2;hR_N}8m1Q#5u*YmO>o{myG0(F;Ae(NP2gUCTxgn zGZXYaF)Zaj*y`@i6FggM#WS=vh0baC?ic(?+A7m1<^9s|NnU_$Ky-|P5#?wprOdb~ zMo!zWi0iY%AwPtI-ZVVHb9zSt6qGzp=l(FIWQ5u9vbe~;ah%i%SZ?WBrjV;&B55uc z5i*gR^{|@X!;g8A_qyXWSllJ>Lg<;CL{{#shSQUmY)h;u?NP`#p%j*3!9>0U2d-77 z-(K!#b7cMlv4PK4h4<+0*6ML2llP#9%XO#@(EmBnJ4;fDN61m%<0quw{lhf&sNF@f9r-wO~@P`W(=+WI8BAqntl>fX8T_-|_ z_y`*mlT^wa@UDj5rCKbyyX^wP016zPV!PqE51fK4U1+`dnOsqbK&OyKmaNe%)@E!d zctG!4iWovKF;`d@Yp&)!@HI$X=ij~z7G4%N-5EiW#acu13R!V|7R(nNpw9htPMn*m zbCBDukil=J`dZrViu2(@iqzql6yb*XfEnnjupWDz@n4Xlf-G}A}RxDx5b*yC-OVcL9B0n`>VWzLdoRAYtU%P%CXmw z`}I_KD;W~5dpPkDxMDp$s&iQ!xGD!0DWVFb6j17c_Fb*{+<(rA^KrYMK&+jw&K41ROR}N!#Ten6?r);+!~xM2_)j zF6RgLr-kn~Lsp<;hJS#`q=>) zGCT2abK(rh2#VE7r~q3UItg9Ph zjT}>A4c0a?oJvxo3%xZ*Xh1>=B=>V-mE0HglYAZWU&u3!(IoH`rFSDe&(w@B8uoK@ z|1u{opI*pMvimTLoaXDQUIJ2wa{q(FmHQ4zRn8*!U&bMl4eDZnw~KaqeY222*iWZ< zgSGCa$R2N+X+a}BrdgBCZDHk~e)2bezcRP7ko#0D@LXu)n4N`YEummhMC?zZ2A``nFsq;z3JJkb{-1qbG zZnR{^B&kD_{8Qu(y z#wG_@RckT#<9V@abm@F0u`=fWAH*v6KdCQdV3-}92EkiEJ>r2`shcBZ7|JqGibWWO z+tvHk+Jmajq+2Q8Ib%TY+&m9J zsa9*QU)n_aX_=p27Z=+oZnaQDM%ujOG~tpUlZJ}r3Xk7F2STmgC^``NQoRO9mnvY} zwKj^*vg!*ExU+lt77_ud_eyA;e_3NJ$P5~&<4~Q^a0V)KipICjaL}gu{qZJqR3?ts zGVsLZHUTValiRN7L)A84DskPO-ltrR5`KxY5=QB@nT6i?ai zNCYU1IE@Bs^MVwNQMN&q9BS6!0Gtxit=!aM5y_-!?#l*%@_xDXP)5iUZt2PoD(XmL z;#?&g%FQxZ)~1rye$aiR4$FYZkQ&iDHZ%W4Lhna=GsBn3;7MIKGj_$kE8aSVP4jyN zgoia$pUHe{Q9~O5IOq$f_~7Wxq1G1p>VzoJu;vzBprW0E@-;#{=vxNDkX;V#d5#27 zAq-pe5ZFyRLIoCSaS6e_K-pd5N!rMK0WD8~v|1NgihZ$eHrp5m`^w%Z?PO@>cbzuS zc=uD_6c?bYhgaq%Ak__mr5pL`j?+Y&30NoKNaDR#tyn{qPia52evl%PjZ%0csd@D2 z1VZy#?x#1zN=bFk+8>22QIeK&J@<1BQ7F~y$I@niU}iK`vQqle2qcu#e&h|2B|*Ih zK}>hp^Hdmp3$5HncrydV;YRL1Uitz%21)a`NjDZLwG8hAx&UnAly|Dc0O&G9b5-pD zl<*w6iM|kW>3g31ZD=Z%J!omT5K;_-It5omQOx-gVv9C}SRIexjT^63g}d zceS~--b_5_oS+Arr3$LU_Ukb=C! zwLQa~(=x*@u$Cy_*y>S1mMwao{=2V|dW()?&o$dNQK9>$xaW&q0h`E;6ydzM&OMvy zQ8e;xiFc9fVt>oW(8}*{x0SZtZs8%MJkqIWwW(gIiIBpm+OO70Ta&s~-KC+yE3`*i z7n5M>rmZ9Lj{<8Ki}@-wZ$>PciK8T)3~GFhTiYR$eWsuuAKomekF&HmQ6(F3ajN-t zYq!=Ye*)K8vIn{Yp^jn*jDtN#gio3*+?#D$UZ0JVlX|2YmcI6zmM zFA!l7L#t3=>%*SQE5vKO{f0l|_b=WevI07cGcXh{x|EeUg)7x+z|hvw^y;9`m)eX1 zp}lUuBkphmFOng|4IyYlB^dDpEIl@E7Fz2V1PkEUSPHd&Psx15L5(1&QYUWRV4
mWS5!vrCJAT&fY+o(SP;-~K5j#7O4hfDEhU6*sb-nTqq}m&S9MlwV|p zOFpgg|G@%8Jqb;nlDU^Td@{LB$`hRu_1hB{<8K{EzD7ink4&)`T)9%4+NphK4UDi; zsiDnUOXb_lWl{Jj)qCwqt6Yc2O4*O5^)5AT2S=utGaOQDi^#@m6gbL;7Ic#1PzhEG zm(lC|E!ry@!zM!9ajp~w(MI4M>UnCHC|Mt&XZx1wzoyqCFGBUTs6>p4)~#>QE<_-u zag2xmX264HqK^q^IQh~;bk|dxUqt1YFQfMw{xrlpY&>@J=&mQffx4$vdk=yd#8h$< zX_GLn3>tj$+mw+akA(^;l^Qy#-y_c}vV6SGvOXlxFag?n>5x`)OP*Ap9@NKzE+a4$ zoix9H$wBWucE2EZAV{USFcaFw(;MiJ!Yanl8nHTREo+<3Ju+sn5mRC9u>TgikKv08 z_D70AyI$5CXzh|O7Qu@Bl`bIkl%X+w!6_3@&(1OYG3z_L0}+@IwJLP7s>G?0(~|SF zUDX?KpDbs1D1;HGU{#1a!!URold?T>1j7&^ESjzwoi}ruZubf{g)$|^##nU)tJRwC zEMfzrupirB7k7bIhK6#VW3&@_lI9W(4th-T(RbDp*4McEk_=HsKDRS;7m;!&|Qx%}hoDsE= z>BLavfI5LwNfHhPCQ}2(Mp<3r^~$DvPqn+ITkp@Zdh}YK3rXDWF;hgr47MRf^4@XUMpA>T#1ZTnct?%W2IVH}(!3u8DA|_u|_dbI@ zA-M48^+U5>DNBBs!By!*mrr^FT=iDpq2LcAq;qu?C;WT3NH#9x4ll1Q8^gkNNZGgK z7m|rwlOoQbBMN;Kj_D zBd6b-1E401B%n(UO6hPv_53D@2?fGP?@?AA6IslIi&U&iD7Z&Pn|z*H$weWA`~$=| zS`5hqH|t0=BZ&iVA`V5vX|)^3qR>S-)RA&ON{I`6r8aWinaVj|)I1nri7(5fK`VvK zkNqZ!nKRdq@pE4csP8}$iON4XvlkkXxxRoXZX(G28QR~Xm#x1t zO?SjK>}hw1PWBL0;l?7PK86Vs4^1e&$ZPl$m}p}H8Y*;xQr(Th9inr5z~=StByV7% zl3R-6rn&~MzXCIl{u0SPksH}xb^)Jvbk}Flfau~nWXx6aBr8D0;j-Mck2`9PoERc-7pFu%e&mNP>K3e{#Q{64yTWTO3g(D)laPc<`rH=wnxgEx3ukE$K=m2%@H4^Rvb}JU}gRi)5OjEAc3`Ec0k|Egq$-ev8yNz_&kS z2N_+%;~O`)TcR8N4L0ptwXXZF}o5{;bA10{Z>z!xifFJ6sJk%|g`>oXH zwvBNLQr&!p>!(8sSV@fNUqSviPc61+H}IoY7(e7HwF9pMNaX~={Ha7H898#=%=^TP z^o6eTF*H*s<1e6ZX~cCCB1Bf{F&N!@_ds;$$-DPtKd`2bEHfNMkPL^yd?;N#P>bq| z@f`CPbH9t$;ri@{A+S==?ZTY z(oa(2W@t#aZ}aD&4*U384tJ5$L9K6ol0ei?+2goQ@(Dg=f+e`2yfFWd`T5*mr^HJ! zt=}df1;L@5rY>rrAi%Mxyj~h{#GxyqaH=I70edh)O{itmI{5i~u_et`=w zed}P<3_BNcFsn1)KcU;$>MJTNmbqI1^6jJgs0l?(_$~^w0Yklx8v>zgCfsQY;=|E( zOy4aMGj!phiPY0RT>>j1TW5U70y+uh8VL~|n3Fjjb+b4QVxA!UVpkjl>sS9mMP%hg zQojD>i^$*-MdCj0)1a0qve6+)nEVwYuHx+EadkT$B2B3Sbu&ceK#+9~V-bb_PKlTC zG0`t({es|+IYJjthxODaO}3i;wBge`N5h!UjN(2KzBH;dMDY31(WCcbp8dhx4cQ;N z!B%ObD!+iR=YO?yWB=}7YM2A{RZ{&~(g5lJ-zELo+%1V}Ym0GhZOtIt+Sjj%lc literal 0 HcmV?d00001 diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogs.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogs.php new file mode 100644 index 000000000000..4fa1b0a5cbd0 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogs.php @@ -0,0 +1,102 @@ +internalAddGeneratedFile( + ' +µ/ +5google/cloud/networkmanagement/v1/vpc_flow_logs.proto!google.cloud.networkmanagement.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto4google/cloud/networkmanagement/v1/reachability.proto.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest4.google.cloud.networkmanagement.v1.VpcFlowLogsConfig"EÚAname‚Óä“86/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}Ó +CreateVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.google.longrunning.Operation"ÕÊAH +VpcFlowLogsConfig3google.cloud.networkmanagement.v1.OperationMetadataÚA3parent,vpc_flow_logs_config,vpc_flow_logs_config_id‚Óä“N"6/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:vpc_flow_logs_configÕ +UpdateVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.google.longrunning.Operation"×ÊAH +VpcFlowLogsConfig3google.cloud.networkmanagement.v1.OperationMetadataÚA vpc_flow_logs_config,update_mask‚Óä“c2K/v1/{vpc_flow_logs_config.name=projects/*/locations/*/vpcFlowLogsConfigs/*}:vpc_flow_logs_config’ +DeleteVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.google.longrunning.Operation"”ÊAL +google.protobuf.Empty3google.cloud.networkmanagement.v1.OperationMetadataÚAname‚Óä“8*6/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}„ +QueryOrgVpcFlowLogsConfigsD.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequestE.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse"Y‚Óä“SQ/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigsŒ +ShowEffectiveFlowLogsConfigsF.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequestG.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse"[‚Óä“US/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigsTÊA networkmanagement.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platform2‘ +OrganizationVpcFlowLogsServiceë +ListVpcFlowLogsConfigs@.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequestA.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse"LÚAparent‚Óä“=;/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigsØ +GetVpcFlowLogsConfig>.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest4.google.cloud.networkmanagement.v1.VpcFlowLogsConfig"JÚAname‚Óä“=;/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}Ø +CreateVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.google.longrunning.Operation"ÚÊAH +VpcFlowLogsConfig3google.cloud.networkmanagement.v1.OperationMetadataÚA3parent,vpc_flow_logs_config,vpc_flow_logs_config_id‚Óä“S";/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs:vpc_flow_logs_configÚ +UpdateVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.google.longrunning.Operation"ÜÊAH +VpcFlowLogsConfig3google.cloud.networkmanagement.v1.OperationMetadataÚA vpc_flow_logs_config,update_mask‚Óä“h2P/v1/{vpc_flow_logs_config.name=organizations/*/locations/*/vpcFlowLogsConfigs/*}:vpc_flow_logs_config— +DeleteVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.google.longrunning.Operation"™ÊAL +google.protobuf.Empty3google.cloud.networkmanagement.v1.OperationMetadataÚAname‚Óä“=*;/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}TÊA networkmanagement.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBÿ +%com.google.cloud.networkmanagement.v1BVpcFlowLogsProtoPZScloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpbª!Google.Cloud.NetworkManagement.V1Ê!Google\\Cloud\\NetworkManagement\\V1ê$Google::Cloud::NetworkManagement::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogsConfig.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogsConfig.php new file mode 100644 index 0000000000000000000000000000000000000000..6f08b074bfb939687f855025494c40fc1ecce722 GIT binary patch literal 4363 zcmcgvQFGfw5XN@mr0XPQ#!P_H(?O2|rS%$FN?{oPh5$@;pSZTF z5usSmZ4*!JsGiy`GR$_KVz#TJnC+eQy8xP@x~{NeYg-6iLF7CGhUXyQpWWXzbWLzQ z)x&>Rbyv|%-P2V=e};$M6uPS65=0r-?e8A#|}$ z8nwDtCuPK-{D?5PL3TX={T7m;B1R2H}u(yjM@% zwkeD22@+m zIKjdFEM2)AEU}!$%g%V=>3oIM?@3q~%S3Jgrf7Qe5h1d6CKvlhoaNqwL?_4(Offzh zu0%?apCS>i3DYzi2p_|R`HgJ)rEaIk%%+AIMYY#+NDoWFGO-RYQ4dsu zpJFyjr?Md)0kXtLJl|rBTD%NrS-rb>|Aub%_-Qm1^%bV5!Z$FxAJjS@XKrks%8jsL z_|Vf7`VyQAp_ML8eV3mRVt)K1H2z)PzyK)Zd)wh>(Kfr8NGVP?yRf7=mg_2b(~pSe zDIpYpmU&q|m6v%6iIqVSk9#~rjeZ9gJk`NAp@eCt_(?FwY@Y6dWQG_P@E|2(rCDln z0cL_4;5#$~rFXa_#NGZbN_i4UR$-at3N~z$#zOTxRokOYo$m%JivS0HA({rA(>*YR%gys;;ZH1N}e+I23HdaFHur||!&O>*_ z=&rtvq!R3cSK7656B0xAxdg->lc#di(!iKIS-X%=Gc0xUFTQI?ce zwON<)<*l+*NWO#nXQZl_tKdh3n}gXxx#@pJQ-4O_{Df-au7V&Iiw&tL%H>*BDOY8w zu_IPSfH{~StlUwWQXcWo!?}U%_AMria>I)2%67S$j2)BRVX~=Xo7ZnK;q-B#uNhD6 z!)%z$91n}zk}MWPSsZZ?SIX6VrB#p=u~Jb&Ep!uCqz4mLqSRcz)s$=7N9wWEj}cg$ zR7l(hkjgh|&8AXs)V`GR@?g`5Cn6b1AK?6i>f)}!sw_5&lB_hO zX06r8OUk5FSb?QcHR(aQDK{}B=;G*Fp(ZsI9J>^zl#FJ7jlK|nj>5(`hxuHA^yQ{; zYRilf1NU{%)!fYU;MZZsurx*sC<}ic(t+*xP=%`~8yn&dxo<6}r<(e+5M%iBb-_R6 z#{Jk>7?b4|;M_?6%+14`GQ_jFS%~{RHMa~Glu2xuOTxT=zL2zX2{<$8{|s@6IdT_a zS(!`~IUbgj5r=%^slR7nMZ&Qf=gR}KGa6)U3`6q*SAAo%fInM2emi4;KXa^1oB&E} zI*{Km`Ip#8v3vsWW1ktP{1O`#%(uq&{&eyGvhID%7tOK>?~e`nkQh%MdDAE7V!BD8 zN_0L+{SrZTqo0i3^0oRXy8*=;-!i)!K{xHINS z5SRfc)rQ!j5-<<9K1>?OG{c{hIb=7^roG$O2hYTh{HOBJ%bJeRx;Eie%{2YD?;#ul F{0Gofd8hyY literal 0 HcmV?d00001 diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo.php new file mode 100644 index 000000000000..6c89077243d9 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo.php @@ -0,0 +1,173 @@ +google.cloud.networkmanagement.v1.AbortInfo + */ +class AbortInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Causes that the analysis is aborted. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo.Cause cause = 1; + */ + protected $cause = 0; + /** + * URI of the resource that caused the abort. + * + * Generated from protobuf field string resource_uri = 2; + */ + protected $resource_uri = ''; + /** + * IP address that caused the abort. + * + * Generated from protobuf field string ip_address = 4 [(.google.api.field_info) = { + */ + protected $ip_address = ''; + /** + * List of project IDs the user specified in the request but lacks access to. + * In this case, analysis is aborted with the PERMISSION_DENIED cause. + * + * Generated from protobuf field repeated string projects_missing_permission = 3; + */ + private $projects_missing_permission; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $cause + * Causes that the analysis is aborted. + * @type string $resource_uri + * URI of the resource that caused the abort. + * @type string $ip_address + * IP address that caused the abort. + * @type array|\Google\Protobuf\Internal\RepeatedField $projects_missing_permission + * List of project IDs the user specified in the request but lacks access to. + * In this case, analysis is aborted with the PERMISSION_DENIED cause. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Causes that the analysis is aborted. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo.Cause cause = 1; + * @return int + */ + public function getCause() + { + return $this->cause; + } + + /** + * Causes that the analysis is aborted. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo.Cause cause = 1; + * @param int $var + * @return $this + */ + public function setCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\AbortInfo\Cause::class); + $this->cause = $var; + + return $this; + } + + /** + * URI of the resource that caused the abort. + * + * Generated from protobuf field string resource_uri = 2; + * @return string + */ + public function getResourceUri() + { + return $this->resource_uri; + } + + /** + * URI of the resource that caused the abort. + * + * Generated from protobuf field string resource_uri = 2; + * @param string $var + * @return $this + */ + public function setResourceUri($var) + { + GPBUtil::checkString($var, True); + $this->resource_uri = $var; + + return $this; + } + + /** + * IP address that caused the abort. + * + * Generated from protobuf field string ip_address = 4 [(.google.api.field_info) = { + * @return string + */ + public function getIpAddress() + { + return $this->ip_address; + } + + /** + * IP address that caused the abort. + * + * Generated from protobuf field string ip_address = 4 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->ip_address = $var; + + return $this; + } + + /** + * List of project IDs the user specified in the request but lacks access to. + * In this case, analysis is aborted with the PERMISSION_DENIED cause. + * + * Generated from protobuf field repeated string projects_missing_permission = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProjectsMissingPermission() + { + return $this->projects_missing_permission; + } + + /** + * List of project IDs the user specified in the request but lacks access to. + * In this case, analysis is aborted with the PERMISSION_DENIED cause. + * + * Generated from protobuf field repeated string projects_missing_permission = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProjectsMissingPermission($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->projects_missing_permission = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo/Cause.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo/Cause.php new file mode 100644 index 000000000000..7acb19950721 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo/Cause.php @@ -0,0 +1,394 @@ +google.cloud.networkmanagement.v1.AbortInfo.Cause + */ +class Cause +{ + /** + * Cause is unspecified. + * + * Generated from protobuf enum CAUSE_UNSPECIFIED = 0; + */ + const CAUSE_UNSPECIFIED = 0; + /** + * Aborted due to unknown network. Deprecated, not used in the new tests. + * + * Generated from protobuf enum UNKNOWN_NETWORK = 1 [deprecated = true]; + */ + const UNKNOWN_NETWORK = 1; + /** + * Aborted because no project information can be derived from the test + * input. Deprecated, not used in the new tests. + * + * Generated from protobuf enum UNKNOWN_PROJECT = 3 [deprecated = true]; + */ + const UNKNOWN_PROJECT = 3; + /** + * Aborted because traffic is sent from a public IP to an instance without + * an external IP. Deprecated, not used in the new tests. + * + * Generated from protobuf enum NO_EXTERNAL_IP = 7 [deprecated = true]; + */ + const NO_EXTERNAL_IP = 7; + /** + * Aborted because none of the traces matches destination information + * specified in the input test request. Deprecated, not used in the new + * tests. + * + * Generated from protobuf enum UNINTENDED_DESTINATION = 8 [deprecated = true]; + */ + const UNINTENDED_DESTINATION = 8; + /** + * Aborted because the source endpoint could not be found. Deprecated, not + * used in the new tests. + * + * Generated from protobuf enum SOURCE_ENDPOINT_NOT_FOUND = 11 [deprecated = true]; + */ + const SOURCE_ENDPOINT_NOT_FOUND = 11; + /** + * Aborted because the source network does not match the source endpoint. + * Deprecated, not used in the new tests. + * + * Generated from protobuf enum MISMATCHED_SOURCE_NETWORK = 12 [deprecated = true]; + */ + const MISMATCHED_SOURCE_NETWORK = 12; + /** + * Aborted because the destination endpoint could not be found. Deprecated, + * not used in the new tests. + * + * Generated from protobuf enum DESTINATION_ENDPOINT_NOT_FOUND = 13 [deprecated = true]; + */ + const DESTINATION_ENDPOINT_NOT_FOUND = 13; + /** + * Aborted because the destination network does not match the destination + * endpoint. Deprecated, not used in the new tests. + * + * Generated from protobuf enum MISMATCHED_DESTINATION_NETWORK = 14 [deprecated = true]; + */ + const MISMATCHED_DESTINATION_NETWORK = 14; + /** + * Aborted because no endpoint with the packet's destination IP address is + * found. + * + * Generated from protobuf enum UNKNOWN_IP = 2; + */ + const UNKNOWN_IP = 2; + /** + * Aborted because no endpoint with the packet's destination IP is found in + * the Google-managed project. + * + * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; + */ + const GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; + /** + * Aborted because the source IP address doesn't belong to any of the + * subnets of the source VPC network. + * + * Generated from protobuf enum SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK = 23; + */ + const SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK = 23; + /** + * Aborted because user lacks permission to access all or part of the + * network configurations required to run the test. + * + * Generated from protobuf enum PERMISSION_DENIED = 4; + */ + const PERMISSION_DENIED = 4; + /** + * Aborted because user lacks permission to access Cloud NAT configs + * required to run the test. + * + * Generated from protobuf enum PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS = 28; + */ + const PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS = 28; + /** + * Aborted because user lacks permission to access Network endpoint group + * endpoint configs required to run the test. + * + * Generated from protobuf enum PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; + */ + const PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; + /** + * Aborted because user lacks permission to access Cloud Router configs + * required to run the test. + * + * Generated from protobuf enum PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; + */ + const PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; + /** + * Aborted because no valid source or destination endpoint can be derived + * from the test request. + * + * Generated from protobuf enum NO_SOURCE_LOCATION = 5; + */ + const NO_SOURCE_LOCATION = 5; + /** + * Aborted because the source IP address is not contained within the subnet + * ranges of the provided VPC network. + * + * Generated from protobuf enum NO_SOURCE_GCP_NETWORK_LOCATION = 42; + */ + const NO_SOURCE_GCP_NETWORK_LOCATION = 42; + /** + * Aborted because the source IP address is not contained within the + * destination ranges of the routes towards non-GCP networks in the provided + * VPC network. + * + * Generated from protobuf enum NO_SOURCE_NON_GCP_NETWORK_LOCATION = 43; + */ + const NO_SOURCE_NON_GCP_NETWORK_LOCATION = 43; + /** + * Aborted because the source IP address can't be resolved as an Internet + * IP address. + * + * Generated from protobuf enum NO_SOURCE_INTERNET_LOCATION = 44; + */ + const NO_SOURCE_INTERNET_LOCATION = 44; + /** + * Aborted because the source or destination endpoint specified in + * the request is invalid. Some examples: + * - The request might contain malformed resource URI, project ID, or IP + * address. + * - The request might contain inconsistent information (for example, the + * request might include both the instance and the network, but the instance + * might not have a NIC in that network). + * + * Generated from protobuf enum INVALID_ARGUMENT = 6; + */ + const INVALID_ARGUMENT = 6; + /** + * Aborted because the number of steps in the trace exceeds a certain + * limit. It might be caused by a routing loop. + * + * Generated from protobuf enum TRACE_TOO_LONG = 9; + */ + const TRACE_TOO_LONG = 9; + /** + * Aborted due to internal server error. + * + * Generated from protobuf enum INTERNAL_ERROR = 10; + */ + const INTERNAL_ERROR = 10; + /** + * Aborted because the test scenario is not supported. + * + * Generated from protobuf enum UNSUPPORTED = 15; + */ + const UNSUPPORTED = 15; + /** + * Aborted because the source and destination resources have no common IP + * version. + * + * Generated from protobuf enum MISMATCHED_IP_VERSION = 16; + */ + const MISMATCHED_IP_VERSION = 16; + /** + * Aborted because the connection between the control plane and the node of + * the source cluster is initiated by the node and managed by the + * Konnectivity proxy. + * + * Generated from protobuf enum GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17; + */ + const GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17; + /** + * Aborted because expected resource configuration was missing. + * + * Generated from protobuf enum RESOURCE_CONFIG_NOT_FOUND = 18; + */ + const RESOURCE_CONFIG_NOT_FOUND = 18; + /** + * Aborted because expected VM instance configuration was missing. + * + * Generated from protobuf enum VM_INSTANCE_CONFIG_NOT_FOUND = 24; + */ + const VM_INSTANCE_CONFIG_NOT_FOUND = 24; + /** + * Aborted because expected network configuration was missing. + * + * Generated from protobuf enum NETWORK_CONFIG_NOT_FOUND = 25; + */ + const NETWORK_CONFIG_NOT_FOUND = 25; + /** + * Aborted because expected firewall configuration was missing. + * + * Generated from protobuf enum FIREWALL_CONFIG_NOT_FOUND = 26; + */ + const FIREWALL_CONFIG_NOT_FOUND = 26; + /** + * Aborted because expected route configuration was missing. + * + * Generated from protobuf enum ROUTE_CONFIG_NOT_FOUND = 27; + */ + const ROUTE_CONFIG_NOT_FOUND = 27; + /** + * Aborted because PSC endpoint selection for the Google-managed service + * is ambiguous (several PSC endpoints satisfy test input). + * + * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19; + */ + const GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19; + /** + * Aborted because endpoint selection for the Google-managed service is + * ambiguous (several endpoints satisfy test input). + * + * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; + */ + const GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; + /** + * Aborted because tests with a PSC-based Cloud SQL instance as a source are + * not supported. + * + * Generated from protobuf enum SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; + */ + const SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; + /** + * Aborted because tests with the external database as a source are not + * supported. In such replication scenarios, the connection is initiated by + * the Cloud SQL replica instance. + * + * Generated from protobuf enum SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED = 45; + */ + const SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED = 45; + /** + * Aborted because tests with a Redis Cluster as a source are not supported. + * + * Generated from protobuf enum SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; + */ + const SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; + /** + * Aborted because tests with a Redis Instance as a source are not + * supported. + * + * Generated from protobuf enum SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; + */ + const SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; + /** + * Aborted because tests with a forwarding rule as a source are not + * supported. + * + * Generated from protobuf enum SOURCE_FORWARDING_RULE_UNSUPPORTED = 21; + */ + const SOURCE_FORWARDING_RULE_UNSUPPORTED = 21; + /** + * Aborted because one of the endpoints is a non-routable IP address + * (loopback, link-local, etc). + * + * Generated from protobuf enum NON_ROUTABLE_IP_ADDRESS = 22; + */ + const NON_ROUTABLE_IP_ADDRESS = 22; + /** + * Aborted due to an unknown issue in the Google-managed project. + * + * Generated from protobuf enum UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT = 30; + */ + const UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT = 30; + /** + * Aborted due to an unsupported configuration of the Google-managed + * project. + * + * Generated from protobuf enum UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG = 31; + */ + const UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG = 31; + /** + * Aborted because the source endpoint is a Cloud Run revision with direct + * VPC access enabled, but there are no reserved serverless IP ranges. + * + * Generated from protobuf enum NO_SERVERLESS_IP_RANGES = 37; + */ + const NO_SERVERLESS_IP_RANGES = 37; + /** + * Aborted because the used protocol is not supported for the used IP + * version. + * + * Generated from protobuf enum IP_VERSION_PROTOCOL_MISMATCH = 40; + */ + const IP_VERSION_PROTOCOL_MISMATCH = 40; + /** + * Aborted because selected GKE Pod endpoint location is unknown. This is + * often the case for "Pending" Pods, which don't have assigned IP addresses + * yet. + * + * Generated from protobuf enum GKE_POD_UNKNOWN_ENDPOINT_LOCATION = 41; + */ + const GKE_POD_UNKNOWN_ENDPOINT_LOCATION = 41; + + private static $valueToName = [ + self::CAUSE_UNSPECIFIED => 'CAUSE_UNSPECIFIED', + self::UNKNOWN_NETWORK => 'UNKNOWN_NETWORK', + self::UNKNOWN_PROJECT => 'UNKNOWN_PROJECT', + self::NO_EXTERNAL_IP => 'NO_EXTERNAL_IP', + self::UNINTENDED_DESTINATION => 'UNINTENDED_DESTINATION', + self::SOURCE_ENDPOINT_NOT_FOUND => 'SOURCE_ENDPOINT_NOT_FOUND', + self::MISMATCHED_SOURCE_NETWORK => 'MISMATCHED_SOURCE_NETWORK', + self::DESTINATION_ENDPOINT_NOT_FOUND => 'DESTINATION_ENDPOINT_NOT_FOUND', + self::MISMATCHED_DESTINATION_NETWORK => 'MISMATCHED_DESTINATION_NETWORK', + self::UNKNOWN_IP => 'UNKNOWN_IP', + self::GOOGLE_MANAGED_SERVICE_UNKNOWN_IP => 'GOOGLE_MANAGED_SERVICE_UNKNOWN_IP', + self::SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK => 'SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK', + self::PERMISSION_DENIED => 'PERMISSION_DENIED', + self::PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS => 'PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS', + self::PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS => 'PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS', + self::PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS => 'PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS', + self::NO_SOURCE_LOCATION => 'NO_SOURCE_LOCATION', + self::NO_SOURCE_GCP_NETWORK_LOCATION => 'NO_SOURCE_GCP_NETWORK_LOCATION', + self::NO_SOURCE_NON_GCP_NETWORK_LOCATION => 'NO_SOURCE_NON_GCP_NETWORK_LOCATION', + self::NO_SOURCE_INTERNET_LOCATION => 'NO_SOURCE_INTERNET_LOCATION', + self::INVALID_ARGUMENT => 'INVALID_ARGUMENT', + self::TRACE_TOO_LONG => 'TRACE_TOO_LONG', + self::INTERNAL_ERROR => 'INTERNAL_ERROR', + self::UNSUPPORTED => 'UNSUPPORTED', + self::MISMATCHED_IP_VERSION => 'MISMATCHED_IP_VERSION', + self::GKE_KONNECTIVITY_PROXY_UNSUPPORTED => 'GKE_KONNECTIVITY_PROXY_UNSUPPORTED', + self::RESOURCE_CONFIG_NOT_FOUND => 'RESOURCE_CONFIG_NOT_FOUND', + self::VM_INSTANCE_CONFIG_NOT_FOUND => 'VM_INSTANCE_CONFIG_NOT_FOUND', + self::NETWORK_CONFIG_NOT_FOUND => 'NETWORK_CONFIG_NOT_FOUND', + self::FIREWALL_CONFIG_NOT_FOUND => 'FIREWALL_CONFIG_NOT_FOUND', + self::ROUTE_CONFIG_NOT_FOUND => 'ROUTE_CONFIG_NOT_FOUND', + self::GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT => 'GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT', + self::GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT => 'GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT', + self::SOURCE_PSC_CLOUD_SQL_UNSUPPORTED => 'SOURCE_PSC_CLOUD_SQL_UNSUPPORTED', + self::SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED => 'SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED', + self::SOURCE_REDIS_CLUSTER_UNSUPPORTED => 'SOURCE_REDIS_CLUSTER_UNSUPPORTED', + self::SOURCE_REDIS_INSTANCE_UNSUPPORTED => 'SOURCE_REDIS_INSTANCE_UNSUPPORTED', + self::SOURCE_FORWARDING_RULE_UNSUPPORTED => 'SOURCE_FORWARDING_RULE_UNSUPPORTED', + self::NON_ROUTABLE_IP_ADDRESS => 'NON_ROUTABLE_IP_ADDRESS', + self::UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT => 'UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT', + self::UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG => 'UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG', + self::NO_SERVERLESS_IP_RANGES => 'NO_SERVERLESS_IP_RANGES', + self::IP_VERSION_PROTOCOL_MISMATCH => 'IP_VERSION_PROTOCOL_MISMATCH', + self::GKE_POD_UNKNOWN_ENDPOINT_LOCATION => 'GKE_POD_UNKNOWN_ENDPOINT_LOCATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Cause::class, \Google\Cloud\NetworkManagement\V1\AbortInfo_Cause::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AppEngineVersionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AppEngineVersionInfo.php new file mode 100644 index 000000000000..070e54ea76de --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AppEngineVersionInfo.php @@ -0,0 +1,169 @@ +google.cloud.networkmanagement.v1.AppEngineVersionInfo + */ +class AppEngineVersionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of an App Engine version. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of an App Engine version. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Runtime of the App Engine version. + * + * Generated from protobuf field string runtime = 3; + */ + protected $runtime = ''; + /** + * App Engine execution environment for a version. + * + * Generated from protobuf field string environment = 4; + */ + protected $environment = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of an App Engine version. + * @type string $uri + * URI of an App Engine version. + * @type string $runtime + * Runtime of the App Engine version. + * @type string $environment + * App Engine execution environment for a version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of an App Engine version. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of an App Engine version. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of an App Engine version. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of an App Engine version. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Runtime of the App Engine version. + * + * Generated from protobuf field string runtime = 3; + * @return string + */ + public function getRuntime() + { + return $this->runtime; + } + + /** + * Runtime of the App Engine version. + * + * Generated from protobuf field string runtime = 3; + * @param string $var + * @return $this + */ + public function setRuntime($var) + { + GPBUtil::checkString($var, True); + $this->runtime = $var; + + return $this; + } + + /** + * App Engine execution environment for a version. + * + * Generated from protobuf field string environment = 4; + * @return string + */ + public function getEnvironment() + { + return $this->environment; + } + + /** + * App Engine execution environment for a version. + * + * Generated from protobuf field string environment = 4; + * @param string $var + * @return $this + */ + public function setEnvironment($var) + { + GPBUtil::checkString($var, True); + $this->environment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudFunctionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudFunctionInfo.php new file mode 100644 index 000000000000..0706272a11a9 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudFunctionInfo.php @@ -0,0 +1,169 @@ +google.cloud.networkmanagement.v1.CloudFunctionInfo + */ +class CloudFunctionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a Cloud Function. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a Cloud Function. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Location in which the Cloud Function is deployed. + * + * Generated from protobuf field string location = 3; + */ + protected $location = ''; + /** + * Latest successfully deployed version id of the Cloud Function. + * + * Generated from protobuf field int64 version_id = 4; + */ + protected $version_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a Cloud Function. + * @type string $uri + * URI of a Cloud Function. + * @type string $location + * Location in which the Cloud Function is deployed. + * @type int|string $version_id + * Latest successfully deployed version id of the Cloud Function. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a Cloud Function. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a Cloud Function. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a Cloud Function. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a Cloud Function. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Location in which the Cloud Function is deployed. + * + * Generated from protobuf field string location = 3; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Location in which the Cloud Function is deployed. + * + * Generated from protobuf field string location = 3; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Latest successfully deployed version id of the Cloud Function. + * + * Generated from protobuf field int64 version_id = 4; + * @return int|string + */ + public function getVersionId() + { + return $this->version_id; + } + + /** + * Latest successfully deployed version id of the Cloud Function. + * + * Generated from protobuf field int64 version_id = 4; + * @param int|string $var + * @return $this + */ + public function setVersionId($var) + { + GPBUtil::checkInt64($var); + $this->version_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudRunRevisionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudRunRevisionInfo.php new file mode 100644 index 000000000000..4848d1718d60 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudRunRevisionInfo.php @@ -0,0 +1,169 @@ +google.cloud.networkmanagement.v1.CloudRunRevisionInfo + */ +class CloudRunRevisionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a Cloud Run revision. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a Cloud Run revision. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Location in which this revision is deployed. + * + * Generated from protobuf field string location = 4; + */ + protected $location = ''; + /** + * URI of Cloud Run service this revision belongs to. + * + * Generated from protobuf field string service_uri = 5; + */ + protected $service_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a Cloud Run revision. + * @type string $uri + * URI of a Cloud Run revision. + * @type string $location + * Location in which this revision is deployed. + * @type string $service_uri + * URI of Cloud Run service this revision belongs to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a Cloud Run revision. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a Cloud Run revision. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a Cloud Run revision. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a Cloud Run revision. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Location in which this revision is deployed. + * + * Generated from protobuf field string location = 4; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Location in which this revision is deployed. + * + * Generated from protobuf field string location = 4; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * URI of Cloud Run service this revision belongs to. + * + * Generated from protobuf field string service_uri = 5; + * @return string + */ + public function getServiceUri() + { + return $this->service_uri; + } + + /** + * URI of Cloud Run service this revision belongs to. + * + * Generated from protobuf field string service_uri = 5; + * @param string $var + * @return $this + */ + public function setServiceUri($var) + { + GPBUtil::checkString($var, True); + $this->service_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudSQLInstanceInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudSQLInstanceInfo.php new file mode 100644 index 000000000000..6dc47236ce8f --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudSQLInstanceInfo.php @@ -0,0 +1,241 @@ +google.cloud.networkmanagement.v1.CloudSQLInstanceInfo + */ +class CloudSQLInstanceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a Cloud SQL instance. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a Cloud SQL instance. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * URI of a Cloud SQL instance network or empty string if the instance does + * not have one. + * + * Generated from protobuf field string network_uri = 4; + */ + protected $network_uri = ''; + /** + * Internal IP address of a Cloud SQL instance. + * + * Generated from protobuf field string internal_ip = 5; + */ + protected $internal_ip = ''; + /** + * External IP address of a Cloud SQL instance. + * + * Generated from protobuf field string external_ip = 6; + */ + protected $external_ip = ''; + /** + * Region in which the Cloud SQL instance is running. + * + * Generated from protobuf field string region = 7; + */ + protected $region = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a Cloud SQL instance. + * @type string $uri + * URI of a Cloud SQL instance. + * @type string $network_uri + * URI of a Cloud SQL instance network or empty string if the instance does + * not have one. + * @type string $internal_ip + * Internal IP address of a Cloud SQL instance. + * @type string $external_ip + * External IP address of a Cloud SQL instance. + * @type string $region + * Region in which the Cloud SQL instance is running. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a Cloud SQL instance. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a Cloud SQL instance. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a Cloud SQL instance. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a Cloud SQL instance. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * URI of a Cloud SQL instance network or empty string if the instance does + * not have one. + * + * Generated from protobuf field string network_uri = 4; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of a Cloud SQL instance network or empty string if the instance does + * not have one. + * + * Generated from protobuf field string network_uri = 4; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * Internal IP address of a Cloud SQL instance. + * + * Generated from protobuf field string internal_ip = 5; + * @return string + */ + public function getInternalIp() + { + return $this->internal_ip; + } + + /** + * Internal IP address of a Cloud SQL instance. + * + * Generated from protobuf field string internal_ip = 5; + * @param string $var + * @return $this + */ + public function setInternalIp($var) + { + GPBUtil::checkString($var, True); + $this->internal_ip = $var; + + return $this; + } + + /** + * External IP address of a Cloud SQL instance. + * + * Generated from protobuf field string external_ip = 6; + * @return string + */ + public function getExternalIp() + { + return $this->external_ip; + } + + /** + * External IP address of a Cloud SQL instance. + * + * Generated from protobuf field string external_ip = 6; + * @param string $var + * @return $this + */ + public function setExternalIp($var) + { + GPBUtil::checkString($var, True); + $this->external_ip = $var; + + return $this; + } + + /** + * Region in which the Cloud SQL instance is running. + * + * Generated from protobuf field string region = 7; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Region in which the Cloud SQL instance is running. + * + * Generated from protobuf field string region = 7; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ConnectivityTest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ConnectivityTest.php new file mode 100644 index 000000000000..a8522c9df26e --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ConnectivityTest.php @@ -0,0 +1,701 @@ +google.cloud.networkmanagement.v1.ConnectivityTest + */ +class ConnectivityTest extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Unique name of the resource using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The user-supplied description of the Connectivity Test. + * Maximum of 512 characters. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Required. Source specification of the Connectivity Test. + * You can use a combination of source IP address, URI of a supported + * endpoint, project ID, or VPC network to identify the source location. + * Reachability analysis might proceed even if the source location is + * ambiguous. However, the test result might include endpoints or use a source + * that you don't intend to test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $source = null; + /** + * Required. Destination specification of the Connectivity Test. + * You can use a combination of destination IP address, URI of a supported + * endpoint, project ID, or VPC network to identify the destination location. + * Reachability analysis proceeds even if the destination location is + * ambiguous. However, the test result might include endpoints or use a + * destination that you don't intend to test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $destination = null; + /** + * IP Protocol of the test. When not provided, "TCP" is assumed. + * + * Generated from protobuf field string protocol = 5; + */ + protected $protocol = ''; + /** + * Other projects that may be relevant for reachability analysis. + * This is applicable to scenarios where a test can cross project boundaries. + * + * Generated from protobuf field repeated string related_projects = 6; + */ + private $related_projects; + /** + * Output only. The display name of a Connectivity Test. + * + * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Resource labels to represent user-provided metadata. + * + * Generated from protobuf field map labels = 8; + */ + private $labels; + /** + * Output only. The time the test was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the test's configuration was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The reachability details of this test from the latest run. + * The details are updated when creating a new test, updating an + * existing test, or triggering a one-time rerun of an existing test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reachability_details = null; + /** + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $probing_details = null; + /** + * Whether run analysis for the return path from destination to source. + * Default value is false. + * + * Generated from protobuf field bool round_trip = 15; + */ + protected $round_trip = false; + /** + * Output only. The reachability details of this test from the latest run for + * the return path. The details are updated when creating a new test, + * updating an existing test, or triggering a one-time rerun of an existing + * test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails return_reachability_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $return_reachability_details = null; + /** + * Whether the analysis should skip firewall checking. Default value is false. + * + * Generated from protobuf field bool bypass_firewall_checks = 17; + */ + protected $bypass_firewall_checks = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Unique name of the resource using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * @type string $description + * The user-supplied description of the Connectivity Test. + * Maximum of 512 characters. + * @type \Google\Cloud\NetworkManagement\V1\Endpoint $source + * Required. Source specification of the Connectivity Test. + * You can use a combination of source IP address, URI of a supported + * endpoint, project ID, or VPC network to identify the source location. + * Reachability analysis might proceed even if the source location is + * ambiguous. However, the test result might include endpoints or use a source + * that you don't intend to test. + * @type \Google\Cloud\NetworkManagement\V1\Endpoint $destination + * Required. Destination specification of the Connectivity Test. + * You can use a combination of destination IP address, URI of a supported + * endpoint, project ID, or VPC network to identify the destination location. + * Reachability analysis proceeds even if the destination location is + * ambiguous. However, the test result might include endpoints or use a + * destination that you don't intend to test. + * @type string $protocol + * IP Protocol of the test. When not provided, "TCP" is assumed. + * @type array|\Google\Protobuf\Internal\RepeatedField $related_projects + * Other projects that may be relevant for reachability analysis. + * This is applicable to scenarios where a test can cross project boundaries. + * @type string $display_name + * Output only. The display name of a Connectivity Test. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Resource labels to represent user-provided metadata. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the test was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time the test's configuration was updated. + * @type \Google\Cloud\NetworkManagement\V1\ReachabilityDetails $reachability_details + * Output only. The reachability details of this test from the latest run. + * The details are updated when creating a new test, updating an + * existing test, or triggering a one-time rerun of an existing test. + * @type \Google\Cloud\NetworkManagement\V1\ProbingDetails $probing_details + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + * @type bool $round_trip + * Whether run analysis for the return path from destination to source. + * Default value is false. + * @type \Google\Cloud\NetworkManagement\V1\ReachabilityDetails $return_reachability_details + * Output only. The reachability details of this test from the latest run for + * the return path. The details are updated when creating a new test, + * updating an existing test, or triggering a one-time rerun of an existing + * test. + * @type bool $bypass_firewall_checks + * Whether the analysis should skip firewall checking. Default value is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Unique name of the resource using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Unique name of the resource using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The user-supplied description of the Connectivity Test. + * Maximum of 512 characters. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The user-supplied description of the Connectivity Test. + * Maximum of 512 characters. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. Source specification of the Connectivity Test. + * You can use a combination of source IP address, URI of a supported + * endpoint, project ID, or VPC network to identify the source location. + * Reachability analysis might proceed even if the source location is + * ambiguous. However, the test result might include endpoints or use a source + * that you don't intend to test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\NetworkManagement\V1\Endpoint|null + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * Required. Source specification of the Connectivity Test. + * You can use a combination of source IP address, URI of a supported + * endpoint, project ID, or VPC network to identify the source location. + * Reachability analysis might proceed even if the source location is + * ambiguous. However, the test result might include endpoints or use a source + * that you don't intend to test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\NetworkManagement\V1\Endpoint $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint::class); + $this->source = $var; + + return $this; + } + + /** + * Required. Destination specification of the Connectivity Test. + * You can use a combination of destination IP address, URI of a supported + * endpoint, project ID, or VPC network to identify the destination location. + * Reachability analysis proceeds even if the destination location is + * ambiguous. However, the test result might include endpoints or use a + * destination that you don't intend to test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\NetworkManagement\V1\Endpoint|null + */ + public function getDestination() + { + return $this->destination; + } + + public function hasDestination() + { + return isset($this->destination); + } + + public function clearDestination() + { + unset($this->destination); + } + + /** + * Required. Destination specification of the Connectivity Test. + * You can use a combination of destination IP address, URI of a supported + * endpoint, project ID, or VPC network to identify the destination location. + * Reachability analysis proceeds even if the destination location is + * ambiguous. However, the test result might include endpoints or use a + * destination that you don't intend to test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\NetworkManagement\V1\Endpoint $var + * @return $this + */ + public function setDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint::class); + $this->destination = $var; + + return $this; + } + + /** + * IP Protocol of the test. When not provided, "TCP" is assumed. + * + * Generated from protobuf field string protocol = 5; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * IP Protocol of the test. When not provided, "TCP" is assumed. + * + * Generated from protobuf field string protocol = 5; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * Other projects that may be relevant for reachability analysis. + * This is applicable to scenarios where a test can cross project boundaries. + * + * Generated from protobuf field repeated string related_projects = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelatedProjects() + { + return $this->related_projects; + } + + /** + * Other projects that may be relevant for reachability analysis. + * This is applicable to scenarios where a test can cross project boundaries. + * + * Generated from protobuf field repeated string related_projects = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelatedProjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->related_projects = $arr; + + return $this; + } + + /** + * Output only. The display name of a Connectivity Test. + * + * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The display name of a Connectivity Test. + * + * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Resource labels to represent user-provided metadata. + * + * Generated from protobuf field map labels = 8; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Resource labels to represent user-provided metadata. + * + * Generated from protobuf field map labels = 8; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The time the test was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the test was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the test's configuration was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time the test's configuration was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The reachability details of this test from the latest run. + * The details are updated when creating a new test, updating an + * existing test, or triggering a one-time rerun of an existing test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\NetworkManagement\V1\ReachabilityDetails|null + */ + public function getReachabilityDetails() + { + return $this->reachability_details; + } + + public function hasReachabilityDetails() + { + return isset($this->reachability_details); + } + + public function clearReachabilityDetails() + { + unset($this->reachability_details); + } + + /** + * Output only. The reachability details of this test from the latest run. + * The details are updated when creating a new test, updating an + * existing test, or triggering a one-time rerun of an existing test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\NetworkManagement\V1\ReachabilityDetails $var + * @return $this + */ + public function setReachabilityDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ReachabilityDetails::class); + $this->reachability_details = $var; + + return $this; + } + + /** + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\NetworkManagement\V1\ProbingDetails|null + */ + public function getProbingDetails() + { + return $this->probing_details; + } + + public function hasProbingDetails() + { + return isset($this->probing_details); + } + + public function clearProbingDetails() + { + unset($this->probing_details); + } + + /** + * Output only. The probing details of this test from the latest run, present + * for applicable tests only. The details are updated when creating a new + * test, updating an existing test, or triggering a one-time rerun of an + * existing test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\NetworkManagement\V1\ProbingDetails $var + * @return $this + */ + public function setProbingDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails::class); + $this->probing_details = $var; + + return $this; + } + + /** + * Whether run analysis for the return path from destination to source. + * Default value is false. + * + * Generated from protobuf field bool round_trip = 15; + * @return bool + */ + public function getRoundTrip() + { + return $this->round_trip; + } + + /** + * Whether run analysis for the return path from destination to source. + * Default value is false. + * + * Generated from protobuf field bool round_trip = 15; + * @param bool $var + * @return $this + */ + public function setRoundTrip($var) + { + GPBUtil::checkBool($var); + $this->round_trip = $var; + + return $this; + } + + /** + * Output only. The reachability details of this test from the latest run for + * the return path. The details are updated when creating a new test, + * updating an existing test, or triggering a one-time rerun of an existing + * test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails return_reachability_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\NetworkManagement\V1\ReachabilityDetails|null + */ + public function getReturnReachabilityDetails() + { + return $this->return_reachability_details; + } + + public function hasReturnReachabilityDetails() + { + return isset($this->return_reachability_details); + } + + public function clearReturnReachabilityDetails() + { + unset($this->return_reachability_details); + } + + /** + * Output only. The reachability details of this test from the latest run for + * the return path. The details are updated when creating a new test, + * updating an existing test, or triggering a one-time rerun of an existing + * test. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails return_reachability_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\NetworkManagement\V1\ReachabilityDetails $var + * @return $this + */ + public function setReturnReachabilityDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ReachabilityDetails::class); + $this->return_reachability_details = $var; + + return $this; + } + + /** + * Whether the analysis should skip firewall checking. Default value is false. + * + * Generated from protobuf field bool bypass_firewall_checks = 17; + * @return bool + */ + public function getBypassFirewallChecks() + { + return $this->bypass_firewall_checks; + } + + /** + * Whether the analysis should skip firewall checking. Default value is false. + * + * Generated from protobuf field bool bypass_firewall_checks = 17; + * @param bool $var + * @return $this + */ + public function setBypassFirewallChecks($var) + { + GPBUtil::checkBool($var); + $this->bypass_firewall_checks = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateConnectivityTestRequest.php new file mode 100644 index 000000000000..1fdd275480d8 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateConnectivityTestRequest.php @@ -0,0 +1,199 @@ +google.cloud.networkmanagement.v1.CreateConnectivityTestRequest + */ +class CreateConnectivityTestRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the Connectivity Test to create: + * `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The logical name of the Connectivity Test in your project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project + * + * Generated from protobuf field string test_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $test_id = ''; + /** + * Required. A `ConnectivityTest` resource + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource = null; + + /** + * @param string $parent Required. The parent resource of the Connectivity Test to create: + * `projects/{project_id}/locations/global` + * Please see {@see ReachabilityServiceClient::projectName()} for help formatting this field. + * @param string $testId Required. The logical name of the Connectivity Test in your project + * with the following restrictions: + * + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project + * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource Required. A `ConnectivityTest` resource + * + * @return \Google\Cloud\NetworkManagement\V1\CreateConnectivityTestRequest + * + * @experimental + */ + public static function build(string $parent, string $testId, \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource): self + { + return (new self()) + ->setParent($parent) + ->setTestId($testId) + ->setResource($resource); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the Connectivity Test to create: + * `projects/{project_id}/locations/global` + * @type string $test_id + * Required. The logical name of the Connectivity Test in your project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project + * @type \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource + * Required. A `ConnectivityTest` resource + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the Connectivity Test to create: + * `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource of the Connectivity Test to create: + * `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The logical name of the Connectivity Test in your project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project + * + * Generated from protobuf field string test_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTestId() + { + return $this->test_id; + } + + /** + * Required. The logical name of the Connectivity Test in your project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project + * + * Generated from protobuf field string test_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTestId($var) + { + GPBUtil::checkString($var, True); + $this->test_id = $var; + + return $this; + } + + /** + * Required. A `ConnectivityTest` resource + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\NetworkManagement\V1\ConnectivityTest|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * Required. A `ConnectivityTest` resource + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ConnectivityTest::class); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateVpcFlowLogsConfigRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateVpcFlowLogsConfigRequest.php new file mode 100644 index 000000000000..3e67c2fe16df --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateVpcFlowLogsConfigRequest.php @@ -0,0 +1,186 @@ +google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + */ +class CreateVpcFlowLogsConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the VpcFlowLogsConfig to create, + * in one of the following formats: + * - For project-level resources: `projects/{project_id}/locations/global` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. ID of the `VpcFlowLogsConfig`. + * + * Generated from protobuf field string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $vpc_flow_logs_config_id = ''; + /** + * Required. A `VpcFlowLogsConfig` resource + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vpc_flow_logs_config = null; + + /** + * @param string $parent Required. The parent resource of the VpcFlowLogsConfig to create, + * in one of the following formats: + * + * - For project-level resources: `projects/{project_id}/locations/global` + * + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * Please see {@see VpcFlowLogsServiceClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param string $vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. Please see + * {@see VpcFlowLogsServiceClient::vpcFlowLogsConfigName()} for help formatting this field. + * + * @return \Google\Cloud\NetworkManagement\V1\CreateVpcFlowLogsConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpcFlowLogsConfig, string $vpcFlowLogsConfigId): self + { + return (new self()) + ->setParent($parent) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig) + ->setVpcFlowLogsConfigId($vpcFlowLogsConfigId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the VpcFlowLogsConfig to create, + * in one of the following formats: + * - For project-level resources: `projects/{project_id}/locations/global` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * @type string $vpc_flow_logs_config_id + * Required. ID of the `VpcFlowLogsConfig`. + * @type \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpc_flow_logs_config + * Required. A `VpcFlowLogsConfig` resource + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the VpcFlowLogsConfig to create, + * in one of the following formats: + * - For project-level resources: `projects/{project_id}/locations/global` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource of the VpcFlowLogsConfig to create, + * in one of the following formats: + * - For project-level resources: `projects/{project_id}/locations/global` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. ID of the `VpcFlowLogsConfig`. + * + * Generated from protobuf field string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getVpcFlowLogsConfigId() + { + return $this->vpc_flow_logs_config_id; + } + + /** + * Required. ID of the `VpcFlowLogsConfig`. + * + * Generated from protobuf field string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setVpcFlowLogsConfigId($var) + { + GPBUtil::checkString($var, True); + $this->vpc_flow_logs_config_id = $var; + + return $this; + } + + /** + * Required. A `VpcFlowLogsConfig` resource + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig|null + */ + public function getVpcFlowLogsConfig() + { + return $this->vpc_flow_logs_config; + } + + public function hasVpcFlowLogsConfig() + { + return isset($this->vpc_flow_logs_config); + } + + public function clearVpcFlowLogsConfig() + { + unset($this->vpc_flow_logs_config); + } + + /** + * Required. A `VpcFlowLogsConfig` resource + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $var + * @return $this + */ + public function setVpcFlowLogsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig::class); + $this->vpc_flow_logs_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteConnectivityTestRequest.php new file mode 100644 index 000000000000..32c0612f03aa --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteConnectivityTestRequest.php @@ -0,0 +1,86 @@ +google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest + */ +class DeleteConnectivityTestRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * Please see {@see ReachabilityServiceClient::connectivityTestName()} for help formatting this field. + * + * @return \Google\Cloud\NetworkManagement\V1\DeleteConnectivityTestRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); + parent::__construct($data); + } + + /** + * Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteVpcFlowLogsConfigRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteVpcFlowLogsConfigRequest.php new file mode 100644 index 000000000000..e25e5e6350cb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteVpcFlowLogsConfigRequest.php @@ -0,0 +1,108 @@ +google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + */ +class DeleteVpcFlowLogsConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * + * - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * Please see {@see VpcFlowLogsServiceClient::vpcFlowLogsConfigName()} for help formatting this field. + * + * @return \Google\Cloud\NetworkManagement\V1\DeleteVpcFlowLogsConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo.php new file mode 100644 index 000000000000..1b654aa9bdab --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo.php @@ -0,0 +1,245 @@ +google.cloud.networkmanagement.v1.DeliverInfo + */ +class DeliverInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Target type where the packet is delivered to. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.Target target = 1; + */ + protected $target = 0; + /** + * URI of the resource that the packet is delivered to. + * + * Generated from protobuf field string resource_uri = 2; + */ + protected $resource_uri = ''; + /** + * IP address of the target (if applicable). + * + * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { + */ + protected $ip_address = ''; + /** + * Name of the Cloud Storage Bucket the packet is delivered to (if + * applicable). + * + * Generated from protobuf field string storage_bucket = 4; + */ + protected $storage_bucket = ''; + /** + * PSC Google API target the packet is delivered to (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 5; + */ + protected $psc_google_api_target = ''; + /** + * Recognized type of a Google Service the packet is delivered to (if + * applicable). + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + */ + protected $google_service_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $target + * Target type where the packet is delivered to. + * @type string $resource_uri + * URI of the resource that the packet is delivered to. + * @type string $ip_address + * IP address of the target (if applicable). + * @type string $storage_bucket + * Name of the Cloud Storage Bucket the packet is delivered to (if + * applicable). + * @type string $psc_google_api_target + * PSC Google API target the packet is delivered to (if applicable). + * @type int $google_service_type + * Recognized type of a Google Service the packet is delivered to (if + * applicable). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Target type where the packet is delivered to. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.Target target = 1; + * @return int + */ + public function getTarget() + { + return $this->target; + } + + /** + * Target type where the packet is delivered to. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.Target target = 1; + * @param int $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\DeliverInfo\Target::class); + $this->target = $var; + + return $this; + } + + /** + * URI of the resource that the packet is delivered to. + * + * Generated from protobuf field string resource_uri = 2; + * @return string + */ + public function getResourceUri() + { + return $this->resource_uri; + } + + /** + * URI of the resource that the packet is delivered to. + * + * Generated from protobuf field string resource_uri = 2; + * @param string $var + * @return $this + */ + public function setResourceUri($var) + { + GPBUtil::checkString($var, True); + $this->resource_uri = $var; + + return $this; + } + + /** + * IP address of the target (if applicable). + * + * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { + * @return string + */ + public function getIpAddress() + { + return $this->ip_address; + } + + /** + * IP address of the target (if applicable). + * + * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->ip_address = $var; + + return $this; + } + + /** + * Name of the Cloud Storage Bucket the packet is delivered to (if + * applicable). + * + * Generated from protobuf field string storage_bucket = 4; + * @return string + */ + public function getStorageBucket() + { + return $this->storage_bucket; + } + + /** + * Name of the Cloud Storage Bucket the packet is delivered to (if + * applicable). + * + * Generated from protobuf field string storage_bucket = 4; + * @param string $var + * @return $this + */ + public function setStorageBucket($var) + { + GPBUtil::checkString($var, True); + $this->storage_bucket = $var; + + return $this; + } + + /** + * PSC Google API target the packet is delivered to (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 5; + * @return string + */ + public function getPscGoogleApiTarget() + { + return $this->psc_google_api_target; + } + + /** + * PSC Google API target the packet is delivered to (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 5; + * @param string $var + * @return $this + */ + public function setPscGoogleApiTarget($var) + { + GPBUtil::checkString($var, True); + $this->psc_google_api_target = $var; + + return $this; + } + + /** + * Recognized type of a Google Service the packet is delivered to (if + * applicable). + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * @return int + */ + public function getGoogleServiceType() + { + return $this->google_service_type; + } + + /** + * Recognized type of a Google Service the packet is delivered to (if + * applicable). + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * @param int $var + * @return $this + */ + public function setGoogleServiceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\DeliverInfo\GoogleServiceType::class); + $this->google_service_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/GoogleServiceType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/GoogleServiceType.php new file mode 100644 index 000000000000..22c2d14f18ec --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/GoogleServiceType.php @@ -0,0 +1,95 @@ +google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType + */ +class GoogleServiceType +{ + /** + * Unspecified Google Service. + * + * Generated from protobuf enum GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + */ + const GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + /** + * Identity aware proxy. + * https://cloud.google.com/iap/docs/using-tcp-forwarding + * + * Generated from protobuf enum IAP = 1; + */ + const IAP = 1; + /** + * One of two services sharing IP ranges: + * * Load Balancer proxy + * * Centralized Health Check prober + * https://cloud.google.com/load-balancing/docs/firewall-rules + * + * Generated from protobuf enum GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + */ + const GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + /** + * Connectivity from Cloud DNS to forwarding targets or alternate name + * servers that use private routing. + * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules + * https://cloud.google.com/dns/docs/policies#firewall-rules + * + * Generated from protobuf enum CLOUD_DNS = 3; + */ + const CLOUD_DNS = 3; + /** + * private.googleapis.com and restricted.googleapis.com + * + * Generated from protobuf enum PRIVATE_GOOGLE_ACCESS = 4; + */ + const PRIVATE_GOOGLE_ACCESS = 4; + /** + * Google API via Private Service Connect. + * https://cloud.google.com/vpc/docs/configure-private-service-connect-apis + * Google API via Serverless VPC Access. + * https://cloud.google.com/vpc/docs/serverless-vpc-access + * + * Generated from protobuf enum SERVERLESS_VPC_ACCESS = 5; + */ + const SERVERLESS_VPC_ACCESS = 5; + + private static $valueToName = [ + self::GOOGLE_SERVICE_TYPE_UNSPECIFIED => 'GOOGLE_SERVICE_TYPE_UNSPECIFIED', + self::IAP => 'IAP', + self::GFE_PROXY_OR_HEALTH_CHECK_PROBER => 'GFE_PROXY_OR_HEALTH_CHECK_PROBER', + self::CLOUD_DNS => 'CLOUD_DNS', + self::PRIVATE_GOOGLE_ACCESS => 'PRIVATE_GOOGLE_ACCESS', + self::SERVERLESS_VPC_ACCESS => 'SERVERLESS_VPC_ACCESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleServiceType::class, \Google\Cloud\NetworkManagement\V1\DeliverInfo_GoogleServiceType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/Target.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/Target.php new file mode 100644 index 000000000000..9ce02ea67e90 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/Target.php @@ -0,0 +1,179 @@ +google.cloud.networkmanagement.v1.DeliverInfo.Target + */ +class Target +{ + /** + * Target not specified. + * + * Generated from protobuf enum TARGET_UNSPECIFIED = 0; + */ + const TARGET_UNSPECIFIED = 0; + /** + * Target is a Compute Engine instance. + * + * Generated from protobuf enum INSTANCE = 1; + */ + const INSTANCE = 1; + /** + * Target is the internet. + * + * Generated from protobuf enum INTERNET = 2; + */ + const INTERNET = 2; + /** + * Target is a Google API. + * + * Generated from protobuf enum GOOGLE_API = 3; + */ + const GOOGLE_API = 3; + /** + * Target is a Google Kubernetes Engine cluster master. + * + * Generated from protobuf enum GKE_MASTER = 4; + */ + const GKE_MASTER = 4; + /** + * Target is a Cloud SQL instance. + * + * Generated from protobuf enum CLOUD_SQL_INSTANCE = 5; + */ + const CLOUD_SQL_INSTANCE = 5; + /** + * Target is a published service that uses [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). + * + * Generated from protobuf enum PSC_PUBLISHED_SERVICE = 6; + */ + const PSC_PUBLISHED_SERVICE = 6; + /** + * Target is Google APIs that use [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). + * + * Generated from protobuf enum PSC_GOOGLE_API = 7; + */ + const PSC_GOOGLE_API = 7; + /** + * Target is a VPC-SC that uses [Private Service + * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). + * + * Generated from protobuf enum PSC_VPC_SC = 8; + */ + const PSC_VPC_SC = 8; + /** + * Target is a serverless network endpoint group. + * + * Generated from protobuf enum SERVERLESS_NEG = 9; + */ + const SERVERLESS_NEG = 9; + /** + * Target is a Cloud Storage bucket. + * + * Generated from protobuf enum STORAGE_BUCKET = 10; + */ + const STORAGE_BUCKET = 10; + /** + * Target is a private network. Used only for return traces. + * + * Generated from protobuf enum PRIVATE_NETWORK = 11; + */ + const PRIVATE_NETWORK = 11; + /** + * Target is a Cloud Function. Used only for return traces. + * + * Generated from protobuf enum CLOUD_FUNCTION = 12; + */ + const CLOUD_FUNCTION = 12; + /** + * Target is a App Engine service version. Used only for return traces. + * + * Generated from protobuf enum APP_ENGINE_VERSION = 13; + */ + const APP_ENGINE_VERSION = 13; + /** + * Target is a Cloud Run revision. Used only for return traces. + * + * Generated from protobuf enum CLOUD_RUN_REVISION = 14; + */ + const CLOUD_RUN_REVISION = 14; + /** + * Target is a Google-managed service. Used only for return traces. + * + * Generated from protobuf enum GOOGLE_MANAGED_SERVICE = 15; + */ + const GOOGLE_MANAGED_SERVICE = 15; + /** + * Target is a Redis Instance. + * + * Generated from protobuf enum REDIS_INSTANCE = 16; + */ + const REDIS_INSTANCE = 16; + /** + * Target is a Redis Cluster. + * + * Generated from protobuf enum REDIS_CLUSTER = 17; + */ + const REDIS_CLUSTER = 17; + /** + * Target is a GKE Pod. + * + * Generated from protobuf enum GKE_POD = 19; + */ + const GKE_POD = 19; + + private static $valueToName = [ + self::TARGET_UNSPECIFIED => 'TARGET_UNSPECIFIED', + self::INSTANCE => 'INSTANCE', + self::INTERNET => 'INTERNET', + self::GOOGLE_API => 'GOOGLE_API', + self::GKE_MASTER => 'GKE_MASTER', + self::CLOUD_SQL_INSTANCE => 'CLOUD_SQL_INSTANCE', + self::PSC_PUBLISHED_SERVICE => 'PSC_PUBLISHED_SERVICE', + self::PSC_GOOGLE_API => 'PSC_GOOGLE_API', + self::PSC_VPC_SC => 'PSC_VPC_SC', + self::SERVERLESS_NEG => 'SERVERLESS_NEG', + self::STORAGE_BUCKET => 'STORAGE_BUCKET', + self::PRIVATE_NETWORK => 'PRIVATE_NETWORK', + self::CLOUD_FUNCTION => 'CLOUD_FUNCTION', + self::APP_ENGINE_VERSION => 'APP_ENGINE_VERSION', + self::CLOUD_RUN_REVISION => 'CLOUD_RUN_REVISION', + self::GOOGLE_MANAGED_SERVICE => 'GOOGLE_MANAGED_SERVICE', + self::REDIS_INSTANCE => 'REDIS_INSTANCE', + self::REDIS_CLUSTER => 'REDIS_CLUSTER', + self::GKE_POD => 'GKE_POD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Target::class, \Google\Cloud\NetworkManagement\V1\DeliverInfo_Target::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DirectVpcEgressConnectionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DirectVpcEgressConnectionInfo.php new file mode 100644 index 000000000000..e81e09d700eb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DirectVpcEgressConnectionInfo.php @@ -0,0 +1,204 @@ +google.cloud.networkmanagement.v1.DirectVpcEgressConnectionInfo + */ +class DirectVpcEgressConnectionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * URI of direct access network. + * + * Generated from protobuf field string network_uri = 1; + */ + protected $network_uri = ''; + /** + * URI of direct access subnetwork. + * + * Generated from protobuf field string subnetwork_uri = 2; + */ + protected $subnetwork_uri = ''; + /** + * Selected IP range. + * + * Generated from protobuf field string selected_ip_range = 3 [(.google.api.field_info) = { + */ + protected $selected_ip_range = ''; + /** + * Selected starting IP address, from the selected IP range. + * + * Generated from protobuf field string selected_ip_address = 4 [(.google.api.field_info) = { + */ + protected $selected_ip_address = ''; + /** + * Region in which the Direct VPC egress is deployed. + * + * Generated from protobuf field string region = 5; + */ + protected $region = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $network_uri + * URI of direct access network. + * @type string $subnetwork_uri + * URI of direct access subnetwork. + * @type string $selected_ip_range + * Selected IP range. + * @type string $selected_ip_address + * Selected starting IP address, from the selected IP range. + * @type string $region + * Region in which the Direct VPC egress is deployed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * URI of direct access network. + * + * Generated from protobuf field string network_uri = 1; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of direct access network. + * + * Generated from protobuf field string network_uri = 1; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * URI of direct access subnetwork. + * + * Generated from protobuf field string subnetwork_uri = 2; + * @return string + */ + public function getSubnetworkUri() + { + return $this->subnetwork_uri; + } + + /** + * URI of direct access subnetwork. + * + * Generated from protobuf field string subnetwork_uri = 2; + * @param string $var + * @return $this + */ + public function setSubnetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork_uri = $var; + + return $this; + } + + /** + * Selected IP range. + * + * Generated from protobuf field string selected_ip_range = 3 [(.google.api.field_info) = { + * @return string + */ + public function getSelectedIpRange() + { + return $this->selected_ip_range; + } + + /** + * Selected IP range. + * + * Generated from protobuf field string selected_ip_range = 3 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setSelectedIpRange($var) + { + GPBUtil::checkString($var, True); + $this->selected_ip_range = $var; + + return $this; + } + + /** + * Selected starting IP address, from the selected IP range. + * + * Generated from protobuf field string selected_ip_address = 4 [(.google.api.field_info) = { + * @return string + */ + public function getSelectedIpAddress() + { + return $this->selected_ip_address; + } + + /** + * Selected starting IP address, from the selected IP range. + * + * Generated from protobuf field string selected_ip_address = 4 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setSelectedIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->selected_ip_address = $var; + + return $this; + } + + /** + * Region in which the Direct VPC egress is deployed. + * + * Generated from protobuf field string region = 5; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Region in which the Direct VPC egress is deployed. + * + * Generated from protobuf field string region = 5; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo.php new file mode 100644 index 000000000000..84dc23eb8903 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo.php @@ -0,0 +1,271 @@ +google.cloud.networkmanagement.v1.DropInfo + */ +class DropInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Cause that the packet is dropped. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1; + */ + protected $cause = 0; + /** + * URI of the resource that caused the drop. + * + * Generated from protobuf field string resource_uri = 2; + */ + protected $resource_uri = ''; + /** + * Source IP address of the dropped packet (if relevant). + * + * Generated from protobuf field string source_ip = 3; + */ + protected $source_ip = ''; + /** + * Destination IP address of the dropped packet (if relevant). + * + * Generated from protobuf field string destination_ip = 4; + */ + protected $destination_ip = ''; + /** + * Region of the dropped packet (if relevant). + * + * Generated from protobuf field string region = 5; + */ + protected $region = ''; + /** + * Geolocation (region code) of the source IP address (if relevant). + * + * Generated from protobuf field string source_geolocation_code = 6; + */ + protected $source_geolocation_code = ''; + /** + * Geolocation (region code) of the destination IP address (if relevant). + * + * Generated from protobuf field string destination_geolocation_code = 7; + */ + protected $destination_geolocation_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $cause + * Cause that the packet is dropped. + * @type string $resource_uri + * URI of the resource that caused the drop. + * @type string $source_ip + * Source IP address of the dropped packet (if relevant). + * @type string $destination_ip + * Destination IP address of the dropped packet (if relevant). + * @type string $region + * Region of the dropped packet (if relevant). + * @type string $source_geolocation_code + * Geolocation (region code) of the source IP address (if relevant). + * @type string $destination_geolocation_code + * Geolocation (region code) of the destination IP address (if relevant). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Cause that the packet is dropped. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1; + * @return int + */ + public function getCause() + { + return $this->cause; + } + + /** + * Cause that the packet is dropped. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1; + * @param int $var + * @return $this + */ + public function setCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\DropInfo\Cause::class); + $this->cause = $var; + + return $this; + } + + /** + * URI of the resource that caused the drop. + * + * Generated from protobuf field string resource_uri = 2; + * @return string + */ + public function getResourceUri() + { + return $this->resource_uri; + } + + /** + * URI of the resource that caused the drop. + * + * Generated from protobuf field string resource_uri = 2; + * @param string $var + * @return $this + */ + public function setResourceUri($var) + { + GPBUtil::checkString($var, True); + $this->resource_uri = $var; + + return $this; + } + + /** + * Source IP address of the dropped packet (if relevant). + * + * Generated from protobuf field string source_ip = 3; + * @return string + */ + public function getSourceIp() + { + return $this->source_ip; + } + + /** + * Source IP address of the dropped packet (if relevant). + * + * Generated from protobuf field string source_ip = 3; + * @param string $var + * @return $this + */ + public function setSourceIp($var) + { + GPBUtil::checkString($var, True); + $this->source_ip = $var; + + return $this; + } + + /** + * Destination IP address of the dropped packet (if relevant). + * + * Generated from protobuf field string destination_ip = 4; + * @return string + */ + public function getDestinationIp() + { + return $this->destination_ip; + } + + /** + * Destination IP address of the dropped packet (if relevant). + * + * Generated from protobuf field string destination_ip = 4; + * @param string $var + * @return $this + */ + public function setDestinationIp($var) + { + GPBUtil::checkString($var, True); + $this->destination_ip = $var; + + return $this; + } + + /** + * Region of the dropped packet (if relevant). + * + * Generated from protobuf field string region = 5; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Region of the dropped packet (if relevant). + * + * Generated from protobuf field string region = 5; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + + /** + * Geolocation (region code) of the source IP address (if relevant). + * + * Generated from protobuf field string source_geolocation_code = 6; + * @return string + */ + public function getSourceGeolocationCode() + { + return $this->source_geolocation_code; + } + + /** + * Geolocation (region code) of the source IP address (if relevant). + * + * Generated from protobuf field string source_geolocation_code = 6; + * @param string $var + * @return $this + */ + public function setSourceGeolocationCode($var) + { + GPBUtil::checkString($var, True); + $this->source_geolocation_code = $var; + + return $this; + } + + /** + * Geolocation (region code) of the destination IP address (if relevant). + * + * Generated from protobuf field string destination_geolocation_code = 7; + * @return string + */ + public function getDestinationGeolocationCode() + { + return $this->destination_geolocation_code; + } + + /** + * Geolocation (region code) of the destination IP address (if relevant). + * + * Generated from protobuf field string destination_geolocation_code = 7; + * @param string $var + * @return $this + */ + public function setDestinationGeolocationCode($var) + { + GPBUtil::checkString($var, True); + $this->destination_geolocation_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo/Cause.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo/Cause.php new file mode 100644 index 000000000000..b4adfa704c28 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo/Cause.php @@ -0,0 +1,863 @@ +google.cloud.networkmanagement.v1.DropInfo.Cause + */ +class Cause +{ + /** + * Cause is unspecified. + * + * Generated from protobuf enum CAUSE_UNSPECIFIED = 0; + */ + const CAUSE_UNSPECIFIED = 0; + /** + * Destination external address cannot be resolved to a known target. If + * the address is used in a Google Cloud project, provide the project ID + * as test input. + * + * Generated from protobuf enum UNKNOWN_EXTERNAL_ADDRESS = 1; + */ + const UNKNOWN_EXTERNAL_ADDRESS = 1; + /** + * A Compute Engine instance can only send or receive a packet with a + * foreign IP address if ip_forward is enabled. + * + * Generated from protobuf enum FOREIGN_IP_DISALLOWED = 2; + */ + const FOREIGN_IP_DISALLOWED = 2; + /** + * Dropped due to a firewall rule, unless allowed due to connection + * tracking. + * + * Generated from protobuf enum FIREWALL_RULE = 3; + */ + const FIREWALL_RULE = 3; + /** + * Dropped due to no matching routes. + * + * Generated from protobuf enum NO_ROUTE = 4; + */ + const NO_ROUTE = 4; + /** + * Dropped due to invalid route. Route's next hop is a blackhole. + * + * Generated from protobuf enum ROUTE_BLACKHOLE = 5; + */ + const ROUTE_BLACKHOLE = 5; + /** + * Packet is sent to a wrong (unintended) network. Example: you trace a + * packet from VM1:Network1 to VM2:Network2, however, the route configured + * in Network1 sends the packet destined for VM2's IP address to Network3. + * + * Generated from protobuf enum ROUTE_WRONG_NETWORK = 6; + */ + const ROUTE_WRONG_NETWORK = 6; + /** + * Route's next hop IP address cannot be resolved to a GCP resource. + * + * Generated from protobuf enum ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED = 42; + */ + const ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED = 42; + /** + * Route's next hop resource is not found. + * + * Generated from protobuf enum ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND = 43; + */ + const ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND = 43; + /** + * Route's next hop instance doesn't have a NIC in the route's network. + * + * Generated from protobuf enum ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK = 49; + */ + const ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK = 49; + /** + * Route's next hop IP address is not a primary IP address of the next hop + * instance. + * + * Generated from protobuf enum ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_IP = 50; + */ + const ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_IP = 50; + /** + * Route's next hop forwarding rule doesn't match next hop IP address. + * + * Generated from protobuf enum ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH = 51; + */ + const ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH = 51; + /** + * Route's next hop VPN tunnel is down (does not have valid IKE SAs). + * + * Generated from protobuf enum ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED = 52; + */ + const ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED = 52; + /** + * Route's next hop forwarding rule type is invalid (it's not a forwarding + * rule of the internal passthrough load balancer). + * + * Generated from protobuf enum ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID = 53; + */ + const ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID = 53; + /** + * Packet is sent from the Internet to the private IPv6 address. + * + * Generated from protobuf enum NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; + */ + const NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; + /** + * Packet is sent from the Internet to the private IPv4 address. + * + * Generated from protobuf enum NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS = 109; + */ + const NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS = 109; + /** + * Packet is sent from the external IPv6 source address of an instance to + * the private IPv6 address of an instance. + * + * Generated from protobuf enum NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; + */ + const NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; + /** + * The packet does not match a policy-based VPN tunnel local selector. + * + * Generated from protobuf enum VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH = 45; + */ + const VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH = 45; + /** + * The packet does not match a policy-based VPN tunnel remote selector. + * + * Generated from protobuf enum VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH = 46; + */ + const VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH = 46; + /** + * Packet with internal destination address sent to the internet gateway. + * + * Generated from protobuf enum PRIVATE_TRAFFIC_TO_INTERNET = 7; + */ + const PRIVATE_TRAFFIC_TO_INTERNET = 7; + /** + * Endpoint with only an internal IP address tries to access Google API and + * services, but Private Google Access is not enabled in the subnet or is + * not applicable. + * + * Generated from protobuf enum PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; + */ + const PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; + /** + * Source endpoint tries to access Google API and services through the VPN + * tunnel to another network, but Private Google Access needs to be enabled + * in the source endpoint network. + * + * Generated from protobuf enum PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED = 47; + */ + const PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED = 47; + /** + * Endpoint with only an internal IP address tries to access external hosts, + * but there is no matching Cloud NAT gateway in the subnet. + * + * Generated from protobuf enum NO_EXTERNAL_ADDRESS = 9; + */ + const NO_EXTERNAL_ADDRESS = 9; + /** + * Destination internal address cannot be resolved to a known target. If + * this is a shared VPC scenario, verify if the service project ID is + * provided as test input. Otherwise, verify if the IP address is being + * used in the project. + * + * Generated from protobuf enum UNKNOWN_INTERNAL_ADDRESS = 10; + */ + const UNKNOWN_INTERNAL_ADDRESS = 10; + /** + * Forwarding rule's protocol and ports do not match the packet header. + * + * Generated from protobuf enum FORWARDING_RULE_MISMATCH = 11; + */ + const FORWARDING_RULE_MISMATCH = 11; + /** + * Forwarding rule does not have backends configured. + * + * Generated from protobuf enum FORWARDING_RULE_NO_INSTANCES = 12; + */ + const FORWARDING_RULE_NO_INSTANCES = 12; + /** + * Firewalls block the health check probes to the backends and cause + * the backends to be unavailable for traffic from the load balancer. + * For more details, see [Health check firewall + * rules](https://cloud.google.com/load-balancing/docs/health-checks#firewall_rules). + * + * Generated from protobuf enum FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK = 13; + */ + const FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK = 13; + /** + * Matching ingress firewall rules by network tags for packets sent via + * serverless VPC direct egress is unsupported. Behavior is undefined. + * https://cloud.google.com/run/docs/configuring/vpc-direct-vpc#limitations + * + * Generated from protobuf enum INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS = 85; + */ + const INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS = 85; + /** + * Packet is sent from or to a Compute Engine instance that is not in a + * running state. + * + * Generated from protobuf enum INSTANCE_NOT_RUNNING = 14; + */ + const INSTANCE_NOT_RUNNING = 14; + /** + * Packet sent from or to a GKE cluster that is not in running state. + * + * Generated from protobuf enum GKE_CLUSTER_NOT_RUNNING = 27; + */ + const GKE_CLUSTER_NOT_RUNNING = 27; + /** + * Packet sent from or to a GKE Pod that is not in running state. + * + * Generated from protobuf enum GKE_POD_NOT_RUNNING = 103; + */ + const GKE_POD_NOT_RUNNING = 103; + /** + * Packet sent from or to a Cloud SQL instance that is not in running state. + * + * Generated from protobuf enum CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; + */ + const CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; + /** + * Packet sent from or to a Redis Instance that is not in running state. + * + * Generated from protobuf enum REDIS_INSTANCE_NOT_RUNNING = 68; + */ + const REDIS_INSTANCE_NOT_RUNNING = 68; + /** + * Packet sent from or to a Redis Cluster that is not in running state. + * + * Generated from protobuf enum REDIS_CLUSTER_NOT_RUNNING = 69; + */ + const REDIS_CLUSTER_NOT_RUNNING = 69; + /** + * The type of traffic is blocked and the user cannot configure a firewall + * rule to enable it. See [Always blocked + * traffic](https://cloud.google.com/vpc/docs/firewalls#blockedtraffic) for + * more details. + * + * Generated from protobuf enum TRAFFIC_TYPE_BLOCKED = 15; + */ + const TRAFFIC_TYPE_BLOCKED = 15; + /** + * Access to Google Kubernetes Engine cluster master's endpoint is not + * authorized. See [Access to the cluster + * endpoints](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#access_to_the_cluster_endpoints) + * for more details. + * + * Generated from protobuf enum GKE_MASTER_UNAUTHORIZED_ACCESS = 16; + */ + const GKE_MASTER_UNAUTHORIZED_ACCESS = 16; + /** + * Access to the Cloud SQL instance endpoint is not authorized. + * See [Authorizing with authorized + * networks](https://cloud.google.com/sql/docs/mysql/authorize-networks) for + * more details. + * + * Generated from protobuf enum CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS = 17; + */ + const CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS = 17; + /** + * Packet was dropped inside Google Kubernetes Engine Service. + * + * Generated from protobuf enum DROPPED_INSIDE_GKE_SERVICE = 18; + */ + const DROPPED_INSIDE_GKE_SERVICE = 18; + /** + * Packet was dropped inside Cloud SQL Service. + * + * Generated from protobuf enum DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19; + */ + const DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19; + /** + * Packet was dropped because there is no peering between the originating + * network and the Google Managed Services Network. + * + * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_NO_PEERING = 20; + */ + const GOOGLE_MANAGED_SERVICE_NO_PEERING = 20; + /** + * Packet was dropped because the Google-managed service uses Private + * Service Connect (PSC), but the PSC endpoint is not found in the project. + * + * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38; + */ + const GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38; + /** + * Packet was dropped because the GKE cluster uses Private Service Connect + * (PSC), but the PSC endpoint is not found in the project. + * + * Generated from protobuf enum GKE_PSC_ENDPOINT_MISSING = 36; + */ + const GKE_PSC_ENDPOINT_MISSING = 36; + /** + * Packet was dropped because the Cloud SQL instance has neither a private + * nor a public IP address. + * + * Generated from protobuf enum CLOUD_SQL_INSTANCE_NO_IP_ADDRESS = 21; + */ + const CLOUD_SQL_INSTANCE_NO_IP_ADDRESS = 21; + /** + * Packet was dropped because a GKE cluster private endpoint is + * unreachable from a region different from the cluster's region. + * + * Generated from protobuf enum GKE_CONTROL_PLANE_REGION_MISMATCH = 30; + */ + const GKE_CONTROL_PLANE_REGION_MISMATCH = 30; + /** + * Packet sent from a public GKE cluster control plane to a private + * IP address. + * + * Generated from protobuf enum PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31; + */ + const PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31; + /** + * Packet was dropped because there is no route from a GKE cluster + * control plane to a destination network. + * + * Generated from protobuf enum GKE_CONTROL_PLANE_NO_ROUTE = 32; + */ + const GKE_CONTROL_PLANE_NO_ROUTE = 32; + /** + * Packet sent from a Cloud SQL instance to an external IP address is not + * allowed. The Cloud SQL instance is not configured to send packets to + * external IP addresses. + * + * Generated from protobuf enum CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33; + */ + const CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33; + /** + * Packet sent from a Cloud SQL instance with only a public IP address to a + * private IP address. + * + * Generated from protobuf enum PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34; + */ + const PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34; + /** + * Packet was dropped because there is no route from a Cloud SQL + * instance to a destination network. + * + * Generated from protobuf enum CLOUD_SQL_INSTANCE_NO_ROUTE = 35; + */ + const CLOUD_SQL_INSTANCE_NO_ROUTE = 35; + /** + * Packet was dropped because the Cloud SQL instance requires all + * connections to use Cloud SQL connectors and to target the Cloud SQL proxy + * port (3307). + * + * Generated from protobuf enum CLOUD_SQL_CONNECTOR_REQUIRED = 63; + */ + const CLOUD_SQL_CONNECTOR_REQUIRED = 63; + /** + * Packet could be dropped because the Cloud Function is not in an active + * status. + * + * Generated from protobuf enum CLOUD_FUNCTION_NOT_ACTIVE = 22; + */ + const CLOUD_FUNCTION_NOT_ACTIVE = 22; + /** + * Packet could be dropped because no VPC connector is set. + * + * Generated from protobuf enum VPC_CONNECTOR_NOT_SET = 23; + */ + const VPC_CONNECTOR_NOT_SET = 23; + /** + * Packet could be dropped because the VPC connector is not in a running + * state. + * + * Generated from protobuf enum VPC_CONNECTOR_NOT_RUNNING = 24; + */ + const VPC_CONNECTOR_NOT_RUNNING = 24; + /** + * Packet could be dropped because the traffic from the serverless service + * to the VPC connector is not allowed. + * + * Generated from protobuf enum VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; + */ + const VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; + /** + * Packet could be dropped because the health check traffic to the VPC + * connector is not allowed. + * + * Generated from protobuf enum VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; + */ + const VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; + /** + * Packet could be dropped because it was sent from a different region + * to a regional forwarding without global access. + * + * Generated from protobuf enum FORWARDING_RULE_REGION_MISMATCH = 25; + */ + const FORWARDING_RULE_REGION_MISMATCH = 25; + /** + * The Private Service Connect endpoint is in a project that is not approved + * to connect to the service. + * + * Generated from protobuf enum PSC_CONNECTION_NOT_ACCEPTED = 26; + */ + const PSC_CONNECTION_NOT_ACCEPTED = 26; + /** + * The packet is sent to the Private Service Connect endpoint over the + * peering, but [it's not + * supported](https://cloud.google.com/vpc/docs/configure-private-service-connect-services#on-premises). + * + * Generated from protobuf enum PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK = 41; + */ + const PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK = 41; + /** + * The packet is sent to the Private Service Connect backend (network + * endpoint group), but the producer PSC forwarding rule does not have + * global access enabled. + * + * Generated from protobuf enum PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS = 48; + */ + const PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS = 48; + /** + * The packet is sent to the Private Service Connect backend (network + * endpoint group), but the producer PSC forwarding rule has multiple ports + * specified. + * + * Generated from protobuf enum PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS = 54; + */ + const PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS = 54; + /** + * The packet is sent to the Private Service Connect backend (network + * endpoint group) targeting a Cloud SQL service attachment, but this + * configuration is not supported. + * + * Generated from protobuf enum CLOUD_SQL_PSC_NEG_UNSUPPORTED = 58; + */ + const CLOUD_SQL_PSC_NEG_UNSUPPORTED = 58; + /** + * No NAT subnets are defined for the PSC service attachment. + * + * Generated from protobuf enum NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; + */ + const NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; + /** + * PSC endpoint is accessed via NCC, but PSC transitivity configuration is + * not yet propagated. + * + * Generated from protobuf enum PSC_TRANSITIVITY_NOT_PROPAGATED = 64; + */ + const PSC_TRANSITIVITY_NOT_PROPAGATED = 64; + /** + * The packet sent from the hybrid NEG proxy matches a non-dynamic route, + * but such a configuration is not supported. + * + * Generated from protobuf enum HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED = 55; + */ + const HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED = 55; + /** + * The packet sent from the hybrid NEG proxy matches a dynamic route with a + * next hop in a different region, but such a configuration is not + * supported. + * + * Generated from protobuf enum HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED = 56; + */ + const HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED = 56; + /** + * Packet sent from a Cloud Run revision that is not ready. + * + * Generated from protobuf enum CLOUD_RUN_REVISION_NOT_READY = 29; + */ + const CLOUD_RUN_REVISION_NOT_READY = 29; + /** + * Packet was dropped inside Private Service Connect service producer. + * + * Generated from protobuf enum DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37; + */ + const DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37; + /** + * Packet sent to a load balancer, which requires a proxy-only subnet and + * the subnet is not found. + * + * Generated from protobuf enum LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39; + */ + const LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39; + /** + * Packet sent to Cloud Nat without active NAT IPs. + * + * Generated from protobuf enum CLOUD_NAT_NO_ADDRESSES = 40; + */ + const CLOUD_NAT_NO_ADDRESSES = 40; + /** + * Packet is stuck in a routing loop. + * + * Generated from protobuf enum ROUTING_LOOP = 59; + */ + const ROUTING_LOOP = 59; + /** + * Packet is dropped inside a Google-managed service due to being delivered + * in return trace to an endpoint that doesn't match the endpoint the packet + * was sent from in forward trace. Used only for return traces. + * + * Generated from protobuf enum DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; + */ + const DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; + /** + * Packet is dropped due to a load balancer backend instance not having a + * network interface in the network expected by the load balancer. + * + * Generated from protobuf enum LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; + */ + const LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; + /** + * Packet is dropped due to a backend service named port not being defined + * on the instance group level. + * + * Generated from protobuf enum BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; + */ + const BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; + /** + * Packet is dropped due to a destination IP range being part of a Private + * NAT IP range. + * + * Generated from protobuf enum DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; + */ + const DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; + /** + * Generic drop cause for a packet being dropped inside a Redis Instance + * service project. + * + * Generated from protobuf enum DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; + */ + const DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; + /** + * Packet is dropped due to an unsupported port being used to connect to a + * Redis Instance. Port 6379 should be used to connect to a Redis Instance. + * + * Generated from protobuf enum REDIS_INSTANCE_UNSUPPORTED_PORT = 71; + */ + const REDIS_INSTANCE_UNSUPPORTED_PORT = 71; + /** + * Packet is dropped due to connecting from PUPI address to a PSA based + * Redis Instance. + * + * Generated from protobuf enum REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; + */ + const REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; + /** + * Packet is dropped due to no route to the destination network. + * + * Generated from protobuf enum REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; + */ + const REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; + /** + * Redis Instance does not have an external IP address. + * + * Generated from protobuf enum REDIS_INSTANCE_NO_EXTERNAL_IP = 74; + */ + const REDIS_INSTANCE_NO_EXTERNAL_IP = 74; + /** + * Packet is dropped due to an unsupported protocol being used to connect to + * a Redis Instance. Only TCP connections are accepted by a Redis Instance. + * + * Generated from protobuf enum REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; + */ + const REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; + /** + * Generic drop cause for a packet being dropped inside a Redis Cluster + * service project. + * + * Generated from protobuf enum DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; + */ + const DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; + /** + * Packet is dropped due to an unsupported port being used to connect to a + * Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to + * a Redis Cluster. + * + * Generated from protobuf enum REDIS_CLUSTER_UNSUPPORTED_PORT = 76; + */ + const REDIS_CLUSTER_UNSUPPORTED_PORT = 76; + /** + * Redis Cluster does not have an external IP address. + * + * Generated from protobuf enum REDIS_CLUSTER_NO_EXTERNAL_IP = 77; + */ + const REDIS_CLUSTER_NO_EXTERNAL_IP = 77; + /** + * Packet is dropped due to an unsupported protocol being used to connect to + * a Redis Cluster. Only TCP connections are accepted by a Redis Cluster. + * + * Generated from protobuf enum REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; + */ + const REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; + /** + * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due + * to the destination IP address not belonging to any IP prefix advertised + * via BGP by the Cloud Router. + * + * Generated from protobuf enum NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; + */ + const NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; + /** + * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due + * to the destination IP address not belonging to any IP prefix included to + * the local traffic selector of the VPN tunnel. + * + * Generated from protobuf enum NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; + */ + const NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; + /** + * Packet from the unknown peered network is dropped due to no known route + * from the source network to the destination IP address. + * + * Generated from protobuf enum NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; + */ + const NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; + /** + * Sending packets processed by the Private NAT Gateways to the Private + * Service Connect endpoints is not supported. + * + * Generated from protobuf enum PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED = 83; + */ + const PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED = 83; + /** + * Packet is sent to the PSC port mapping service, but its destination port + * does not match any port mapping rules. + * + * Generated from protobuf enum PSC_PORT_MAPPING_PORT_MISMATCH = 86; + */ + const PSC_PORT_MAPPING_PORT_MISMATCH = 86; + /** + * Sending packets directly to the PSC port mapping service without going + * through the PSC connection is not supported. + * + * Generated from protobuf enum PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED = 87; + */ + const PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED = 87; + /** + * Packet with destination IP address within the reserved NAT64 range is + * dropped due to matching a route of an unsupported type. + * + * Generated from protobuf enum UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION = 88; + */ + const UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION = 88; + /** + * Packet could be dropped because hybrid endpoint like a VPN gateway or + * Interconnect is not allowed to send traffic to the Internet. + * + * Generated from protobuf enum TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; + */ + const TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; + /** + * Packet with destination IP address within the reserved NAT64 range is + * dropped due to no matching NAT gateway in the subnet. + * + * Generated from protobuf enum NO_MATCHING_NAT64_GATEWAY = 90; + */ + const NO_MATCHING_NAT64_GATEWAY = 90; + /** + * Packet is dropped due to matching a Private NAT64 gateway with no rules + * for source IPv6 addresses. + * + * Generated from protobuf enum NO_CONFIGURED_PRIVATE_NAT64_RULE = 107; + */ + const NO_CONFIGURED_PRIVATE_NAT64_RULE = 107; + /** + * Packet is dropped due to being sent to a backend of a passthrough load + * balancer that doesn't use the same IP version as the frontend. + * + * Generated from protobuf enum LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; + */ + const LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; + /** + * Packet from the unknown NCC network is dropped due to no known route + * from the source network to the destination IP address. + * + * Generated from protobuf enum NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; + */ + const NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; + /** + * Packet is dropped by Cloud NAT due to using an unsupported protocol. + * + * Generated from protobuf enum CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; + */ + const CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; + /** + * Packet is dropped due to using an unsupported protocol (any other than + * UDP) for L2 Interconnect. + * + * Generated from protobuf enum L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; + */ + const L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; + /** + * Packet is dropped due to using an unsupported port (any other than + * 6081) for L2 Interconnect. + * + * Generated from protobuf enum L2_INTERCONNECT_UNSUPPORTED_PORT = 101; + */ + const L2_INTERCONNECT_UNSUPPORTED_PORT = 101; + /** + * Packet is dropped due to destination IP not matching the appliance + * mapping IPs configured on the L2 Interconnect attachment. + * + * Generated from protobuf enum L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; + */ + const L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; + /** + * Packet could be dropped because it matches a route associated with an NCC + * spoke in the hybrid subnet context, but such a configuration is not + * supported. + * + * Generated from protobuf enum NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; + */ + const NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; + /** + * Packet is dropped because the region of the hybrid subnet is different + * from the region of the next hop of the route matched within this hybrid + * subnet. + * + * Generated from protobuf enum HYBRID_SUBNET_REGION_MISMATCH = 105; + */ + const HYBRID_SUBNET_REGION_MISMATCH = 105; + /** + * Packet is dropped because no matching route was found in the hybrid + * subnet. + * + * Generated from protobuf enum HYBRID_SUBNET_NO_ROUTE = 106; + */ + const HYBRID_SUBNET_NO_ROUTE = 106; + + private static $valueToName = [ + self::CAUSE_UNSPECIFIED => 'CAUSE_UNSPECIFIED', + self::UNKNOWN_EXTERNAL_ADDRESS => 'UNKNOWN_EXTERNAL_ADDRESS', + self::FOREIGN_IP_DISALLOWED => 'FOREIGN_IP_DISALLOWED', + self::FIREWALL_RULE => 'FIREWALL_RULE', + self::NO_ROUTE => 'NO_ROUTE', + self::ROUTE_BLACKHOLE => 'ROUTE_BLACKHOLE', + self::ROUTE_WRONG_NETWORK => 'ROUTE_WRONG_NETWORK', + self::ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED => 'ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED', + self::ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND => 'ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND', + self::ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK => 'ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK', + self::ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_IP => 'ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_IP', + self::ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH => 'ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH', + self::ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED => 'ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED', + self::ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID => 'ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID', + self::NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS => 'NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS', + self::NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS => 'NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS', + self::NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS => 'NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS', + self::VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH => 'VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH', + self::VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH => 'VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH', + self::PRIVATE_TRAFFIC_TO_INTERNET => 'PRIVATE_TRAFFIC_TO_INTERNET', + self::PRIVATE_GOOGLE_ACCESS_DISALLOWED => 'PRIVATE_GOOGLE_ACCESS_DISALLOWED', + self::PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED => 'PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED', + self::NO_EXTERNAL_ADDRESS => 'NO_EXTERNAL_ADDRESS', + self::UNKNOWN_INTERNAL_ADDRESS => 'UNKNOWN_INTERNAL_ADDRESS', + self::FORWARDING_RULE_MISMATCH => 'FORWARDING_RULE_MISMATCH', + self::FORWARDING_RULE_NO_INSTANCES => 'FORWARDING_RULE_NO_INSTANCES', + self::FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK => 'FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK', + self::INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS => 'INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS', + self::INSTANCE_NOT_RUNNING => 'INSTANCE_NOT_RUNNING', + self::GKE_CLUSTER_NOT_RUNNING => 'GKE_CLUSTER_NOT_RUNNING', + self::GKE_POD_NOT_RUNNING => 'GKE_POD_NOT_RUNNING', + self::CLOUD_SQL_INSTANCE_NOT_RUNNING => 'CLOUD_SQL_INSTANCE_NOT_RUNNING', + self::REDIS_INSTANCE_NOT_RUNNING => 'REDIS_INSTANCE_NOT_RUNNING', + self::REDIS_CLUSTER_NOT_RUNNING => 'REDIS_CLUSTER_NOT_RUNNING', + self::TRAFFIC_TYPE_BLOCKED => 'TRAFFIC_TYPE_BLOCKED', + self::GKE_MASTER_UNAUTHORIZED_ACCESS => 'GKE_MASTER_UNAUTHORIZED_ACCESS', + self::CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS => 'CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS', + self::DROPPED_INSIDE_GKE_SERVICE => 'DROPPED_INSIDE_GKE_SERVICE', + self::DROPPED_INSIDE_CLOUD_SQL_SERVICE => 'DROPPED_INSIDE_CLOUD_SQL_SERVICE', + self::GOOGLE_MANAGED_SERVICE_NO_PEERING => 'GOOGLE_MANAGED_SERVICE_NO_PEERING', + self::GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT => 'GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT', + self::GKE_PSC_ENDPOINT_MISSING => 'GKE_PSC_ENDPOINT_MISSING', + self::CLOUD_SQL_INSTANCE_NO_IP_ADDRESS => 'CLOUD_SQL_INSTANCE_NO_IP_ADDRESS', + self::GKE_CONTROL_PLANE_REGION_MISMATCH => 'GKE_CONTROL_PLANE_REGION_MISMATCH', + self::PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION => 'PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION', + self::GKE_CONTROL_PLANE_NO_ROUTE => 'GKE_CONTROL_PLANE_NO_ROUTE', + self::CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC => 'CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC', + self::PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION => 'PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION', + self::CLOUD_SQL_INSTANCE_NO_ROUTE => 'CLOUD_SQL_INSTANCE_NO_ROUTE', + self::CLOUD_SQL_CONNECTOR_REQUIRED => 'CLOUD_SQL_CONNECTOR_REQUIRED', + self::CLOUD_FUNCTION_NOT_ACTIVE => 'CLOUD_FUNCTION_NOT_ACTIVE', + self::VPC_CONNECTOR_NOT_SET => 'VPC_CONNECTOR_NOT_SET', + self::VPC_CONNECTOR_NOT_RUNNING => 'VPC_CONNECTOR_NOT_RUNNING', + self::VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED => 'VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED', + self::VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED => 'VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED', + self::FORWARDING_RULE_REGION_MISMATCH => 'FORWARDING_RULE_REGION_MISMATCH', + self::PSC_CONNECTION_NOT_ACCEPTED => 'PSC_CONNECTION_NOT_ACCEPTED', + self::PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK => 'PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK', + self::PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS => 'PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS', + self::PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS => 'PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS', + self::CLOUD_SQL_PSC_NEG_UNSUPPORTED => 'CLOUD_SQL_PSC_NEG_UNSUPPORTED', + self::NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT => 'NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT', + self::PSC_TRANSITIVITY_NOT_PROPAGATED => 'PSC_TRANSITIVITY_NOT_PROPAGATED', + self::HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED => 'HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED', + self::HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED => 'HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED', + self::CLOUD_RUN_REVISION_NOT_READY => 'CLOUD_RUN_REVISION_NOT_READY', + self::DROPPED_INSIDE_PSC_SERVICE_PRODUCER => 'DROPPED_INSIDE_PSC_SERVICE_PRODUCER', + self::LOAD_BALANCER_HAS_NO_PROXY_SUBNET => 'LOAD_BALANCER_HAS_NO_PROXY_SUBNET', + self::CLOUD_NAT_NO_ADDRESSES => 'CLOUD_NAT_NO_ADDRESSES', + self::ROUTING_LOOP => 'ROUTING_LOOP', + self::DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE => 'DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE', + self::LOAD_BALANCER_BACKEND_INVALID_NETWORK => 'LOAD_BALANCER_BACKEND_INVALID_NETWORK', + self::BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED => 'BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED', + self::DESTINATION_IS_PRIVATE_NAT_IP_RANGE => 'DESTINATION_IS_PRIVATE_NAT_IP_RANGE', + self::DROPPED_INSIDE_REDIS_INSTANCE_SERVICE => 'DROPPED_INSIDE_REDIS_INSTANCE_SERVICE', + self::REDIS_INSTANCE_UNSUPPORTED_PORT => 'REDIS_INSTANCE_UNSUPPORTED_PORT', + self::REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS => 'REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS', + self::REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK => 'REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK', + self::REDIS_INSTANCE_NO_EXTERNAL_IP => 'REDIS_INSTANCE_NO_EXTERNAL_IP', + self::REDIS_INSTANCE_UNSUPPORTED_PROTOCOL => 'REDIS_INSTANCE_UNSUPPORTED_PROTOCOL', + self::DROPPED_INSIDE_REDIS_CLUSTER_SERVICE => 'DROPPED_INSIDE_REDIS_CLUSTER_SERVICE', + self::REDIS_CLUSTER_UNSUPPORTED_PORT => 'REDIS_CLUSTER_UNSUPPORTED_PORT', + self::REDIS_CLUSTER_NO_EXTERNAL_IP => 'REDIS_CLUSTER_NO_EXTERNAL_IP', + self::REDIS_CLUSTER_UNSUPPORTED_PROTOCOL => 'REDIS_CLUSTER_UNSUPPORTED_PROTOCOL', + self::NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION => 'NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION', + self::NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION => 'NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION', + self::NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION => 'NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION', + self::PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED => 'PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED', + self::PSC_PORT_MAPPING_PORT_MISMATCH => 'PSC_PORT_MAPPING_PORT_MISMATCH', + self::PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED => 'PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED', + self::UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION => 'UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION', + self::TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED => 'TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED', + self::NO_MATCHING_NAT64_GATEWAY => 'NO_MATCHING_NAT64_GATEWAY', + self::NO_CONFIGURED_PRIVATE_NAT64_RULE => 'NO_CONFIGURED_PRIVATE_NAT64_RULE', + self::LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH => 'LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH', + self::NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION => 'NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION', + self::CLOUD_NAT_PROTOCOL_UNSUPPORTED => 'CLOUD_NAT_PROTOCOL_UNSUPPORTED', + self::L2_INTERCONNECT_UNSUPPORTED_PROTOCOL => 'L2_INTERCONNECT_UNSUPPORTED_PROTOCOL', + self::L2_INTERCONNECT_UNSUPPORTED_PORT => 'L2_INTERCONNECT_UNSUPPORTED_PORT', + self::L2_INTERCONNECT_DESTINATION_IP_MISMATCH => 'L2_INTERCONNECT_DESTINATION_IP_MISMATCH', + self::NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED => 'NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED', + self::HYBRID_SUBNET_REGION_MISMATCH => 'HYBRID_SUBNET_REGION_MISMATCH', + self::HYBRID_SUBNET_NO_ROUTE => 'HYBRID_SUBNET_NO_ROUTE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Cause::class, \Google\Cloud\NetworkManagement\V1\DropInfo_Cause::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig.php new file mode 100644 index 000000000000..c47297501698 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig.php @@ -0,0 +1,641 @@ +google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig + */ +class EffectiveVpcFlowLogsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Unique name of the configuration. The name can have one of the following + * forms: + * - For project-level configurations: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level configurations: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For a Compute config, the name will be the path of the subnet: + * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The state of the VPC Flow Log configuration. Default value is ENABLED. + * When creating a new configuration, it must be enabled. + * Setting state=DISABLED will pause the log generation for this config. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + */ + protected $state = null; + /** + * The aggregation interval for the logs. Default value is INTERVAL_5_SEC. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + */ + protected $aggregation_interval = null; + /** + * The value of the field must be in (0, 1]. The sampling rate of VPC Flow + * Logs where 1.0 means all collected logs are reported. + * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC + * Flow Logs, use the state field instead. + * Default value is 1.0. + * + * Generated from protobuf field optional float flow_sampling = 5; + */ + protected $flow_sampling = null; + /** + * Configures whether all, none or a subset of metadata fields should be + * added to the reported VPC flow logs. + * Default value is INCLUDE_ALL_METADATA. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + */ + protected $metadata = null; + /** + * Custom metadata fields to include in the reported VPC flow logs. + * Can only be specified if "metadata" was set to CUSTOM_METADATA. + * + * Generated from protobuf field repeated string metadata_fields = 7; + */ + private $metadata_fields; + /** + * Export filter used to define which VPC Flow Logs should be logged. + * + * Generated from protobuf field optional string filter_expr = 8; + */ + protected $filter_expr = null; + /** + * Determines whether to include cross project annotations in the logs. + * This field is available only for organization configurations. If not + * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + */ + protected $cross_project_metadata = null; + /** + * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + */ + protected $scope = null; + protected $target_resource; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Unique name of the configuration. The name can have one of the following + * forms: + * - For project-level configurations: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level configurations: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For a Compute config, the name will be the path of the subnet: + * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + * @type int $state + * The state of the VPC Flow Log configuration. Default value is ENABLED. + * When creating a new configuration, it must be enabled. + * Setting state=DISABLED will pause the log generation for this config. + * @type int $aggregation_interval + * The aggregation interval for the logs. Default value is INTERVAL_5_SEC. + * @type float $flow_sampling + * The value of the field must be in (0, 1]. The sampling rate of VPC Flow + * Logs where 1.0 means all collected logs are reported. + * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC + * Flow Logs, use the state field instead. + * Default value is 1.0. + * @type int $metadata + * Configures whether all, none or a subset of metadata fields should be + * added to the reported VPC flow logs. + * Default value is INCLUDE_ALL_METADATA. + * @type array|\Google\Protobuf\Internal\RepeatedField $metadata_fields + * Custom metadata fields to include in the reported VPC flow logs. + * Can only be specified if "metadata" was set to CUSTOM_METADATA. + * @type string $filter_expr + * Export filter used to define which VPC Flow Logs should be logged. + * @type int $cross_project_metadata + * Determines whether to include cross project annotations in the logs. + * This field is available only for organization configurations. If not + * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + * @type string $network + * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + * within the network. + * Format: projects/{project_id}/global/networks/{name} + * @type string $subnet + * Traffic will be logged from VMs within the subnetwork. + * Format: projects/{project_id}/regions/{region}/subnetworks/{name} + * @type string $interconnect_attachment + * Traffic will be logged from the Interconnect Attachment. + * Format: + * projects/{project_id}/regions/{region}/interconnectAttachments/{name} + * @type string $vpn_tunnel + * Traffic will be logged from the VPN Tunnel. + * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + * @type int $scope + * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogsConfig::initOnce(); + parent::__construct($data); + } + + /** + * Unique name of the configuration. The name can have one of the following + * forms: + * - For project-level configurations: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level configurations: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For a Compute config, the name will be the path of the subnet: + * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Unique name of the configuration. The name can have one of the following + * forms: + * - For project-level configurations: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level configurations: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For a Compute config, the name will be the path of the subnet: + * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The state of the VPC Flow Log configuration. Default value is ENABLED. + * When creating a new configuration, it must be enabled. + * Setting state=DISABLED will pause the log generation for this config. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * @return int + */ + public function getState() + { + return isset($this->state) ? $this->state : 0; + } + + public function hasState() + { + return isset($this->state); + } + + public function clearState() + { + unset($this->state); + } + + /** + * The state of the VPC Flow Log configuration. Default value is ENABLED. + * When creating a new configuration, it must be enabled. + * Setting state=DISABLED will pause the log generation for this config. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\State::class); + $this->state = $var; + + return $this; + } + + /** + * The aggregation interval for the logs. Default value is INTERVAL_5_SEC. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * @return int + */ + public function getAggregationInterval() + { + return isset($this->aggregation_interval) ? $this->aggregation_interval : 0; + } + + public function hasAggregationInterval() + { + return isset($this->aggregation_interval); + } + + public function clearAggregationInterval() + { + unset($this->aggregation_interval); + } + + /** + * The aggregation interval for the logs. Default value is INTERVAL_5_SEC. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * @param int $var + * @return $this + */ + public function setAggregationInterval($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\AggregationInterval::class); + $this->aggregation_interval = $var; + + return $this; + } + + /** + * The value of the field must be in (0, 1]. The sampling rate of VPC Flow + * Logs where 1.0 means all collected logs are reported. + * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC + * Flow Logs, use the state field instead. + * Default value is 1.0. + * + * Generated from protobuf field optional float flow_sampling = 5; + * @return float + */ + public function getFlowSampling() + { + return isset($this->flow_sampling) ? $this->flow_sampling : 0.0; + } + + public function hasFlowSampling() + { + return isset($this->flow_sampling); + } + + public function clearFlowSampling() + { + unset($this->flow_sampling); + } + + /** + * The value of the field must be in (0, 1]. The sampling rate of VPC Flow + * Logs where 1.0 means all collected logs are reported. + * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC + * Flow Logs, use the state field instead. + * Default value is 1.0. + * + * Generated from protobuf field optional float flow_sampling = 5; + * @param float $var + * @return $this + */ + public function setFlowSampling($var) + { + GPBUtil::checkFloat($var); + $this->flow_sampling = $var; + + return $this; + } + + /** + * Configures whether all, none or a subset of metadata fields should be + * added to the reported VPC flow logs. + * Default value is INCLUDE_ALL_METADATA. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * @return int + */ + public function getMetadata() + { + return isset($this->metadata) ? $this->metadata : 0; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Configures whether all, none or a subset of metadata fields should be + * added to the reported VPC flow logs. + * Default value is INCLUDE_ALL_METADATA. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * @param int $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\Metadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Custom metadata fields to include in the reported VPC flow logs. + * Can only be specified if "metadata" was set to CUSTOM_METADATA. + * + * Generated from protobuf field repeated string metadata_fields = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetadataFields() + { + return $this->metadata_fields; + } + + /** + * Custom metadata fields to include in the reported VPC flow logs. + * Can only be specified if "metadata" was set to CUSTOM_METADATA. + * + * Generated from protobuf field repeated string metadata_fields = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetadataFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadata_fields = $arr; + + return $this; + } + + /** + * Export filter used to define which VPC Flow Logs should be logged. + * + * Generated from protobuf field optional string filter_expr = 8; + * @return string + */ + public function getFilterExpr() + { + return isset($this->filter_expr) ? $this->filter_expr : ''; + } + + public function hasFilterExpr() + { + return isset($this->filter_expr); + } + + public function clearFilterExpr() + { + unset($this->filter_expr); + } + + /** + * Export filter used to define which VPC Flow Logs should be logged. + * + * Generated from protobuf field optional string filter_expr = 8; + * @param string $var + * @return $this + */ + public function setFilterExpr($var) + { + GPBUtil::checkString($var, True); + $this->filter_expr = $var; + + return $this; + } + + /** + * Determines whether to include cross project annotations in the logs. + * This field is available only for organization configurations. If not + * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * @return int + */ + public function getCrossProjectMetadata() + { + return isset($this->cross_project_metadata) ? $this->cross_project_metadata : 0; + } + + public function hasCrossProjectMetadata() + { + return isset($this->cross_project_metadata); + } + + public function clearCrossProjectMetadata() + { + unset($this->cross_project_metadata); + } + + /** + * Determines whether to include cross project annotations in the logs. + * This field is available only for organization configurations. If not + * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * @param int $var + * @return $this + */ + public function setCrossProjectMetadata($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\CrossProjectMetadata::class); + $this->cross_project_metadata = $var; + + return $this; + } + + /** + * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + * within the network. + * Format: projects/{project_id}/global/networks/{name} + * + * Generated from protobuf field string network = 100; + * @return string + */ + public function getNetwork() + { + return $this->readOneof(100); + } + + public function hasNetwork() + { + return $this->hasOneof(100); + } + + /** + * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + * within the network. + * Format: projects/{project_id}/global/networks/{name} + * + * Generated from protobuf field string network = 100; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Traffic will be logged from VMs within the subnetwork. + * Format: projects/{project_id}/regions/{region}/subnetworks/{name} + * + * Generated from protobuf field string subnet = 101; + * @return string + */ + public function getSubnet() + { + return $this->readOneof(101); + } + + public function hasSubnet() + { + return $this->hasOneof(101); + } + + /** + * Traffic will be logged from VMs within the subnetwork. + * Format: projects/{project_id}/regions/{region}/subnetworks/{name} + * + * Generated from protobuf field string subnet = 101; + * @param string $var + * @return $this + */ + public function setSubnet($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Traffic will be logged from the Interconnect Attachment. + * Format: + * projects/{project_id}/regions/{region}/interconnectAttachments/{name} + * + * Generated from protobuf field string interconnect_attachment = 102; + * @return string + */ + public function getInterconnectAttachment() + { + return $this->readOneof(102); + } + + public function hasInterconnectAttachment() + { + return $this->hasOneof(102); + } + + /** + * Traffic will be logged from the Interconnect Attachment. + * Format: + * projects/{project_id}/regions/{region}/interconnectAttachments/{name} + * + * Generated from protobuf field string interconnect_attachment = 102; + * @param string $var + * @return $this + */ + public function setInterconnectAttachment($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * Traffic will be logged from the VPN Tunnel. + * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + * + * Generated from protobuf field string vpn_tunnel = 103; + * @return string + */ + public function getVpnTunnel() + { + return $this->readOneof(103); + } + + public function hasVpnTunnel() + { + return $this->hasOneof(103); + } + + /** + * Traffic will be logged from the VPN Tunnel. + * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + * + * Generated from protobuf field string vpn_tunnel = 103; + * @param string $var + * @return $this + */ + public function setVpnTunnel($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(103, $var); + + return $this; + } + + /** + * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * @return int + */ + public function getScope() + { + return isset($this->scope) ? $this->scope : 0; + } + + public function hasScope() + { + return isset($this->scope); + } + + public function clearScope() + { + unset($this->scope); + } + + /** + * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig\Scope::class); + $this->scope = $var; + + return $this; + } + + /** + * @return string + */ + public function getTargetResource() + { + return $this->whichOneof("target_resource"); + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig/Scope.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig/Scope.php new file mode 100644 index 000000000000..8b12f29b8882 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig/Scope.php @@ -0,0 +1,93 @@ +google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope + */ +class Scope +{ + /** + * Scope is unspecified. + * + * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; + */ + const SCOPE_UNSPECIFIED = 0; + /** + * Target resource is a subnet (Network Management API). + * + * Generated from protobuf enum SUBNET = 1; + */ + const SUBNET = 1; + /** + * Target resource is a subnet, and the config originates from the Compute + * API. + * + * Generated from protobuf enum COMPUTE_API_SUBNET = 2; + */ + const COMPUTE_API_SUBNET = 2; + /** + * Target resource is a network. + * + * Generated from protobuf enum NETWORK = 3; + */ + const NETWORK = 3; + /** + * Target resource is a VPN tunnel. + * + * Generated from protobuf enum VPN_TUNNEL = 4; + */ + const VPN_TUNNEL = 4; + /** + * Target resource is an interconnect attachment. + * + * Generated from protobuf enum INTERCONNECT_ATTACHMENT = 5; + */ + const INTERCONNECT_ATTACHMENT = 5; + /** + * Configuration applies to an entire organization. + * + * Generated from protobuf enum ORGANIZATION = 6; + */ + const ORGANIZATION = 6; + + private static $valueToName = [ + self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', + self::SUBNET => 'SUBNET', + self::COMPUTE_API_SUBNET => 'COMPUTE_API_SUBNET', + self::NETWORK => 'NETWORK', + self::VPN_TUNNEL => 'VPN_TUNNEL', + self::INTERCONNECT_ATTACHMENT => 'INTERCONNECT_ATTACHMENT', + self::ORGANIZATION => 'ORGANIZATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Scope::class, \Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig_Scope::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint.php new file mode 100644 index 000000000000..1d3ed4f56a53 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint.php @@ -0,0 +1,839 @@ +google.cloud.networkmanagement.v1.Endpoint + */ +class Endpoint extends \Google\Protobuf\Internal\Message +{ + /** + * The IP address of the endpoint, which can be an external or internal IP. + * + * Generated from protobuf field string ip_address = 1; + */ + protected $ip_address = ''; + /** + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + * + * Generated from protobuf field int32 port = 2; + */ + protected $port = 0; + /** + * A Compute Engine instance URI. + * + * Generated from protobuf field string instance = 3; + */ + protected $instance = ''; + /** + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Applicable + * only to destination endpoint. Format: + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` + * + * Generated from protobuf field string forwarding_rule = 13; + */ + protected $forwarding_rule = ''; + /** + * Output only. Specifies the type of the target of the forwarding rule. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $forwarding_rule_target = null; + /** + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + * + * Generated from protobuf field optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $load_balancer_id = null; + /** + * Output only. Type of the load balancer the forwarding rule points to. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $load_balancer_type = null; + /** + * A cluster URI for [Google Kubernetes Engine cluster control + * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * + * Generated from protobuf field string gke_master_cluster = 7; + */ + protected $gke_master_cluster = ''; + /** + * DNS endpoint of [Google Kubernetes Engine cluster control + * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * Requires gke_master_cluster to be set, can't be used simultaneoulsly with + * ip_address or network. Applicable only to destination endpoint. + * + * Generated from protobuf field string fqdn = 19; + */ + protected $fqdn = ''; + /** + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * + * Generated from protobuf field string cloud_sql_instance = 8; + */ + protected $cloud_sql_instance = ''; + /** + * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. + * Applicable only to destination endpoint. + * + * Generated from protobuf field string redis_instance = 17; + */ + protected $redis_instance = ''; + /** + * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. + * Applicable only to destination endpoint. + * + * Generated from protobuf field string redis_cluster = 18; + */ + protected $redis_cluster = ''; + /** + * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + * URI. + * + * Generated from protobuf field string gke_pod = 21; + */ + protected $gke_pod = ''; + /** + * A [Cloud Function](https://cloud.google.com/functions). Applicable only to + * source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10; + */ + protected $cloud_function = null; + /** + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + * Applicable only to source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11; + */ + protected $app_engine_version = null; + /** + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * Applicable only to source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12; + */ + protected $cloud_run_revision = null; + /** + * A VPC network URI. For source endpoints, used according to the + * `network_type`. For destination endpoints, used only when the source is an + * external IP address endpoint, and the destination is an internal IP address + * endpoint. + * + * Generated from protobuf field string network = 4; + */ + protected $network = ''; + /** + * For source endpoints, type of the network where the endpoint is located. + * Not relevant for destination endpoints. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; + */ + protected $network_type = 0; + /** + * For source endpoints, endpoint project ID. Used according to the + * `network_type`. Not relevant for destination endpoints. + * + * Generated from protobuf field string project_id = 6; + */ + protected $project_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ip_address + * The IP address of the endpoint, which can be an external or internal IP. + * @type int $port + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + * @type string $instance + * A Compute Engine instance URI. + * @type string $forwarding_rule + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Applicable + * only to destination endpoint. Format: + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` + * @type int $forwarding_rule_target + * Output only. Specifies the type of the target of the forwarding rule. + * @type string $load_balancer_id + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + * @type int $load_balancer_type + * Output only. Type of the load balancer the forwarding rule points to. + * @type string $gke_master_cluster + * A cluster URI for [Google Kubernetes Engine cluster control + * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * @type string $fqdn + * DNS endpoint of [Google Kubernetes Engine cluster control + * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * Requires gke_master_cluster to be set, can't be used simultaneoulsly with + * ip_address or network. Applicable only to destination endpoint. + * @type string $cloud_sql_instance + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * @type string $redis_instance + * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. + * Applicable only to destination endpoint. + * @type string $redis_cluster + * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. + * Applicable only to destination endpoint. + * @type string $gke_pod + * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + * URI. + * @type \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint $cloud_function + * A [Cloud Function](https://cloud.google.com/functions). Applicable only to + * source endpoint. + * @type \Google\Cloud\NetworkManagement\V1\Endpoint\AppEngineVersionEndpoint $app_engine_version + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + * Applicable only to source endpoint. + * @type \Google\Cloud\NetworkManagement\V1\Endpoint\CloudRunRevisionEndpoint $cloud_run_revision + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * Applicable only to source endpoint. + * @type string $network + * A VPC network URI. For source endpoints, used according to the + * `network_type`. For destination endpoints, used only when the source is an + * external IP address endpoint, and the destination is an internal IP address + * endpoint. + * @type int $network_type + * For source endpoints, type of the network where the endpoint is located. + * Not relevant for destination endpoints. + * @type string $project_id + * For source endpoints, endpoint project ID. Used according to the + * `network_type`. Not relevant for destination endpoints. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * The IP address of the endpoint, which can be an external or internal IP. + * + * Generated from protobuf field string ip_address = 1; + * @return string + */ + public function getIpAddress() + { + return $this->ip_address; + } + + /** + * The IP address of the endpoint, which can be an external or internal IP. + * + * Generated from protobuf field string ip_address = 1; + * @param string $var + * @return $this + */ + public function setIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->ip_address = $var; + + return $this; + } + + /** + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + * + * Generated from protobuf field int32 port = 2; + * @return int + */ + public function getPort() + { + return $this->port; + } + + /** + * The IP protocol port of the endpoint. + * Only applicable when protocol is TCP or UDP. + * + * Generated from protobuf field int32 port = 2; + * @param int $var + * @return $this + */ + public function setPort($var) + { + GPBUtil::checkInt32($var); + $this->port = $var; + + return $this; + } + + /** + * A Compute Engine instance URI. + * + * Generated from protobuf field string instance = 3; + * @return string + */ + public function getInstance() + { + return $this->instance; + } + + /** + * A Compute Engine instance URI. + * + * Generated from protobuf field string instance = 3; + * @param string $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkString($var, True); + $this->instance = $var; + + return $this; + } + + /** + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Applicable + * only to destination endpoint. Format: + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` + * + * Generated from protobuf field string forwarding_rule = 13; + * @return string + */ + public function getForwardingRule() + { + return $this->forwarding_rule; + } + + /** + * A forwarding rule and its corresponding IP address represent the frontend + * configuration of a Google Cloud load balancer. Forwarding rules are also + * used for protocol forwarding, Private Service Connect and other network + * services to provide forwarding information in the control plane. Applicable + * only to destination endpoint. Format: + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` + * + * Generated from protobuf field string forwarding_rule = 13; + * @param string $var + * @return $this + */ + public function setForwardingRule($var) + { + GPBUtil::checkString($var, True); + $this->forwarding_rule = $var; + + return $this; + } + + /** + * Output only. Specifies the type of the target of the forwarding rule. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getForwardingRuleTarget() + { + return isset($this->forwarding_rule_target) ? $this->forwarding_rule_target : 0; + } + + public function hasForwardingRuleTarget() + { + return isset($this->forwarding_rule_target); + } + + public function clearForwardingRuleTarget() + { + unset($this->forwarding_rule_target); + } + + /** + * Output only. Specifies the type of the target of the forwarding rule. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setForwardingRuleTarget($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\Endpoint\ForwardingRuleTarget::class); + $this->forwarding_rule_target = $var; + + return $this; + } + + /** + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + * + * Generated from protobuf field optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLoadBalancerId() + { + return isset($this->load_balancer_id) ? $this->load_balancer_id : ''; + } + + public function hasLoadBalancerId() + { + return isset($this->load_balancer_id); + } + + public function clearLoadBalancerId() + { + unset($this->load_balancer_id); + } + + /** + * Output only. ID of the load balancer the forwarding rule points to. Empty + * for forwarding rules not related to load balancers. + * + * Generated from protobuf field optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLoadBalancerId($var) + { + GPBUtil::checkString($var, True); + $this->load_balancer_id = $var; + + return $this; + } + + /** + * Output only. Type of the load balancer the forwarding rule points to. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLoadBalancerType() + { + return isset($this->load_balancer_type) ? $this->load_balancer_type : 0; + } + + public function hasLoadBalancerType() + { + return isset($this->load_balancer_type); + } + + public function clearLoadBalancerType() + { + unset($this->load_balancer_type); + } + + /** + * Output only. Type of the load balancer the forwarding rule points to. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLoadBalancerType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerType::class); + $this->load_balancer_type = $var; + + return $this; + } + + /** + * A cluster URI for [Google Kubernetes Engine cluster control + * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * + * Generated from protobuf field string gke_master_cluster = 7; + * @return string + */ + public function getGkeMasterCluster() + { + return $this->gke_master_cluster; + } + + /** + * A cluster URI for [Google Kubernetes Engine cluster control + * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * + * Generated from protobuf field string gke_master_cluster = 7; + * @param string $var + * @return $this + */ + public function setGkeMasterCluster($var) + { + GPBUtil::checkString($var, True); + $this->gke_master_cluster = $var; + + return $this; + } + + /** + * DNS endpoint of [Google Kubernetes Engine cluster control + * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * Requires gke_master_cluster to be set, can't be used simultaneoulsly with + * ip_address or network. Applicable only to destination endpoint. + * + * Generated from protobuf field string fqdn = 19; + * @return string + */ + public function getFqdn() + { + return $this->fqdn; + } + + /** + * DNS endpoint of [Google Kubernetes Engine cluster control + * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + * Requires gke_master_cluster to be set, can't be used simultaneoulsly with + * ip_address or network. Applicable only to destination endpoint. + * + * Generated from protobuf field string fqdn = 19; + * @param string $var + * @return $this + */ + public function setFqdn($var) + { + GPBUtil::checkString($var, True); + $this->fqdn = $var; + + return $this; + } + + /** + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * + * Generated from protobuf field string cloud_sql_instance = 8; + * @return string + */ + public function getCloudSqlInstance() + { + return $this->cloud_sql_instance; + } + + /** + * A [Cloud SQL](https://cloud.google.com/sql) instance URI. + * + * Generated from protobuf field string cloud_sql_instance = 8; + * @param string $var + * @return $this + */ + public function setCloudSqlInstance($var) + { + GPBUtil::checkString($var, True); + $this->cloud_sql_instance = $var; + + return $this; + } + + /** + * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. + * Applicable only to destination endpoint. + * + * Generated from protobuf field string redis_instance = 17; + * @return string + */ + public function getRedisInstance() + { + return $this->redis_instance; + } + + /** + * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. + * Applicable only to destination endpoint. + * + * Generated from protobuf field string redis_instance = 17; + * @param string $var + * @return $this + */ + public function setRedisInstance($var) + { + GPBUtil::checkString($var, True); + $this->redis_instance = $var; + + return $this; + } + + /** + * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. + * Applicable only to destination endpoint. + * + * Generated from protobuf field string redis_cluster = 18; + * @return string + */ + public function getRedisCluster() + { + return $this->redis_cluster; + } + + /** + * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. + * Applicable only to destination endpoint. + * + * Generated from protobuf field string redis_cluster = 18; + * @param string $var + * @return $this + */ + public function setRedisCluster($var) + { + GPBUtil::checkString($var, True); + $this->redis_cluster = $var; + + return $this; + } + + /** + * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + * URI. + * + * Generated from protobuf field string gke_pod = 21; + * @return string + */ + public function getGkePod() + { + return $this->gke_pod; + } + + /** + * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + * URI. + * + * Generated from protobuf field string gke_pod = 21; + * @param string $var + * @return $this + */ + public function setGkePod($var) + { + GPBUtil::checkString($var, True); + $this->gke_pod = $var; + + return $this; + } + + /** + * A [Cloud Function](https://cloud.google.com/functions). Applicable only to + * source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10; + * @return \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint|null + */ + public function getCloudFunction() + { + return $this->cloud_function; + } + + public function hasCloudFunction() + { + return isset($this->cloud_function); + } + + public function clearCloudFunction() + { + unset($this->cloud_function); + } + + /** + * A [Cloud Function](https://cloud.google.com/functions). Applicable only to + * source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10; + * @param \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint $var + * @return $this + */ + public function setCloudFunction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint::class); + $this->cloud_function = $var; + + return $this; + } + + /** + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + * Applicable only to source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11; + * @return \Google\Cloud\NetworkManagement\V1\Endpoint\AppEngineVersionEndpoint|null + */ + public function getAppEngineVersion() + { + return $this->app_engine_version; + } + + public function hasAppEngineVersion() + { + return isset($this->app_engine_version); + } + + public function clearAppEngineVersion() + { + unset($this->app_engine_version); + } + + /** + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). + * Applicable only to source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11; + * @param \Google\Cloud\NetworkManagement\V1\Endpoint\AppEngineVersionEndpoint $var + * @return $this + */ + public function setAppEngineVersion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint\AppEngineVersionEndpoint::class); + $this->app_engine_version = $var; + + return $this; + } + + /** + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * Applicable only to source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12; + * @return \Google\Cloud\NetworkManagement\V1\Endpoint\CloudRunRevisionEndpoint|null + */ + public function getCloudRunRevision() + { + return $this->cloud_run_revision; + } + + public function hasCloudRunRevision() + { + return isset($this->cloud_run_revision); + } + + public function clearCloudRunRevision() + { + unset($this->cloud_run_revision); + } + + /** + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * Applicable only to source endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12; + * @param \Google\Cloud\NetworkManagement\V1\Endpoint\CloudRunRevisionEndpoint $var + * @return $this + */ + public function setCloudRunRevision($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint\CloudRunRevisionEndpoint::class); + $this->cloud_run_revision = $var; + + return $this; + } + + /** + * A VPC network URI. For source endpoints, used according to the + * `network_type`. For destination endpoints, used only when the source is an + * external IP address endpoint, and the destination is an internal IP address + * endpoint. + * + * Generated from protobuf field string network = 4; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * A VPC network URI. For source endpoints, used according to the + * `network_type`. For destination endpoints, used only when the source is an + * external IP address endpoint, and the destination is an internal IP address + * endpoint. + * + * Generated from protobuf field string network = 4; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * For source endpoints, type of the network where the endpoint is located. + * Not relevant for destination endpoints. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; + * @return int + */ + public function getNetworkType() + { + return $this->network_type; + } + + /** + * For source endpoints, type of the network where the endpoint is located. + * Not relevant for destination endpoints. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; + * @param int $var + * @return $this + */ + public function setNetworkType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\Endpoint\NetworkType::class); + $this->network_type = $var; + + return $this; + } + + /** + * For source endpoints, endpoint project ID. Used according to the + * `network_type`. Not relevant for destination endpoints. + * + * Generated from protobuf field string project_id = 6; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * For source endpoints, endpoint project ID. Used according to the + * `network_type`. Not relevant for destination endpoints. + * + * Generated from protobuf field string project_id = 6; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/AppEngineVersionEndpoint.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/AppEngineVersionEndpoint.php new file mode 100644 index 000000000000..00601e729f56 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/AppEngineVersionEndpoint.php @@ -0,0 +1,78 @@ +google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint + */ +class AppEngineVersionEndpoint extends \Google\Protobuf\Internal\Message +{ + /** + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + * + * Generated from protobuf field string uri = 1; + */ + protected $uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + * + * Generated from protobuf field string uri = 1; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * An [App Engine](https://cloud.google.com/appengine) [service + * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) + * name. + * + * Generated from protobuf field string uri = 1; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AppEngineVersionEndpoint::class, \Google\Cloud\NetworkManagement\V1\Endpoint_AppEngineVersionEndpoint::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudFunctionEndpoint.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudFunctionEndpoint.php new file mode 100644 index 000000000000..dfc3b0f413a5 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudFunctionEndpoint.php @@ -0,0 +1,70 @@ +google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint + */ +class CloudFunctionEndpoint extends \Google\Protobuf\Internal\Message +{ + /** + * A [Cloud Function](https://cloud.google.com/functions) name. + * + * Generated from protobuf field string uri = 1; + */ + protected $uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * A [Cloud Function](https://cloud.google.com/functions) name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * A [Cloud Function](https://cloud.google.com/functions) name. + * + * Generated from protobuf field string uri = 1; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * A [Cloud Function](https://cloud.google.com/functions) name. + * + * Generated from protobuf field string uri = 1; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CloudFunctionEndpoint::class, \Google\Cloud\NetworkManagement\V1\Endpoint_CloudFunctionEndpoint::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudRunRevisionEndpoint.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudRunRevisionEndpoint.php new file mode 100644 index 000000000000..77a02f1ca3fa --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudRunRevisionEndpoint.php @@ -0,0 +1,124 @@ +google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint + */ +class CloudRunRevisionEndpoint extends \Google\Protobuf\Internal\Message +{ + /** + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + * + * Generated from protobuf field string uri = 1; + */ + protected $uri = ''; + /** + * Output only. The URI of the Cloud Run service that the revision belongs + * to. The format is: + * projects/{project}/locations/{location}/services/{service} + * + * Generated from protobuf field string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + * @type string $service_uri + * Output only. The URI of the Cloud Run service that the revision belongs + * to. The format is: + * projects/{project}/locations/{location}/services/{service} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + * + * Generated from protobuf field string uri = 1; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * A [Cloud Run](https://cloud.google.com/run) + * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) + * URI. The format is: + * projects/{project}/locations/{location}/revisions/{revision} + * + * Generated from protobuf field string uri = 1; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Output only. The URI of the Cloud Run service that the revision belongs + * to. The format is: + * projects/{project}/locations/{location}/services/{service} + * + * Generated from protobuf field string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getServiceUri() + { + return $this->service_uri; + } + + /** + * Output only. The URI of the Cloud Run service that the revision belongs + * to. The format is: + * projects/{project}/locations/{location}/services/{service} + * + * Generated from protobuf field string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setServiceUri($var) + { + GPBUtil::checkString($var, True); + $this->service_uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CloudRunRevisionEndpoint::class, \Google\Cloud\NetworkManagement\V1\Endpoint_CloudRunRevisionEndpoint::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/ForwardingRuleTarget.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/ForwardingRuleTarget.php new file mode 100644 index 000000000000..7f8ffa54e280 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/ForwardingRuleTarget.php @@ -0,0 +1,79 @@ +google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget + */ +class ForwardingRuleTarget +{ + /** + * Forwarding rule target is unknown. + * + * Generated from protobuf enum FORWARDING_RULE_TARGET_UNSPECIFIED = 0; + */ + const FORWARDING_RULE_TARGET_UNSPECIFIED = 0; + /** + * Compute Engine instance for protocol forwarding. + * + * Generated from protobuf enum INSTANCE = 1; + */ + const INSTANCE = 1; + /** + * Load Balancer. The specific type can be found from [load_balancer_type] + * [google.cloud.networkmanagement.v1.Endpoint.load_balancer_type]. + * + * Generated from protobuf enum LOAD_BALANCER = 2; + */ + const LOAD_BALANCER = 2; + /** + * Classic Cloud VPN Gateway. + * + * Generated from protobuf enum VPN_GATEWAY = 3; + */ + const VPN_GATEWAY = 3; + /** + * Forwarding Rule is a Private Service Connect endpoint. + * + * Generated from protobuf enum PSC = 4; + */ + const PSC = 4; + + private static $valueToName = [ + self::FORWARDING_RULE_TARGET_UNSPECIFIED => 'FORWARDING_RULE_TARGET_UNSPECIFIED', + self::INSTANCE => 'INSTANCE', + self::LOAD_BALANCER => 'LOAD_BALANCER', + self::VPN_GATEWAY => 'VPN_GATEWAY', + self::PSC => 'PSC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ForwardingRuleTarget::class, \Google\Cloud\NetworkManagement\V1\Endpoint_ForwardingRuleTarget::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/NetworkType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/NetworkType.php new file mode 100644 index 000000000000..4188b7d84277 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/NetworkType.php @@ -0,0 +1,88 @@ +google.cloud.networkmanagement.v1.Endpoint.NetworkType + */ +class NetworkType +{ + /** + * Unspecified. The test will analyze all possible IP address locations. + * This might take longer and produce inaccurate or ambiguous results, so + * prefer specifying an explicit network type. + * The `project_id` field should be set to the project where the GCP + * endpoint is located, or where the non-GCP endpoint should be reachable + * from (via routes to non-GCP networks). The project might also be inferred + * from the Connectivity Test project or other projects referenced in the + * request. + * + * Generated from protobuf enum NETWORK_TYPE_UNSPECIFIED = 0; + */ + const NETWORK_TYPE_UNSPECIFIED = 0; + /** + * A VPC network. Should be used for internal IP addresses in VPC networks. + * The `network` field should be set to the URI of this network. Only + * endpoints within this network will be considered. + * + * Generated from protobuf enum GCP_NETWORK = 1; + */ + const GCP_NETWORK = 1; + /** + * A non-GCP network (for example, an on-premises network or another cloud + * provider network). Should be used for internal IP addresses outside of + * Google Cloud. The `network` field should be set to the URI of the VPC + * network containing a corresponding Cloud VPN tunnel, Cloud Interconnect + * VLAN attachment, or a router appliance instance. Only endpoints reachable + * from the provided VPC network via the routes to non-GCP networks will be + * considered. + * + * Generated from protobuf enum NON_GCP_NETWORK = 2; + */ + const NON_GCP_NETWORK = 2; + /** + * Internet. Should be used for internet-routable external IP addresses or + * IP addresses for global Google APIs and services. + * + * Generated from protobuf enum INTERNET = 3; + */ + const INTERNET = 3; + + private static $valueToName = [ + self::NETWORK_TYPE_UNSPECIFIED => 'NETWORK_TYPE_UNSPECIFIED', + self::GCP_NETWORK => 'GCP_NETWORK', + self::NON_GCP_NETWORK => 'NON_GCP_NETWORK', + self::INTERNET => 'INTERNET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NetworkType::class, \Google\Cloud\NetworkManagement\V1\Endpoint_NetworkType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EndpointInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EndpointInfo.php new file mode 100644 index 000000000000..d87bc1cea5b2 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EndpointInfo.php @@ -0,0 +1,307 @@ +google.cloud.networkmanagement.v1.EndpointInfo + */ +class EndpointInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Source IP address. + * + * Generated from protobuf field string source_ip = 1; + */ + protected $source_ip = ''; + /** + * Destination IP address. + * + * Generated from protobuf field string destination_ip = 2; + */ + protected $destination_ip = ''; + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 3; + */ + protected $protocol = ''; + /** + * Source port. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 source_port = 4; + */ + protected $source_port = 0; + /** + * Destination port. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 destination_port = 5; + */ + protected $destination_port = 0; + /** + * URI of the network where this packet originates from. + * + * Generated from protobuf field string source_network_uri = 6; + */ + protected $source_network_uri = ''; + /** + * URI of the network where this packet is sent to. + * + * Generated from protobuf field string destination_network_uri = 7; + */ + protected $destination_network_uri = ''; + /** + * URI of the source telemetry agent this packet originates from. + * + * Generated from protobuf field string source_agent_uri = 8; + */ + protected $source_agent_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $source_ip + * Source IP address. + * @type string $destination_ip + * Destination IP address. + * @type string $protocol + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * @type int $source_port + * Source port. Only valid when protocol is TCP or UDP. + * @type int $destination_port + * Destination port. Only valid when protocol is TCP or UDP. + * @type string $source_network_uri + * URI of the network where this packet originates from. + * @type string $destination_network_uri + * URI of the network where this packet is sent to. + * @type string $source_agent_uri + * URI of the source telemetry agent this packet originates from. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Source IP address. + * + * Generated from protobuf field string source_ip = 1; + * @return string + */ + public function getSourceIp() + { + return $this->source_ip; + } + + /** + * Source IP address. + * + * Generated from protobuf field string source_ip = 1; + * @param string $var + * @return $this + */ + public function setSourceIp($var) + { + GPBUtil::checkString($var, True); + $this->source_ip = $var; + + return $this; + } + + /** + * Destination IP address. + * + * Generated from protobuf field string destination_ip = 2; + * @return string + */ + public function getDestinationIp() + { + return $this->destination_ip; + } + + /** + * Destination IP address. + * + * Generated from protobuf field string destination_ip = 2; + * @param string $var + * @return $this + */ + public function setDestinationIp($var) + { + GPBUtil::checkString($var, True); + $this->destination_ip = $var; + + return $this; + } + + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 3; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 3; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * Source port. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 source_port = 4; + * @return int + */ + public function getSourcePort() + { + return $this->source_port; + } + + /** + * Source port. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 source_port = 4; + * @param int $var + * @return $this + */ + public function setSourcePort($var) + { + GPBUtil::checkInt32($var); + $this->source_port = $var; + + return $this; + } + + /** + * Destination port. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 destination_port = 5; + * @return int + */ + public function getDestinationPort() + { + return $this->destination_port; + } + + /** + * Destination port. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 destination_port = 5; + * @param int $var + * @return $this + */ + public function setDestinationPort($var) + { + GPBUtil::checkInt32($var); + $this->destination_port = $var; + + return $this; + } + + /** + * URI of the network where this packet originates from. + * + * Generated from protobuf field string source_network_uri = 6; + * @return string + */ + public function getSourceNetworkUri() + { + return $this->source_network_uri; + } + + /** + * URI of the network where this packet originates from. + * + * Generated from protobuf field string source_network_uri = 6; + * @param string $var + * @return $this + */ + public function setSourceNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->source_network_uri = $var; + + return $this; + } + + /** + * URI of the network where this packet is sent to. + * + * Generated from protobuf field string destination_network_uri = 7; + * @return string + */ + public function getDestinationNetworkUri() + { + return $this->destination_network_uri; + } + + /** + * URI of the network where this packet is sent to. + * + * Generated from protobuf field string destination_network_uri = 7; + * @param string $var + * @return $this + */ + public function setDestinationNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->destination_network_uri = $var; + + return $this; + } + + /** + * URI of the source telemetry agent this packet originates from. + * + * Generated from protobuf field string source_agent_uri = 8; + * @return string + */ + public function getSourceAgentUri() + { + return $this->source_agent_uri; + } + + /** + * URI of the source telemetry agent this packet originates from. + * + * Generated from protobuf field string source_agent_uri = 8; + * @param string $var + * @return $this + */ + public function setSourceAgentUri($var) + { + GPBUtil::checkString($var, True); + $this->source_agent_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo.php new file mode 100644 index 000000000000..ba4bba0de236 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo.php @@ -0,0 +1,516 @@ +google.cloud.networkmanagement.v1.FirewallInfo + */ +class FirewallInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The display name of the firewall rule. This field might be empty for + * firewall policy rules. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * The URI of the firewall rule. This field is not applicable to implied + * VPC firewall rules. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Possible values: INGRESS, EGRESS + * + * Generated from protobuf field string direction = 3; + */ + protected $direction = ''; + /** + * Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP + * + * Generated from protobuf field string action = 4; + */ + protected $action = ''; + /** + * The priority of the firewall rule. + * + * Generated from protobuf field int32 priority = 5; + */ + protected $priority = 0; + /** + * The URI of the VPC network that the firewall rule is associated with. + * This field is not applicable to hierarchical firewall policy rules. + * + * Generated from protobuf field string network_uri = 6; + */ + protected $network_uri = ''; + /** + * The target tags defined by the VPC firewall rule. This field is not + * applicable to firewall policy rules. + * + * Generated from protobuf field repeated string target_tags = 7; + */ + private $target_tags; + /** + * The target service accounts specified by the firewall rule. + * + * Generated from protobuf field repeated string target_service_accounts = 8; + */ + private $target_service_accounts; + /** + * The name of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field string policy = 9; + */ + protected $policy = ''; + /** + * The URI of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field string policy_uri = 11; + */ + protected $policy_uri = ''; + /** + * The firewall rule's type. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10; + */ + protected $firewall_rule_type = 0; + /** + * The priority of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field int32 policy_priority = 12; + */ + protected $policy_priority = 0; + /** + * Target type of the firewall rule. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + */ + protected $target_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * The display name of the firewall rule. This field might be empty for + * firewall policy rules. + * @type string $uri + * The URI of the firewall rule. This field is not applicable to implied + * VPC firewall rules. + * @type string $direction + * Possible values: INGRESS, EGRESS + * @type string $action + * Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP + * @type int $priority + * The priority of the firewall rule. + * @type string $network_uri + * The URI of the VPC network that the firewall rule is associated with. + * This field is not applicable to hierarchical firewall policy rules. + * @type array|\Google\Protobuf\Internal\RepeatedField $target_tags + * The target tags defined by the VPC firewall rule. This field is not + * applicable to firewall policy rules. + * @type array|\Google\Protobuf\Internal\RepeatedField $target_service_accounts + * The target service accounts specified by the firewall rule. + * @type string $policy + * The name of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * @type string $policy_uri + * The URI of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * @type int $firewall_rule_type + * The firewall rule's type. + * @type int $policy_priority + * The priority of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * @type int $target_type + * Target type of the firewall rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * The display name of the firewall rule. This field might be empty for + * firewall policy rules. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the firewall rule. This field might be empty for + * firewall policy rules. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The URI of the firewall rule. This field is not applicable to implied + * VPC firewall rules. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * The URI of the firewall rule. This field is not applicable to implied + * VPC firewall rules. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Possible values: INGRESS, EGRESS + * + * Generated from protobuf field string direction = 3; + * @return string + */ + public function getDirection() + { + return $this->direction; + } + + /** + * Possible values: INGRESS, EGRESS + * + * Generated from protobuf field string direction = 3; + * @param string $var + * @return $this + */ + public function setDirection($var) + { + GPBUtil::checkString($var, True); + $this->direction = $var; + + return $this; + } + + /** + * Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP + * + * Generated from protobuf field string action = 4; + * @return string + */ + public function getAction() + { + return $this->action; + } + + /** + * Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP + * + * Generated from protobuf field string action = 4; + * @param string $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkString($var, True); + $this->action = $var; + + return $this; + } + + /** + * The priority of the firewall rule. + * + * Generated from protobuf field int32 priority = 5; + * @return int + */ + public function getPriority() + { + return $this->priority; + } + + /** + * The priority of the firewall rule. + * + * Generated from protobuf field int32 priority = 5; + * @param int $var + * @return $this + */ + public function setPriority($var) + { + GPBUtil::checkInt32($var); + $this->priority = $var; + + return $this; + } + + /** + * The URI of the VPC network that the firewall rule is associated with. + * This field is not applicable to hierarchical firewall policy rules. + * + * Generated from protobuf field string network_uri = 6; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * The URI of the VPC network that the firewall rule is associated with. + * This field is not applicable to hierarchical firewall policy rules. + * + * Generated from protobuf field string network_uri = 6; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * The target tags defined by the VPC firewall rule. This field is not + * applicable to firewall policy rules. + * + * Generated from protobuf field repeated string target_tags = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetTags() + { + return $this->target_tags; + } + + /** + * The target tags defined by the VPC firewall rule. This field is not + * applicable to firewall policy rules. + * + * Generated from protobuf field repeated string target_tags = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->target_tags = $arr; + + return $this; + } + + /** + * The target service accounts specified by the firewall rule. + * + * Generated from protobuf field repeated string target_service_accounts = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetServiceAccounts() + { + return $this->target_service_accounts; + } + + /** + * The target service accounts specified by the firewall rule. + * + * Generated from protobuf field repeated string target_service_accounts = 8; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetServiceAccounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->target_service_accounts = $arr; + + return $this; + } + + /** + * The name of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field string policy = 9; + * @return string + */ + public function getPolicy() + { + return $this->policy; + } + + /** + * The name of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field string policy = 9; + * @param string $var + * @return $this + */ + public function setPolicy($var) + { + GPBUtil::checkString($var, True); + $this->policy = $var; + + return $this; + } + + /** + * The URI of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field string policy_uri = 11; + * @return string + */ + public function getPolicyUri() + { + return $this->policy_uri; + } + + /** + * The URI of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field string policy_uri = 11; + * @param string $var + * @return $this + */ + public function setPolicyUri($var) + { + GPBUtil::checkString($var, True); + $this->policy_uri = $var; + + return $this; + } + + /** + * The firewall rule's type. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10; + * @return int + */ + public function getFirewallRuleType() + { + return $this->firewall_rule_type; + } + + /** + * The firewall rule's type. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10; + * @param int $var + * @return $this + */ + public function setFirewallRuleType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\FirewallInfo\FirewallRuleType::class); + $this->firewall_rule_type = $var; + + return $this; + } + + /** + * The priority of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field int32 policy_priority = 12; + * @return int + */ + public function getPolicyPriority() + { + return $this->policy_priority; + } + + /** + * The priority of the firewall policy that this rule is associated with. + * This field is not applicable to VPC firewall rules and implied VPC firewall + * rules. + * + * Generated from protobuf field int32 policy_priority = 12; + * @param int $var + * @return $this + */ + public function setPolicyPriority($var) + { + GPBUtil::checkInt32($var); + $this->policy_priority = $var; + + return $this; + } + + /** + * Target type of the firewall rule. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * @return int + */ + public function getTargetType() + { + return $this->target_type; + } + + /** + * Target type of the firewall rule. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * @param int $var + * @return $this + */ + public function setTargetType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\FirewallInfo\TargetType::class); + $this->target_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/FirewallRuleType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/FirewallRuleType.php new file mode 100644 index 000000000000..4c449dcfd654 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/FirewallRuleType.php @@ -0,0 +1,147 @@ +google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType + */ +class FirewallRuleType +{ + /** + * Unspecified type. + * + * Generated from protobuf enum FIREWALL_RULE_TYPE_UNSPECIFIED = 0; + */ + const FIREWALL_RULE_TYPE_UNSPECIFIED = 0; + /** + * Hierarchical firewall policy rule. For details, see + * [Hierarchical firewall policies + * overview](https://cloud.google.com/vpc/docs/firewall-policies). + * + * Generated from protobuf enum HIERARCHICAL_FIREWALL_POLICY_RULE = 1; + */ + const HIERARCHICAL_FIREWALL_POLICY_RULE = 1; + /** + * VPC firewall rule. For details, see + * [VPC firewall rules + * overview](https://cloud.google.com/vpc/docs/firewalls). + * + * Generated from protobuf enum VPC_FIREWALL_RULE = 2; + */ + const VPC_FIREWALL_RULE = 2; + /** + * Implied VPC firewall rule. For details, see + * [Implied + * rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules). + * + * Generated from protobuf enum IMPLIED_VPC_FIREWALL_RULE = 3; + */ + const IMPLIED_VPC_FIREWALL_RULE = 3; + /** + * Implicit firewall rules that are managed by serverless VPC access to + * allow ingress access. They are not visible in the Google Cloud console. + * For details, see [VPC connector's implicit + * rules](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access). + * + * Generated from protobuf enum SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4; + */ + const SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4; + /** + * User-defined global network firewall policy rule. + * For details, see [Network firewall + * policies](https://cloud.google.com/vpc/docs/network-firewall-policies). + * + * Generated from protobuf enum NETWORK_FIREWALL_POLICY_RULE = 5; + */ + const NETWORK_FIREWALL_POLICY_RULE = 5; + /** + * User-defined regional network firewall policy rule. + * For details, see [Regional network firewall + * policies](https://cloud.google.com/firewall/docs/regional-firewall-policies). + * + * Generated from protobuf enum NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6; + */ + const NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6; + /** + * System-defined global network firewall policy rule. + * + * Generated from protobuf enum SYSTEM_NETWORK_FIREWALL_POLICY_RULE = 7; + */ + const SYSTEM_NETWORK_FIREWALL_POLICY_RULE = 7; + /** + * System-defined regional network firewall policy rule. + * + * Generated from protobuf enum SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE = 8; + */ + const SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE = 8; + /** + * Firewall policy rule containing attributes not yet supported in + * Connectivity tests. Firewall analysis is skipped if such a rule can + * potentially be matched. Please see the [list of unsupported + * configurations](https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs). + * + * Generated from protobuf enum UNSUPPORTED_FIREWALL_POLICY_RULE = 100; + */ + const UNSUPPORTED_FIREWALL_POLICY_RULE = 100; + /** + * Tracking state for response traffic created when request traffic goes + * through allow firewall rule. + * For details, see [firewall rules + * specifications](https://cloud.google.com/firewall/docs/firewalls#specifications) + * + * Generated from protobuf enum TRACKING_STATE = 101; + */ + const TRACKING_STATE = 101; + /** + * Firewall analysis was skipped due to executing Connectivity Test in the + * BypassFirewallChecks mode + * + * Generated from protobuf enum ANALYSIS_SKIPPED = 102; + */ + const ANALYSIS_SKIPPED = 102; + + private static $valueToName = [ + self::FIREWALL_RULE_TYPE_UNSPECIFIED => 'FIREWALL_RULE_TYPE_UNSPECIFIED', + self::HIERARCHICAL_FIREWALL_POLICY_RULE => 'HIERARCHICAL_FIREWALL_POLICY_RULE', + self::VPC_FIREWALL_RULE => 'VPC_FIREWALL_RULE', + self::IMPLIED_VPC_FIREWALL_RULE => 'IMPLIED_VPC_FIREWALL_RULE', + self::SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE => 'SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE', + self::NETWORK_FIREWALL_POLICY_RULE => 'NETWORK_FIREWALL_POLICY_RULE', + self::NETWORK_REGIONAL_FIREWALL_POLICY_RULE => 'NETWORK_REGIONAL_FIREWALL_POLICY_RULE', + self::SYSTEM_NETWORK_FIREWALL_POLICY_RULE => 'SYSTEM_NETWORK_FIREWALL_POLICY_RULE', + self::SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE => 'SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE', + self::UNSUPPORTED_FIREWALL_POLICY_RULE => 'UNSUPPORTED_FIREWALL_POLICY_RULE', + self::TRACKING_STATE => 'TRACKING_STATE', + self::ANALYSIS_SKIPPED => 'ANALYSIS_SKIPPED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FirewallRuleType::class, \Google\Cloud\NetworkManagement\V1\FirewallInfo_FirewallRuleType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/TargetType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/TargetType.php new file mode 100644 index 000000000000..86ee1d071659 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/TargetType.php @@ -0,0 +1,65 @@ +google.cloud.networkmanagement.v1.FirewallInfo.TargetType + */ +class TargetType +{ + /** + * Target type is not specified. In this case we treat the rule as applying + * to INSTANCES target type. + * + * Generated from protobuf enum TARGET_TYPE_UNSPECIFIED = 0; + */ + const TARGET_TYPE_UNSPECIFIED = 0; + /** + * Firewall rule applies to instances. + * + * Generated from protobuf enum INSTANCES = 1; + */ + const INSTANCES = 1; + /** + * Firewall rule applies to internal managed load balancers. + * + * Generated from protobuf enum INTERNAL_MANAGED_LB = 2; + */ + const INTERNAL_MANAGED_LB = 2; + + private static $valueToName = [ + self::TARGET_TYPE_UNSPECIFIED => 'TARGET_TYPE_UNSPECIFIED', + self::INSTANCES => 'INSTANCES', + self::INTERNAL_MANAGED_LB => 'INTERNAL_MANAGED_LB', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TargetType::class, \Google\Cloud\NetworkManagement\V1\FirewallInfo_TargetType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo.php new file mode 100644 index 000000000000..f2c3ac4705a2 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo.php @@ -0,0 +1,135 @@ +google.cloud.networkmanagement.v1.ForwardInfo + */ +class ForwardInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Target type where this packet is forwarded to. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo.Target target = 1; + */ + protected $target = 0; + /** + * URI of the resource that the packet is forwarded to. + * + * Generated from protobuf field string resource_uri = 2; + */ + protected $resource_uri = ''; + /** + * IP address of the target (if applicable). + * + * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { + */ + protected $ip_address = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $target + * Target type where this packet is forwarded to. + * @type string $resource_uri + * URI of the resource that the packet is forwarded to. + * @type string $ip_address + * IP address of the target (if applicable). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Target type where this packet is forwarded to. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo.Target target = 1; + * @return int + */ + public function getTarget() + { + return $this->target; + } + + /** + * Target type where this packet is forwarded to. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo.Target target = 1; + * @param int $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ForwardInfo\Target::class); + $this->target = $var; + + return $this; + } + + /** + * URI of the resource that the packet is forwarded to. + * + * Generated from protobuf field string resource_uri = 2; + * @return string + */ + public function getResourceUri() + { + return $this->resource_uri; + } + + /** + * URI of the resource that the packet is forwarded to. + * + * Generated from protobuf field string resource_uri = 2; + * @param string $var + * @return $this + */ + public function setResourceUri($var) + { + GPBUtil::checkString($var, True); + $this->resource_uri = $var; + + return $this; + } + + /** + * IP address of the target (if applicable). + * + * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { + * @return string + */ + public function getIpAddress() + { + return $this->ip_address; + } + + /** + * IP address of the target (if applicable). + * + * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->ip_address = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo/Target.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo/Target.php new file mode 100644 index 000000000000..70d180a82bc4 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo/Target.php @@ -0,0 +1,120 @@ +google.cloud.networkmanagement.v1.ForwardInfo.Target + */ +class Target +{ + /** + * Target not specified. + * + * Generated from protobuf enum TARGET_UNSPECIFIED = 0; + */ + const TARGET_UNSPECIFIED = 0; + /** + * Forwarded to a VPC peering network. + * + * Generated from protobuf enum PEERING_VPC = 1; + */ + const PEERING_VPC = 1; + /** + * Forwarded to a Cloud VPN gateway. + * + * Generated from protobuf enum VPN_GATEWAY = 2; + */ + const VPN_GATEWAY = 2; + /** + * Forwarded to a Cloud Interconnect connection. + * + * Generated from protobuf enum INTERCONNECT = 3; + */ + const INTERCONNECT = 3; + /** + * Forwarded to a Google Kubernetes Engine Container cluster master. + * + * Generated from protobuf enum GKE_MASTER = 4 [deprecated = true]; + */ + const GKE_MASTER = 4; + /** + * Forwarded to the next hop of a custom route imported from a peering VPC. + * + * Generated from protobuf enum IMPORTED_CUSTOM_ROUTE_NEXT_HOP = 5; + */ + const IMPORTED_CUSTOM_ROUTE_NEXT_HOP = 5; + /** + * Forwarded to a Cloud SQL instance. + * + * Generated from protobuf enum CLOUD_SQL_INSTANCE = 6 [deprecated = true]; + */ + const CLOUD_SQL_INSTANCE = 6; + /** + * Forwarded to a VPC network in another project. + * + * Generated from protobuf enum ANOTHER_PROJECT = 7; + */ + const ANOTHER_PROJECT = 7; + /** + * Forwarded to an NCC Hub. + * + * Generated from protobuf enum NCC_HUB = 8; + */ + const NCC_HUB = 8; + /** + * Forwarded to a router appliance. + * + * Generated from protobuf enum ROUTER_APPLIANCE = 9; + */ + const ROUTER_APPLIANCE = 9; + /** + * Forwarded to a Secure Web Proxy Gateway. + * + * Generated from protobuf enum SECURE_WEB_PROXY_GATEWAY = 10; + */ + const SECURE_WEB_PROXY_GATEWAY = 10; + + private static $valueToName = [ + self::TARGET_UNSPECIFIED => 'TARGET_UNSPECIFIED', + self::PEERING_VPC => 'PEERING_VPC', + self::VPN_GATEWAY => 'VPN_GATEWAY', + self::INTERCONNECT => 'INTERCONNECT', + self::GKE_MASTER => 'GKE_MASTER', + self::IMPORTED_CUSTOM_ROUTE_NEXT_HOP => 'IMPORTED_CUSTOM_ROUTE_NEXT_HOP', + self::CLOUD_SQL_INSTANCE => 'CLOUD_SQL_INSTANCE', + self::ANOTHER_PROJECT => 'ANOTHER_PROJECT', + self::NCC_HUB => 'NCC_HUB', + self::ROUTER_APPLIANCE => 'ROUTER_APPLIANCE', + self::SECURE_WEB_PROXY_GATEWAY => 'SECURE_WEB_PROXY_GATEWAY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Target::class, \Google\Cloud\NetworkManagement\V1\ForwardInfo_Target::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardingRuleInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardingRuleInfo.php new file mode 100644 index 000000000000..831116bed4ee --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardingRuleInfo.php @@ -0,0 +1,415 @@ +google.cloud.networkmanagement.v1.ForwardingRuleInfo + */ +class ForwardingRuleInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the forwarding rule. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of the forwarding rule. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Protocol defined in the forwarding rule that matches the packet. + * + * Generated from protobuf field string matched_protocol = 3; + */ + protected $matched_protocol = ''; + /** + * Port range defined in the forwarding rule that matches the packet. + * + * Generated from protobuf field string matched_port_range = 6; + */ + protected $matched_port_range = ''; + /** + * VIP of the forwarding rule. + * + * Generated from protobuf field string vip = 4; + */ + protected $vip = ''; + /** + * Target type of the forwarding rule. + * + * Generated from protobuf field string target = 5; + */ + protected $target = ''; + /** + * Network URI. + * + * Generated from protobuf field string network_uri = 7; + */ + protected $network_uri = ''; + /** + * Region of the forwarding rule. Set only for regional forwarding rules. + * + * Generated from protobuf field string region = 8; + */ + protected $region = ''; + /** + * Name of the load balancer the forwarding rule belongs to. Empty for + * forwarding rules not related to load balancers (like PSC forwarding rules). + * + * Generated from protobuf field string load_balancer_name = 9; + */ + protected $load_balancer_name = ''; + /** + * URI of the PSC service attachment this forwarding rule targets (if + * applicable). + * + * Generated from protobuf field string psc_service_attachment_uri = 10; + */ + protected $psc_service_attachment_uri = ''; + /** + * PSC Google API target this forwarding rule targets (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 11; + */ + protected $psc_google_api_target = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of the forwarding rule. + * @type string $uri + * URI of the forwarding rule. + * @type string $matched_protocol + * Protocol defined in the forwarding rule that matches the packet. + * @type string $matched_port_range + * Port range defined in the forwarding rule that matches the packet. + * @type string $vip + * VIP of the forwarding rule. + * @type string $target + * Target type of the forwarding rule. + * @type string $network_uri + * Network URI. + * @type string $region + * Region of the forwarding rule. Set only for regional forwarding rules. + * @type string $load_balancer_name + * Name of the load balancer the forwarding rule belongs to. Empty for + * forwarding rules not related to load balancers (like PSC forwarding rules). + * @type string $psc_service_attachment_uri + * URI of the PSC service attachment this forwarding rule targets (if + * applicable). + * @type string $psc_google_api_target + * PSC Google API target this forwarding rule targets (if applicable). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of the forwarding rule. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of the forwarding rule. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of the forwarding rule. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of the forwarding rule. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Protocol defined in the forwarding rule that matches the packet. + * + * Generated from protobuf field string matched_protocol = 3; + * @return string + */ + public function getMatchedProtocol() + { + return $this->matched_protocol; + } + + /** + * Protocol defined in the forwarding rule that matches the packet. + * + * Generated from protobuf field string matched_protocol = 3; + * @param string $var + * @return $this + */ + public function setMatchedProtocol($var) + { + GPBUtil::checkString($var, True); + $this->matched_protocol = $var; + + return $this; + } + + /** + * Port range defined in the forwarding rule that matches the packet. + * + * Generated from protobuf field string matched_port_range = 6; + * @return string + */ + public function getMatchedPortRange() + { + return $this->matched_port_range; + } + + /** + * Port range defined in the forwarding rule that matches the packet. + * + * Generated from protobuf field string matched_port_range = 6; + * @param string $var + * @return $this + */ + public function setMatchedPortRange($var) + { + GPBUtil::checkString($var, True); + $this->matched_port_range = $var; + + return $this; + } + + /** + * VIP of the forwarding rule. + * + * Generated from protobuf field string vip = 4; + * @return string + */ + public function getVip() + { + return $this->vip; + } + + /** + * VIP of the forwarding rule. + * + * Generated from protobuf field string vip = 4; + * @param string $var + * @return $this + */ + public function setVip($var) + { + GPBUtil::checkString($var, True); + $this->vip = $var; + + return $this; + } + + /** + * Target type of the forwarding rule. + * + * Generated from protobuf field string target = 5; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Target type of the forwarding rule. + * + * Generated from protobuf field string target = 5; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Network URI. + * + * Generated from protobuf field string network_uri = 7; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * Network URI. + * + * Generated from protobuf field string network_uri = 7; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * Region of the forwarding rule. Set only for regional forwarding rules. + * + * Generated from protobuf field string region = 8; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Region of the forwarding rule. Set only for regional forwarding rules. + * + * Generated from protobuf field string region = 8; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + + /** + * Name of the load balancer the forwarding rule belongs to. Empty for + * forwarding rules not related to load balancers (like PSC forwarding rules). + * + * Generated from protobuf field string load_balancer_name = 9; + * @return string + */ + public function getLoadBalancerName() + { + return $this->load_balancer_name; + } + + /** + * Name of the load balancer the forwarding rule belongs to. Empty for + * forwarding rules not related to load balancers (like PSC forwarding rules). + * + * Generated from protobuf field string load_balancer_name = 9; + * @param string $var + * @return $this + */ + public function setLoadBalancerName($var) + { + GPBUtil::checkString($var, True); + $this->load_balancer_name = $var; + + return $this; + } + + /** + * URI of the PSC service attachment this forwarding rule targets (if + * applicable). + * + * Generated from protobuf field string psc_service_attachment_uri = 10; + * @return string + */ + public function getPscServiceAttachmentUri() + { + return $this->psc_service_attachment_uri; + } + + /** + * URI of the PSC service attachment this forwarding rule targets (if + * applicable). + * + * Generated from protobuf field string psc_service_attachment_uri = 10; + * @param string $var + * @return $this + */ + public function setPscServiceAttachmentUri($var) + { + GPBUtil::checkString($var, True); + $this->psc_service_attachment_uri = $var; + + return $this; + } + + /** + * PSC Google API target this forwarding rule targets (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 11; + * @return string + */ + public function getPscGoogleApiTarget() + { + return $this->psc_google_api_target; + } + + /** + * PSC Google API target this forwarding rule targets (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 11; + * @param string $var + * @return $this + */ + public function setPscGoogleApiTarget($var) + { + GPBUtil::checkString($var, True); + $this->psc_google_api_target = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GKEMasterInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GKEMasterInfo.php new file mode 100644 index 000000000000..d3b1ea0afb97 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GKEMasterInfo.php @@ -0,0 +1,204 @@ +google.cloud.networkmanagement.v1.GKEMasterInfo + */ +class GKEMasterInfo extends \Google\Protobuf\Internal\Message +{ + /** + * URI of a GKE cluster. + * + * Generated from protobuf field string cluster_uri = 2; + */ + protected $cluster_uri = ''; + /** + * URI of a GKE cluster network. + * + * Generated from protobuf field string cluster_network_uri = 4; + */ + protected $cluster_network_uri = ''; + /** + * Internal IP address of a GKE cluster control plane. + * + * Generated from protobuf field string internal_ip = 5; + */ + protected $internal_ip = ''; + /** + * External IP address of a GKE cluster control plane. + * + * Generated from protobuf field string external_ip = 6; + */ + protected $external_ip = ''; + /** + * DNS endpoint of a GKE cluster control plane. + * + * Generated from protobuf field string dns_endpoint = 7; + */ + protected $dns_endpoint = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cluster_uri + * URI of a GKE cluster. + * @type string $cluster_network_uri + * URI of a GKE cluster network. + * @type string $internal_ip + * Internal IP address of a GKE cluster control plane. + * @type string $external_ip + * External IP address of a GKE cluster control plane. + * @type string $dns_endpoint + * DNS endpoint of a GKE cluster control plane. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * URI of a GKE cluster. + * + * Generated from protobuf field string cluster_uri = 2; + * @return string + */ + public function getClusterUri() + { + return $this->cluster_uri; + } + + /** + * URI of a GKE cluster. + * + * Generated from protobuf field string cluster_uri = 2; + * @param string $var + * @return $this + */ + public function setClusterUri($var) + { + GPBUtil::checkString($var, True); + $this->cluster_uri = $var; + + return $this; + } + + /** + * URI of a GKE cluster network. + * + * Generated from protobuf field string cluster_network_uri = 4; + * @return string + */ + public function getClusterNetworkUri() + { + return $this->cluster_network_uri; + } + + /** + * URI of a GKE cluster network. + * + * Generated from protobuf field string cluster_network_uri = 4; + * @param string $var + * @return $this + */ + public function setClusterNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->cluster_network_uri = $var; + + return $this; + } + + /** + * Internal IP address of a GKE cluster control plane. + * + * Generated from protobuf field string internal_ip = 5; + * @return string + */ + public function getInternalIp() + { + return $this->internal_ip; + } + + /** + * Internal IP address of a GKE cluster control plane. + * + * Generated from protobuf field string internal_ip = 5; + * @param string $var + * @return $this + */ + public function setInternalIp($var) + { + GPBUtil::checkString($var, True); + $this->internal_ip = $var; + + return $this; + } + + /** + * External IP address of a GKE cluster control plane. + * + * Generated from protobuf field string external_ip = 6; + * @return string + */ + public function getExternalIp() + { + return $this->external_ip; + } + + /** + * External IP address of a GKE cluster control plane. + * + * Generated from protobuf field string external_ip = 6; + * @param string $var + * @return $this + */ + public function setExternalIp($var) + { + GPBUtil::checkString($var, True); + $this->external_ip = $var; + + return $this; + } + + /** + * DNS endpoint of a GKE cluster control plane. + * + * Generated from protobuf field string dns_endpoint = 7; + * @return string + */ + public function getDnsEndpoint() + { + return $this->dns_endpoint; + } + + /** + * DNS endpoint of a GKE cluster control plane. + * + * Generated from protobuf field string dns_endpoint = 7; + * @param string $var + * @return $this + */ + public function setDnsEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->dns_endpoint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetConnectivityTestRequest.php new file mode 100644 index 000000000000..dcd27f465a8a --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetConnectivityTestRequest.php @@ -0,0 +1,86 @@ +google.cloud.networkmanagement.v1.GetConnectivityTestRequest + */ +class GetConnectivityTestRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. `ConnectivityTest` resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. `ConnectivityTest` resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * Please see {@see ReachabilityServiceClient::connectivityTestName()} for help formatting this field. + * + * @return \Google\Cloud\NetworkManagement\V1\GetConnectivityTestRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. `ConnectivityTest` resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); + parent::__construct($data); + } + + /** + * Required. `ConnectivityTest` resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. `ConnectivityTest` resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetVpcFlowLogsConfigRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetVpcFlowLogsConfigRequest.php new file mode 100644 index 000000000000..e2b84a50f05c --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetVpcFlowLogsConfigRequest.php @@ -0,0 +1,108 @@ +google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + */ +class GetVpcFlowLogsConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * + * - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * Please see {@see VpcFlowLogsServiceClient::vpcFlowLogsConfigName()} for help formatting this field. + * + * @return \Google\Cloud\NetworkManagement\V1\GetVpcFlowLogsConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the VpcFlowLogsConfig, + * in one of the following formats: + * - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GkePodInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GkePodInfo.php new file mode 100644 index 000000000000..ab3c18a018c0 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GkePodInfo.php @@ -0,0 +1,156 @@ +google.cloud.networkmanagement.v1.GkePodInfo + */ +class GkePodInfo extends \Google\Protobuf\Internal\Message +{ + /** + * URI of a GKE Pod. + * For Pods in regional Clusters, the URI format is: + * `projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/pods/{pod}` + * For Pods in zonal Clusters, the URI format is: + * `projects/{project}/zones/{zone}/clusters/{cluster}/k8s/namespaces/{namespace}/pods/{pod}` + * + * Generated from protobuf field string pod_uri = 1; + */ + protected $pod_uri = ''; + /** + * IP address of a GKE Pod. If the Pod is dual-stack, this is the IP address + * relevant to the trace. + * + * Generated from protobuf field string ip_address = 2 [(.google.api.field_info) = { + */ + protected $ip_address = ''; + /** + * URI of the network containing the GKE Pod. + * + * Generated from protobuf field string network_uri = 3; + */ + protected $network_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $pod_uri + * URI of a GKE Pod. + * For Pods in regional Clusters, the URI format is: + * `projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/pods/{pod}` + * For Pods in zonal Clusters, the URI format is: + * `projects/{project}/zones/{zone}/clusters/{cluster}/k8s/namespaces/{namespace}/pods/{pod}` + * @type string $ip_address + * IP address of a GKE Pod. If the Pod is dual-stack, this is the IP address + * relevant to the trace. + * @type string $network_uri + * URI of the network containing the GKE Pod. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * URI of a GKE Pod. + * For Pods in regional Clusters, the URI format is: + * `projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/pods/{pod}` + * For Pods in zonal Clusters, the URI format is: + * `projects/{project}/zones/{zone}/clusters/{cluster}/k8s/namespaces/{namespace}/pods/{pod}` + * + * Generated from protobuf field string pod_uri = 1; + * @return string + */ + public function getPodUri() + { + return $this->pod_uri; + } + + /** + * URI of a GKE Pod. + * For Pods in regional Clusters, the URI format is: + * `projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/pods/{pod}` + * For Pods in zonal Clusters, the URI format is: + * `projects/{project}/zones/{zone}/clusters/{cluster}/k8s/namespaces/{namespace}/pods/{pod}` + * + * Generated from protobuf field string pod_uri = 1; + * @param string $var + * @return $this + */ + public function setPodUri($var) + { + GPBUtil::checkString($var, True); + $this->pod_uri = $var; + + return $this; + } + + /** + * IP address of a GKE Pod. If the Pod is dual-stack, this is the IP address + * relevant to the trace. + * + * Generated from protobuf field string ip_address = 2 [(.google.api.field_info) = { + * @return string + */ + public function getIpAddress() + { + return $this->ip_address; + } + + /** + * IP address of a GKE Pod. If the Pod is dual-stack, this is the IP address + * relevant to the trace. + * + * Generated from protobuf field string ip_address = 2 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->ip_address = $var; + + return $this; + } + + /** + * URI of the network containing the GKE Pod. + * + * Generated from protobuf field string network_uri = 3; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of the network containing the GKE Pod. + * + * Generated from protobuf field string network_uri = 3; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo.php new file mode 100644 index 000000000000..d402ca6ee52f --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo.php @@ -0,0 +1,105 @@ +google.cloud.networkmanagement.v1.GoogleServiceInfo + */ +class GoogleServiceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Source IP address. + * + * Generated from protobuf field string source_ip = 1; + */ + protected $source_ip = ''; + /** + * Recognized type of a Google Service. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2; + */ + protected $google_service_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $source_ip + * Source IP address. + * @type int $google_service_type + * Recognized type of a Google Service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Source IP address. + * + * Generated from protobuf field string source_ip = 1; + * @return string + */ + public function getSourceIp() + { + return $this->source_ip; + } + + /** + * Source IP address. + * + * Generated from protobuf field string source_ip = 1; + * @param string $var + * @return $this + */ + public function setSourceIp($var) + { + GPBUtil::checkString($var, True); + $this->source_ip = $var; + + return $this; + } + + /** + * Recognized type of a Google Service. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2; + * @return int + */ + public function getGoogleServiceType() + { + return $this->google_service_type; + } + + /** + * Recognized type of a Google Service. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2; + * @param int $var + * @return $this + */ + public function setGoogleServiceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo\GoogleServiceType::class); + $this->google_service_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo/GoogleServiceType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo/GoogleServiceType.php new file mode 100644 index 000000000000..d763b57d9de6 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo/GoogleServiceType.php @@ -0,0 +1,109 @@ +google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType + */ +class GoogleServiceType +{ + /** + * Unspecified Google Service. + * + * Generated from protobuf enum GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + */ + const GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + /** + * Identity aware proxy. + * https://cloud.google.com/iap/docs/using-tcp-forwarding + * + * Generated from protobuf enum IAP = 1; + */ + const IAP = 1; + /** + * One of two services sharing IP ranges: + * * Load Balancer proxy + * * Centralized Health Check prober + * https://cloud.google.com/load-balancing/docs/firewall-rules + * + * Generated from protobuf enum GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + */ + const GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + /** + * Connectivity from Cloud DNS to forwarding targets or alternate name + * servers that use private routing. + * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules + * https://cloud.google.com/dns/docs/policies#firewall-rules + * + * Generated from protobuf enum CLOUD_DNS = 3; + */ + const CLOUD_DNS = 3; + /** + * private.googleapis.com and restricted.googleapis.com + * + * Generated from protobuf enum GOOGLE_API = 4; + */ + const GOOGLE_API = 4; + /** + * Google API via Private Service Connect. + * https://cloud.google.com/vpc/docs/configure-private-service-connect-apis + * + * Generated from protobuf enum GOOGLE_API_PSC = 5; + */ + const GOOGLE_API_PSC = 5; + /** + * Google API via VPC Service Controls. + * https://cloud.google.com/vpc/docs/configure-private-service-connect-apis + * + * Generated from protobuf enum GOOGLE_API_VPC_SC = 6; + */ + const GOOGLE_API_VPC_SC = 6; + /** + * Google API via Serverless VPC Access. + * https://cloud.google.com/vpc/docs/serverless-vpc-access + * + * Generated from protobuf enum SERVERLESS_VPC_ACCESS = 7; + */ + const SERVERLESS_VPC_ACCESS = 7; + + private static $valueToName = [ + self::GOOGLE_SERVICE_TYPE_UNSPECIFIED => 'GOOGLE_SERVICE_TYPE_UNSPECIFIED', + self::IAP => 'IAP', + self::GFE_PROXY_OR_HEALTH_CHECK_PROBER => 'GFE_PROXY_OR_HEALTH_CHECK_PROBER', + self::CLOUD_DNS => 'CLOUD_DNS', + self::GOOGLE_API => 'GOOGLE_API', + self::GOOGLE_API_PSC => 'GOOGLE_API_PSC', + self::GOOGLE_API_VPC_SC => 'GOOGLE_API_VPC_SC', + self::SERVERLESS_VPC_ACCESS => 'SERVERLESS_VPC_ACCESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleServiceType::class, \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo_GoogleServiceType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/HybridSubnetInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/HybridSubnetInfo.php new file mode 100644 index 000000000000..67b6ba82c1ed --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/HybridSubnetInfo.php @@ -0,0 +1,135 @@ +google.cloud.networkmanagement.v1.HybridSubnetInfo + */ +class HybridSubnetInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a hybrid subnet. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a hybrid subnet. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Name of a Google Cloud region where the hybrid subnet is configured. + * + * Generated from protobuf field string region = 3; + */ + protected $region = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a hybrid subnet. + * @type string $uri + * URI of a hybrid subnet. + * @type string $region + * Name of a Google Cloud region where the hybrid subnet is configured. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a hybrid subnet. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a hybrid subnet. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a hybrid subnet. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a hybrid subnet. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Name of a Google Cloud region where the hybrid subnet is configured. + * + * Generated from protobuf field string region = 3; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Name of a Google Cloud region where the hybrid subnet is configured. + * + * Generated from protobuf field string region = 3; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo.php new file mode 100644 index 000000000000..240bea839b67 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo.php @@ -0,0 +1,425 @@ +google.cloud.networkmanagement.v1.InstanceInfo + */ +class InstanceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a Compute Engine instance. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a Compute Engine instance. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Name of the network interface of a Compute Engine instance. + * + * Generated from protobuf field string interface = 3; + */ + protected $interface = ''; + /** + * URI of a Compute Engine network. + * + * Generated from protobuf field string network_uri = 4; + */ + protected $network_uri = ''; + /** + * Internal IP address of the network interface. + * + * Generated from protobuf field string internal_ip = 5; + */ + protected $internal_ip = ''; + /** + * External IP address of the network interface. + * + * Generated from protobuf field string external_ip = 6; + */ + protected $external_ip = ''; + /** + * Network tags configured on the instance. + * + * Generated from protobuf field repeated string network_tags = 7; + */ + private $network_tags; + /** + * Service account authorized for the instance. + * + * Generated from protobuf field string service_account = 8 [deprecated = true]; + * @deprecated + */ + protected $service_account = ''; + /** + * URI of the PSC network attachment the NIC is attached to (if relevant). + * + * Generated from protobuf field string psc_network_attachment_uri = 9; + */ + protected $psc_network_attachment_uri = ''; + /** + * Indicates whether the Compute Engine instance is running. + * Deprecated: use the `status` field instead. + * + * Generated from protobuf field bool running = 10 [deprecated = true]; + * @deprecated + */ + protected $running = false; + /** + * The status of the instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + */ + protected $status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a Compute Engine instance. + * @type string $uri + * URI of a Compute Engine instance. + * @type string $interface + * Name of the network interface of a Compute Engine instance. + * @type string $network_uri + * URI of a Compute Engine network. + * @type string $internal_ip + * Internal IP address of the network interface. + * @type string $external_ip + * External IP address of the network interface. + * @type array|\Google\Protobuf\Internal\RepeatedField $network_tags + * Network tags configured on the instance. + * @type string $service_account + * Service account authorized for the instance. + * @type string $psc_network_attachment_uri + * URI of the PSC network attachment the NIC is attached to (if relevant). + * @type bool $running + * Indicates whether the Compute Engine instance is running. + * Deprecated: use the `status` field instead. + * @type int $status + * The status of the instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a Compute Engine instance. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a Compute Engine instance. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a Compute Engine instance. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a Compute Engine instance. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Name of the network interface of a Compute Engine instance. + * + * Generated from protobuf field string interface = 3; + * @return string + */ + public function getInterface() + { + return $this->interface; + } + + /** + * Name of the network interface of a Compute Engine instance. + * + * Generated from protobuf field string interface = 3; + * @param string $var + * @return $this + */ + public function setInterface($var) + { + GPBUtil::checkString($var, True); + $this->interface = $var; + + return $this; + } + + /** + * URI of a Compute Engine network. + * + * Generated from protobuf field string network_uri = 4; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of a Compute Engine network. + * + * Generated from protobuf field string network_uri = 4; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * Internal IP address of the network interface. + * + * Generated from protobuf field string internal_ip = 5; + * @return string + */ + public function getInternalIp() + { + return $this->internal_ip; + } + + /** + * Internal IP address of the network interface. + * + * Generated from protobuf field string internal_ip = 5; + * @param string $var + * @return $this + */ + public function setInternalIp($var) + { + GPBUtil::checkString($var, True); + $this->internal_ip = $var; + + return $this; + } + + /** + * External IP address of the network interface. + * + * Generated from protobuf field string external_ip = 6; + * @return string + */ + public function getExternalIp() + { + return $this->external_ip; + } + + /** + * External IP address of the network interface. + * + * Generated from protobuf field string external_ip = 6; + * @param string $var + * @return $this + */ + public function setExternalIp($var) + { + GPBUtil::checkString($var, True); + $this->external_ip = $var; + + return $this; + } + + /** + * Network tags configured on the instance. + * + * Generated from protobuf field repeated string network_tags = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNetworkTags() + { + return $this->network_tags; + } + + /** + * Network tags configured on the instance. + * + * Generated from protobuf field repeated string network_tags = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNetworkTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->network_tags = $arr; + + return $this; + } + + /** + * Service account authorized for the instance. + * + * Generated from protobuf field string service_account = 8 [deprecated = true]; + * @return string + * @deprecated + */ + public function getServiceAccount() + { + if ($this->service_account !== '') { + @trigger_error('service_account is deprecated.', E_USER_DEPRECATED); + } + return $this->service_account; + } + + /** + * Service account authorized for the instance. + * + * Generated from protobuf field string service_account = 8 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setServiceAccount($var) + { + @trigger_error('service_account is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * URI of the PSC network attachment the NIC is attached to (if relevant). + * + * Generated from protobuf field string psc_network_attachment_uri = 9; + * @return string + */ + public function getPscNetworkAttachmentUri() + { + return $this->psc_network_attachment_uri; + } + + /** + * URI of the PSC network attachment the NIC is attached to (if relevant). + * + * Generated from protobuf field string psc_network_attachment_uri = 9; + * @param string $var + * @return $this + */ + public function setPscNetworkAttachmentUri($var) + { + GPBUtil::checkString($var, True); + $this->psc_network_attachment_uri = $var; + + return $this; + } + + /** + * Indicates whether the Compute Engine instance is running. + * Deprecated: use the `status` field instead. + * + * Generated from protobuf field bool running = 10 [deprecated = true]; + * @return bool + * @deprecated + */ + public function getRunning() + { + if ($this->running !== false) { + @trigger_error('running is deprecated.', E_USER_DEPRECATED); + } + return $this->running; + } + + /** + * Indicates whether the Compute Engine instance is running. + * Deprecated: use the `status` field instead. + * + * Generated from protobuf field bool running = 10 [deprecated = true]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setRunning($var) + { + @trigger_error('running is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->running = $var; + + return $this; + } + + /** + * The status of the instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * The status of the instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\InstanceInfo\Status::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo/Status.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo/Status.php new file mode 100644 index 000000000000..5580526238e3 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo/Status.php @@ -0,0 +1,65 @@ +google.cloud.networkmanagement.v1.InstanceInfo.Status + */ +class Status +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The instance is running. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The instance has any status other than "RUNNING". + * + * Generated from protobuf enum NOT_RUNNING = 2; + */ + const NOT_RUNNING = 2; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::NOT_RUNNING => 'NOT_RUNNING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Google\Cloud\NetworkManagement\V1\InstanceInfo_Status::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo.php new file mode 100644 index 000000000000..cc092b90aae1 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo.php @@ -0,0 +1,279 @@ +google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + */ +class InterconnectAttachmentInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of an Interconnect attachment. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of an Interconnect attachment. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * URI of the Interconnect where the Interconnect attachment is + * configured. + * + * Generated from protobuf field string interconnect_uri = 3; + */ + protected $interconnect_uri = ''; + /** + * Name of a Google Cloud region where the Interconnect attachment is + * configured. + * + * Generated from protobuf field string region = 4; + */ + protected $region = ''; + /** + * URI of the Cloud Router to be used for dynamic routing. + * + * Generated from protobuf field string cloud_router_uri = 5; + */ + protected $cloud_router_uri = ''; + /** + * The type of interconnect attachment this is. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + */ + protected $type = 0; + /** + * Appliance IP address that was matched for L2_DEDICATED attachments. + * + * Generated from protobuf field string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { + */ + protected $l2_attachment_matched_ip_address = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of an Interconnect attachment. + * @type string $uri + * URI of an Interconnect attachment. + * @type string $interconnect_uri + * URI of the Interconnect where the Interconnect attachment is + * configured. + * @type string $region + * Name of a Google Cloud region where the Interconnect attachment is + * configured. + * @type string $cloud_router_uri + * URI of the Cloud Router to be used for dynamic routing. + * @type int $type + * The type of interconnect attachment this is. + * @type string $l2_attachment_matched_ip_address + * Appliance IP address that was matched for L2_DEDICATED attachments. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of an Interconnect attachment. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of an Interconnect attachment. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of an Interconnect attachment. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of an Interconnect attachment. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * URI of the Interconnect where the Interconnect attachment is + * configured. + * + * Generated from protobuf field string interconnect_uri = 3; + * @return string + */ + public function getInterconnectUri() + { + return $this->interconnect_uri; + } + + /** + * URI of the Interconnect where the Interconnect attachment is + * configured. + * + * Generated from protobuf field string interconnect_uri = 3; + * @param string $var + * @return $this + */ + public function setInterconnectUri($var) + { + GPBUtil::checkString($var, True); + $this->interconnect_uri = $var; + + return $this; + } + + /** + * Name of a Google Cloud region where the Interconnect attachment is + * configured. + * + * Generated from protobuf field string region = 4; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Name of a Google Cloud region where the Interconnect attachment is + * configured. + * + * Generated from protobuf field string region = 4; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + + /** + * URI of the Cloud Router to be used for dynamic routing. + * + * Generated from protobuf field string cloud_router_uri = 5; + * @return string + */ + public function getCloudRouterUri() + { + return $this->cloud_router_uri; + } + + /** + * URI of the Cloud Router to be used for dynamic routing. + * + * Generated from protobuf field string cloud_router_uri = 5; + * @param string $var + * @return $this + */ + public function setCloudRouterUri($var) + { + GPBUtil::checkString($var, True); + $this->cloud_router_uri = $var; + + return $this; + } + + /** + * The type of interconnect attachment this is. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of interconnect attachment this is. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Appliance IP address that was matched for L2_DEDICATED attachments. + * + * Generated from protobuf field string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { + * @return string + */ + public function getL2AttachmentMatchedIpAddress() + { + return $this->l2_attachment_matched_ip_address; + } + + /** + * Appliance IP address that was matched for L2_DEDICATED attachments. + * + * Generated from protobuf field string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setL2AttachmentMatchedIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->l2_attachment_matched_ip_address = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo/Type.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo/Type.php new file mode 100644 index 000000000000..f1302fae8cdb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo/Type.php @@ -0,0 +1,78 @@ +google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type + */ +class Type +{ + /** + * Unspecified type. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Attachment to a dedicated interconnect. + * + * Generated from protobuf enum DEDICATED = 1; + */ + const DEDICATED = 1; + /** + * Attachment to a partner interconnect, created by the customer. + * + * Generated from protobuf enum PARTNER = 2; + */ + const PARTNER = 2; + /** + * Attachment to a partner interconnect, created by the partner. + * + * Generated from protobuf enum PARTNER_PROVIDER = 3; + */ + const PARTNER_PROVIDER = 3; + /** + * Attachment to a L2 interconnect, created by the customer. + * + * Generated from protobuf enum L2_DEDICATED = 4; + */ + const L2_DEDICATED = 4; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::DEDICATED => 'DEDICATED', + self::PARTNER => 'PARTNER', + self::PARTNER_PROVIDER => 'PARTNER_PROVIDER', + self::L2_DEDICATED => 'L2_DEDICATED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo_Type::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo.php new file mode 100644 index 000000000000..d426a84c1892 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo.php @@ -0,0 +1,110 @@ +google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo + */ +class IpMasqueradingSkippedInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Reason why IP masquerading was not applied. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo.Reason reason = 1; + */ + protected $reason = 0; + /** + * The matched non-masquerade IP range. Only set if reason is + * DESTINATION_IP_IN_CONFIGURED_NON_MASQUERADE_RANGE or + * DESTINATION_IP_IN_DEFAULT_NON_MASQUERADE_RANGE. + * + * Generated from protobuf field string non_masquerade_range = 2; + */ + protected $non_masquerade_range = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $reason + * Reason why IP masquerading was not applied. + * @type string $non_masquerade_range + * The matched non-masquerade IP range. Only set if reason is + * DESTINATION_IP_IN_CONFIGURED_NON_MASQUERADE_RANGE or + * DESTINATION_IP_IN_DEFAULT_NON_MASQUERADE_RANGE. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Reason why IP masquerading was not applied. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo.Reason reason = 1; + * @return int + */ + public function getReason() + { + return $this->reason; + } + + /** + * Reason why IP masquerading was not applied. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo.Reason reason = 1; + * @param int $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo\Reason::class); + $this->reason = $var; + + return $this; + } + + /** + * The matched non-masquerade IP range. Only set if reason is + * DESTINATION_IP_IN_CONFIGURED_NON_MASQUERADE_RANGE or + * DESTINATION_IP_IN_DEFAULT_NON_MASQUERADE_RANGE. + * + * Generated from protobuf field string non_masquerade_range = 2; + * @return string + */ + public function getNonMasqueradeRange() + { + return $this->non_masquerade_range; + } + + /** + * The matched non-masquerade IP range. Only set if reason is + * DESTINATION_IP_IN_CONFIGURED_NON_MASQUERADE_RANGE or + * DESTINATION_IP_IN_DEFAULT_NON_MASQUERADE_RANGE. + * + * Generated from protobuf field string non_masquerade_range = 2; + * @param string $var + * @return $this + */ + public function setNonMasqueradeRange($var) + { + GPBUtil::checkString($var, True); + $this->non_masquerade_range = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo/Reason.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo/Reason.php new file mode 100644 index 000000000000..8596e42b47d9 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo/Reason.php @@ -0,0 +1,103 @@ +google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo.Reason + */ +class Reason +{ + /** + * Unused default value. + * + * Generated from protobuf enum REASON_UNSPECIFIED = 0; + */ + const REASON_UNSPECIFIED = 0; + /** + * Masquerading not applied because destination IP is in one of configured + * non-masquerade ranges. + * + * Generated from protobuf enum DESTINATION_IP_IN_CONFIGURED_NON_MASQUERADE_RANGE = 1; + */ + const DESTINATION_IP_IN_CONFIGURED_NON_MASQUERADE_RANGE = 1; + /** + * Masquerading not applied because destination IP is in one of default + * non-masquerade ranges. + * + * Generated from protobuf enum DESTINATION_IP_IN_DEFAULT_NON_MASQUERADE_RANGE = 2; + */ + const DESTINATION_IP_IN_DEFAULT_NON_MASQUERADE_RANGE = 2; + /** + * Masquerading not applied because destination is on the same Node. + * + * Generated from protobuf enum DESTINATION_ON_SAME_NODE = 3; + */ + const DESTINATION_ON_SAME_NODE = 3; + /** + * Masquerading not applied because ip-masq-agent doesn't exist and default + * SNAT is disabled. + * + * Generated from protobuf enum DEFAULT_SNAT_DISABLED = 4; + */ + const DEFAULT_SNAT_DISABLED = 4; + /** + * Masquerading not applied because the packet's IP version is IPv6. + * + * Generated from protobuf enum NO_MASQUERADING_FOR_IPV6 = 5; + */ + const NO_MASQUERADING_FOR_IPV6 = 5; + /** + * Masquerading not applied because the source Pod uses the host Node's + * network namespace, including the Node's IP address. + * + * Generated from protobuf enum POD_USES_NODE_NETWORK_NAMESPACE = 6; + */ + const POD_USES_NODE_NETWORK_NAMESPACE = 6; + /** + * Masquerading not applied because the packet is a return packet. + * + * Generated from protobuf enum NO_MASQUERADING_FOR_RETURN_PACKET = 7; + */ + const NO_MASQUERADING_FOR_RETURN_PACKET = 7; + + private static $valueToName = [ + self::REASON_UNSPECIFIED => 'REASON_UNSPECIFIED', + self::DESTINATION_IP_IN_CONFIGURED_NON_MASQUERADE_RANGE => 'DESTINATION_IP_IN_CONFIGURED_NON_MASQUERADE_RANGE', + self::DESTINATION_IP_IN_DEFAULT_NON_MASQUERADE_RANGE => 'DESTINATION_IP_IN_DEFAULT_NON_MASQUERADE_RANGE', + self::DESTINATION_ON_SAME_NODE => 'DESTINATION_ON_SAME_NODE', + self::DEFAULT_SNAT_DISABLED => 'DEFAULT_SNAT_DISABLED', + self::NO_MASQUERADING_FOR_IPV6 => 'NO_MASQUERADING_FOR_IPV6', + self::POD_USES_NODE_NETWORK_NAMESPACE => 'POD_USES_NODE_NETWORK_NAMESPACE', + self::NO_MASQUERADING_FOR_RETURN_PACKET => 'NO_MASQUERADING_FOR_RETURN_PACKET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Reason::class, \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo_Reason::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyDistribution.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyDistribution.php new file mode 100644 index 000000000000..0c62df4ba113 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyDistribution.php @@ -0,0 +1,67 @@ +google.cloud.networkmanagement.v1.LatencyDistribution + */ +class LatencyDistribution extends \Google\Protobuf\Internal\Message +{ + /** + * Representative latency percentiles. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1; + */ + private $latency_percentiles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\NetworkManagement\V1\LatencyPercentile>|\Google\Protobuf\Internal\RepeatedField $latency_percentiles + * Representative latency percentiles. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * Representative latency percentiles. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLatencyPercentiles() + { + return $this->latency_percentiles; + } + + /** + * Representative latency percentiles. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1; + * @param array<\Google\Cloud\NetworkManagement\V1\LatencyPercentile>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLatencyPercentiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\LatencyPercentile::class); + $this->latency_percentiles = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyPercentile.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyPercentile.php new file mode 100644 index 000000000000..850e7f81bad8 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyPercentile.php @@ -0,0 +1,109 @@ +google.cloud.networkmanagement.v1.LatencyPercentile + */ +class LatencyPercentile extends \Google\Protobuf\Internal\Message +{ + /** + * Percentage of samples this data point applies to. + * + * Generated from protobuf field int32 percent = 1; + */ + protected $percent = 0; + /** + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + * + * Generated from protobuf field int64 latency_micros = 2; + */ + protected $latency_micros = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $percent + * Percentage of samples this data point applies to. + * @type int|string $latency_micros + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * Percentage of samples this data point applies to. + * + * Generated from protobuf field int32 percent = 1; + * @return int + */ + public function getPercent() + { + return $this->percent; + } + + /** + * Percentage of samples this data point applies to. + * + * Generated from protobuf field int32 percent = 1; + * @param int $var + * @return $this + */ + public function setPercent($var) + { + GPBUtil::checkInt32($var); + $this->percent = $var; + + return $this; + } + + /** + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + * + * Generated from protobuf field int64 latency_micros = 2; + * @return int|string + */ + public function getLatencyMicros() + { + return $this->latency_micros; + } + + /** + * percent-th percentile of latency observed, in microseconds. + * Fraction of percent/100 of samples have latency lower or + * equal to the value of this field. + * + * Generated from protobuf field int64 latency_micros = 2; + * @param int|string $var + * @return $this + */ + public function setLatencyMicros($var) + { + GPBUtil::checkInt64($var); + $this->latency_micros = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsRequest.php new file mode 100644 index 000000000000..60845fff13b3 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsRequest.php @@ -0,0 +1,282 @@ +google.cloud.networkmanagement.v1.ListConnectivityTestsRequest + */ +class ListConnectivityTestsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the Connectivity Tests: + * `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Number of `ConnectivityTests` to return. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * Page token from an earlier query, as returned in `next_page_token`. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Lists the `ConnectivityTests` that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form ` ` where operators: `<`, `>`, + * `<=`, + * `>=`, + * `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is + * roughly synonymous with equality). can refer to a proto or JSON + * field, or a synthetic field. Field names can be camelCase or snake_case. + * Examples: + * - Filter by name: + * name = "projects/proj-1/locations/global/connectivityTests/test-1 + * - Filter by labels: + * - Resources that have a key called `foo` + * labels.foo:* + * - Resources that have a key called `foo` whose value is `bar` + * labels.foo = bar + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent resource of the Connectivity Tests: + * `projects/{project_id}/locations/global` + * Please see {@see ReachabilityServiceClient::projectName()} for help formatting this field. + * + * @return \Google\Cloud\NetworkManagement\V1\ListConnectivityTestsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the Connectivity Tests: + * `projects/{project_id}/locations/global` + * @type int $page_size + * Number of `ConnectivityTests` to return. + * @type string $page_token + * Page token from an earlier query, as returned in `next_page_token`. + * @type string $filter + * Lists the `ConnectivityTests` that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form ` ` where operators: `<`, `>`, + * `<=`, + * `>=`, + * `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is + * roughly synonymous with equality). can refer to a proto or JSON + * field, or a synthetic field. Field names can be camelCase or snake_case. + * Examples: + * - Filter by name: + * name = "projects/proj-1/locations/global/connectivityTests/test-1 + * - Filter by labels: + * - Resources that have a key called `foo` + * labels.foo:* + * - Resources that have a key called `foo` whose value is `bar` + * labels.foo = bar + * @type string $order_by + * Field to use to sort the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the Connectivity Tests: + * `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource of the Connectivity Tests: + * `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Number of `ConnectivityTests` to return. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Number of `ConnectivityTests` to return. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Page token from an earlier query, as returned in `next_page_token`. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token from an earlier query, as returned in `next_page_token`. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Lists the `ConnectivityTests` that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form ` ` where operators: `<`, `>`, + * `<=`, + * `>=`, + * `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is + * roughly synonymous with equality). can refer to a proto or JSON + * field, or a synthetic field. Field names can be camelCase or snake_case. + * Examples: + * - Filter by name: + * name = "projects/proj-1/locations/global/connectivityTests/test-1 + * - Filter by labels: + * - Resources that have a key called `foo` + * labels.foo:* + * - Resources that have a key called `foo` whose value is `bar` + * labels.foo = bar + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Lists the `ConnectivityTests` that match the filter expression. A filter + * expression filters the resources listed in the response. The expression + * must be of the form ` ` where operators: `<`, `>`, + * `<=`, + * `>=`, + * `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is + * roughly synonymous with equality). can refer to a proto or JSON + * field, or a synthetic field. Field names can be camelCase or snake_case. + * Examples: + * - Filter by name: + * name = "projects/proj-1/locations/global/connectivityTests/test-1 + * - Filter by labels: + * - Resources that have a key called `foo` + * labels.foo:* + * - Resources that have a key called `foo` whose value is `bar` + * labels.foo = bar + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsResponse.php new file mode 100644 index 000000000000..c026cd03326a --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsResponse.php @@ -0,0 +1,135 @@ +google.cloud.networkmanagement.v1.ListConnectivityTestsResponse + */ +class ListConnectivityTestsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of Connectivity Tests. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1; + */ + private $resources; + /** + * Page token to fetch the next set of Connectivity Tests. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\NetworkManagement\V1\ConnectivityTest>|\Google\Protobuf\Internal\RepeatedField $resources + * List of Connectivity Tests. + * @type string $next_page_token + * Page token to fetch the next set of Connectivity Tests. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached (when querying all locations with `-`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); + parent::__construct($data); + } + + /** + * List of Connectivity Tests. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResources() + { + return $this->resources; + } + + /** + * List of Connectivity Tests. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1; + * @param array<\Google\Cloud\NetworkManagement\V1\ConnectivityTest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\ConnectivityTest::class); + $this->resources = $arr; + + return $this; + } + + /** + * Page token to fetch the next set of Connectivity Tests. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Page token to fetch the next set of Connectivity Tests. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsRequest.php new file mode 100644 index 000000000000..34a42ff012ba --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsRequest.php @@ -0,0 +1,251 @@ +google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + */ +class ListVpcFlowLogsConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the VpcFlowLogsConfig, + * in one of the following formats: + * - For project-level resources: `projects/{project_id}/locations/global` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Number of `VpcFlowLogsConfigs` to return. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + * A filter expression must use the supported [CEL logic operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent resource of the VpcFlowLogsConfig, + * in one of the following formats: + * + * - For project-level resources: `projects/{project_id}/locations/global` + * + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * Please see {@see VpcFlowLogsServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\NetworkManagement\V1\ListVpcFlowLogsConfigsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the VpcFlowLogsConfig, + * in one of the following formats: + * - For project-level resources: `projects/{project_id}/locations/global` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * @type int $page_size + * Optional. Number of `VpcFlowLogsConfigs` to return. + * @type string $page_token + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * @type string $filter + * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + * A filter expression must use the supported [CEL logic operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * @type string $order_by + * Optional. Field to use to sort the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the VpcFlowLogsConfig, + * in one of the following formats: + * - For project-level resources: `projects/{project_id}/locations/global` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource of the VpcFlowLogsConfig, + * in one of the following formats: + * - For project-level resources: `projects/{project_id}/locations/global` + * - For organization-level resources: + * `organizations/{organization_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Number of `VpcFlowLogsConfigs` to return. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Number of `VpcFlowLogsConfigs` to return. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + * A filter expression must use the supported [CEL logic operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + * A filter expression must use the supported [CEL logic operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Field to use to sort the list. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsResponse.php new file mode 100644 index 000000000000..967bb885bc1c --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsResponse.php @@ -0,0 +1,135 @@ +google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + */ +class ListVpcFlowLogsConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of VPC Flow Log configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + */ + private $vpc_flow_logs_configs; + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $vpc_flow_logs_configs + * List of VPC Flow Log configurations. + * @type string $next_page_token + * Page token to fetch the next set of configurations. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached (when querying all locations with `-`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * List of VPC Flow Log configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVpcFlowLogsConfigs() + { + return $this->vpc_flow_logs_configs; + } + + /** + * List of VPC Flow Log configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * @param array<\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVpcFlowLogsConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig::class); + $this->vpc_flow_logs_configs = $arr; + + return $this; + } + + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend.php new file mode 100644 index 000000000000..b4b0114164fb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend.php @@ -0,0 +1,203 @@ +google.cloud.networkmanagement.v1.LoadBalancerBackend + */ +class LoadBalancerBackend extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a Compute Engine instance or network endpoint. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a Compute Engine instance or network endpoint. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * State of the health check firewall configuration. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3; + */ + protected $health_check_firewall_state = 0; + /** + * A list of firewall rule URIs allowing probes from health check IP ranges. + * + * Generated from protobuf field repeated string health_check_allowing_firewall_rules = 4; + */ + private $health_check_allowing_firewall_rules; + /** + * A list of firewall rule URIs blocking probes from health check IP ranges. + * + * Generated from protobuf field repeated string health_check_blocking_firewall_rules = 5; + */ + private $health_check_blocking_firewall_rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a Compute Engine instance or network endpoint. + * @type string $uri + * URI of a Compute Engine instance or network endpoint. + * @type int $health_check_firewall_state + * State of the health check firewall configuration. + * @type array|\Google\Protobuf\Internal\RepeatedField $health_check_allowing_firewall_rules + * A list of firewall rule URIs allowing probes from health check IP ranges. + * @type array|\Google\Protobuf\Internal\RepeatedField $health_check_blocking_firewall_rules + * A list of firewall rule URIs blocking probes from health check IP ranges. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a Compute Engine instance or network endpoint. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a Compute Engine instance or network endpoint. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a Compute Engine instance or network endpoint. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a Compute Engine instance or network endpoint. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * State of the health check firewall configuration. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3; + * @return int + */ + public function getHealthCheckFirewallState() + { + return $this->health_check_firewall_state; + } + + /** + * State of the health check firewall configuration. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3; + * @param int $var + * @return $this + */ + public function setHealthCheckFirewallState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackend\HealthCheckFirewallState::class); + $this->health_check_firewall_state = $var; + + return $this; + } + + /** + * A list of firewall rule URIs allowing probes from health check IP ranges. + * + * Generated from protobuf field repeated string health_check_allowing_firewall_rules = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getHealthCheckAllowingFirewallRules() + { + return $this->health_check_allowing_firewall_rules; + } + + /** + * A list of firewall rule URIs allowing probes from health check IP ranges. + * + * Generated from protobuf field repeated string health_check_allowing_firewall_rules = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setHealthCheckAllowingFirewallRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->health_check_allowing_firewall_rules = $arr; + + return $this; + } + + /** + * A list of firewall rule URIs blocking probes from health check IP ranges. + * + * Generated from protobuf field repeated string health_check_blocking_firewall_rules = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getHealthCheckBlockingFirewallRules() + { + return $this->health_check_blocking_firewall_rules; + } + + /** + * A list of firewall rule URIs blocking probes from health check IP ranges. + * + * Generated from protobuf field repeated string health_check_blocking_firewall_rules = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setHealthCheckBlockingFirewallRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->health_check_blocking_firewall_rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend/HealthCheckFirewallState.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend/HealthCheckFirewallState.php new file mode 100644 index 000000000000..ebf941b4b52e --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend/HealthCheckFirewallState.php @@ -0,0 +1,69 @@ +google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState + */ +class HealthCheckFirewallState +{ + /** + * State is unspecified. Default state if not populated. + * + * Generated from protobuf enum HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED = 0; + */ + const HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED = 0; + /** + * There are configured firewall rules to allow health check probes to the + * backend. + * + * Generated from protobuf enum CONFIGURED = 1; + */ + const CONFIGURED = 1; + /** + * There are firewall rules configured to allow partial health check ranges + * or block all health check ranges. + * If a health check probe is sent from denied IP ranges, + * the health check to the backend will fail. Then, the backend will be + * marked unhealthy and will not receive traffic sent to the load balancer. + * + * Generated from protobuf enum MISCONFIGURED = 2; + */ + const MISCONFIGURED = 2; + + private static $valueToName = [ + self::HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED => 'HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED', + self::CONFIGURED => 'CONFIGURED', + self::MISCONFIGURED => 'MISCONFIGURED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HealthCheckFirewallState::class, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackend_HealthCheckFirewallState::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo.php new file mode 100644 index 000000000000..0fb0d2efa27b --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo.php @@ -0,0 +1,409 @@ +google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + */ +class LoadBalancerBackendInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Display name of the backend. For example, it might be an instance name for + * the instance group backends, or an IP address and port for zonal network + * endpoint group backends. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * URI of the backend instance (if applicable). Populated for instance group + * backends, and zonal NEG backends. + * + * Generated from protobuf field string instance_uri = 2; + */ + protected $instance_uri = ''; + /** + * URI of the backend service this backend belongs to (if applicable). + * + * Generated from protobuf field string backend_service_uri = 3; + */ + protected $backend_service_uri = ''; + /** + * URI of the instance group this backend belongs to (if applicable). + * + * Generated from protobuf field string instance_group_uri = 4; + */ + protected $instance_group_uri = ''; + /** + * URI of the network endpoint group this backend belongs to (if applicable). + * + * Generated from protobuf field string network_endpoint_group_uri = 5; + */ + protected $network_endpoint_group_uri = ''; + /** + * URI of the backend bucket this backend targets (if applicable). + * + * Generated from protobuf field string backend_bucket_uri = 8; + */ + protected $backend_bucket_uri = ''; + /** + * URI of the PSC service attachment this PSC NEG backend targets (if + * applicable). + * + * Generated from protobuf field string psc_service_attachment_uri = 9; + */ + protected $psc_service_attachment_uri = ''; + /** + * PSC Google API target this PSC NEG backend targets (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 10; + */ + protected $psc_google_api_target = ''; + /** + * URI of the health check attached to this backend (if applicable). + * + * Generated from protobuf field string health_check_uri = 6; + */ + protected $health_check_uri = ''; + /** + * Output only. Health check firewalls configuration state for the backend. + * This is a result of the static firewall analysis (verifying that health + * check traffic from required IP ranges to the backend is allowed or not). + * The backend might still be unhealthy even if these firewalls are + * configured. Please refer to the documentation for more information: + * https://cloud.google.com/load-balancing/docs/firewall-rules + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $health_check_firewalls_config_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Display name of the backend. For example, it might be an instance name for + * the instance group backends, or an IP address and port for zonal network + * endpoint group backends. + * @type string $instance_uri + * URI of the backend instance (if applicable). Populated for instance group + * backends, and zonal NEG backends. + * @type string $backend_service_uri + * URI of the backend service this backend belongs to (if applicable). + * @type string $instance_group_uri + * URI of the instance group this backend belongs to (if applicable). + * @type string $network_endpoint_group_uri + * URI of the network endpoint group this backend belongs to (if applicable). + * @type string $backend_bucket_uri + * URI of the backend bucket this backend targets (if applicable). + * @type string $psc_service_attachment_uri + * URI of the PSC service attachment this PSC NEG backend targets (if + * applicable). + * @type string $psc_google_api_target + * PSC Google API target this PSC NEG backend targets (if applicable). + * @type string $health_check_uri + * URI of the health check attached to this backend (if applicable). + * @type int $health_check_firewalls_config_state + * Output only. Health check firewalls configuration state for the backend. + * This is a result of the static firewall analysis (verifying that health + * check traffic from required IP ranges to the backend is allowed or not). + * The backend might still be unhealthy even if these firewalls are + * configured. Please refer to the documentation for more information: + * https://cloud.google.com/load-balancing/docs/firewall-rules + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Display name of the backend. For example, it might be an instance name for + * the instance group backends, or an IP address and port for zonal network + * endpoint group backends. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Display name of the backend. For example, it might be an instance name for + * the instance group backends, or an IP address and port for zonal network + * endpoint group backends. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * URI of the backend instance (if applicable). Populated for instance group + * backends, and zonal NEG backends. + * + * Generated from protobuf field string instance_uri = 2; + * @return string + */ + public function getInstanceUri() + { + return $this->instance_uri; + } + + /** + * URI of the backend instance (if applicable). Populated for instance group + * backends, and zonal NEG backends. + * + * Generated from protobuf field string instance_uri = 2; + * @param string $var + * @return $this + */ + public function setInstanceUri($var) + { + GPBUtil::checkString($var, True); + $this->instance_uri = $var; + + return $this; + } + + /** + * URI of the backend service this backend belongs to (if applicable). + * + * Generated from protobuf field string backend_service_uri = 3; + * @return string + */ + public function getBackendServiceUri() + { + return $this->backend_service_uri; + } + + /** + * URI of the backend service this backend belongs to (if applicable). + * + * Generated from protobuf field string backend_service_uri = 3; + * @param string $var + * @return $this + */ + public function setBackendServiceUri($var) + { + GPBUtil::checkString($var, True); + $this->backend_service_uri = $var; + + return $this; + } + + /** + * URI of the instance group this backend belongs to (if applicable). + * + * Generated from protobuf field string instance_group_uri = 4; + * @return string + */ + public function getInstanceGroupUri() + { + return $this->instance_group_uri; + } + + /** + * URI of the instance group this backend belongs to (if applicable). + * + * Generated from protobuf field string instance_group_uri = 4; + * @param string $var + * @return $this + */ + public function setInstanceGroupUri($var) + { + GPBUtil::checkString($var, True); + $this->instance_group_uri = $var; + + return $this; + } + + /** + * URI of the network endpoint group this backend belongs to (if applicable). + * + * Generated from protobuf field string network_endpoint_group_uri = 5; + * @return string + */ + public function getNetworkEndpointGroupUri() + { + return $this->network_endpoint_group_uri; + } + + /** + * URI of the network endpoint group this backend belongs to (if applicable). + * + * Generated from protobuf field string network_endpoint_group_uri = 5; + * @param string $var + * @return $this + */ + public function setNetworkEndpointGroupUri($var) + { + GPBUtil::checkString($var, True); + $this->network_endpoint_group_uri = $var; + + return $this; + } + + /** + * URI of the backend bucket this backend targets (if applicable). + * + * Generated from protobuf field string backend_bucket_uri = 8; + * @return string + */ + public function getBackendBucketUri() + { + return $this->backend_bucket_uri; + } + + /** + * URI of the backend bucket this backend targets (if applicable). + * + * Generated from protobuf field string backend_bucket_uri = 8; + * @param string $var + * @return $this + */ + public function setBackendBucketUri($var) + { + GPBUtil::checkString($var, True); + $this->backend_bucket_uri = $var; + + return $this; + } + + /** + * URI of the PSC service attachment this PSC NEG backend targets (if + * applicable). + * + * Generated from protobuf field string psc_service_attachment_uri = 9; + * @return string + */ + public function getPscServiceAttachmentUri() + { + return $this->psc_service_attachment_uri; + } + + /** + * URI of the PSC service attachment this PSC NEG backend targets (if + * applicable). + * + * Generated from protobuf field string psc_service_attachment_uri = 9; + * @param string $var + * @return $this + */ + public function setPscServiceAttachmentUri($var) + { + GPBUtil::checkString($var, True); + $this->psc_service_attachment_uri = $var; + + return $this; + } + + /** + * PSC Google API target this PSC NEG backend targets (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 10; + * @return string + */ + public function getPscGoogleApiTarget() + { + return $this->psc_google_api_target; + } + + /** + * PSC Google API target this PSC NEG backend targets (if applicable). + * + * Generated from protobuf field string psc_google_api_target = 10; + * @param string $var + * @return $this + */ + public function setPscGoogleApiTarget($var) + { + GPBUtil::checkString($var, True); + $this->psc_google_api_target = $var; + + return $this; + } + + /** + * URI of the health check attached to this backend (if applicable). + * + * Generated from protobuf field string health_check_uri = 6; + * @return string + */ + public function getHealthCheckUri() + { + return $this->health_check_uri; + } + + /** + * URI of the health check attached to this backend (if applicable). + * + * Generated from protobuf field string health_check_uri = 6; + * @param string $var + * @return $this + */ + public function setHealthCheckUri($var) + { + GPBUtil::checkString($var, True); + $this->health_check_uri = $var; + + return $this; + } + + /** + * Output only. Health check firewalls configuration state for the backend. + * This is a result of the static firewall analysis (verifying that health + * check traffic from required IP ranges to the backend is allowed or not). + * The backend might still be unhealthy even if these firewalls are + * configured. Please refer to the documentation for more information: + * https://cloud.google.com/load-balancing/docs/firewall-rules + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getHealthCheckFirewallsConfigState() + { + return $this->health_check_firewalls_config_state; + } + + /** + * Output only. Health check firewalls configuration state for the backend. + * This is a result of the static firewall analysis (verifying that health + * check traffic from required IP ranges to the backend is allowed or not). + * The backend might still be unhealthy even if these firewalls are + * configured. Please refer to the documentation for more information: + * https://cloud.google.com/load-balancing/docs/firewall-rules + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setHealthCheckFirewallsConfigState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo\HealthCheckFirewallsConfigState::class); + $this->health_check_firewalls_config_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo/HealthCheckFirewallsConfigState.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo/HealthCheckFirewallsConfigState.php new file mode 100644 index 000000000000..4ca34e3878b2 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo/HealthCheckFirewallsConfigState.php @@ -0,0 +1,86 @@ +google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState + */ +class HealthCheckFirewallsConfigState +{ + /** + * Configuration state unspecified. It usually means that the backend has + * no health check attached, or there was an unexpected configuration error + * preventing Connectivity tests from verifying health check configuration. + * + * Generated from protobuf enum HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; + */ + const HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; + /** + * Firewall rules (policies) allowing health check traffic from all required + * IP ranges to the backend are configured. + * + * Generated from protobuf enum FIREWALLS_CONFIGURED = 1; + */ + const FIREWALLS_CONFIGURED = 1; + /** + * Firewall rules (policies) allow health check traffic only from a part of + * required IP ranges. + * + * Generated from protobuf enum FIREWALLS_PARTIALLY_CONFIGURED = 2; + */ + const FIREWALLS_PARTIALLY_CONFIGURED = 2; + /** + * Firewall rules (policies) deny health check traffic from all required + * IP ranges to the backend. + * + * Generated from protobuf enum FIREWALLS_NOT_CONFIGURED = 3; + */ + const FIREWALLS_NOT_CONFIGURED = 3; + /** + * The network contains firewall rules of unsupported types, so Connectivity + * tests were not able to verify health check configuration status. Please + * refer to the documentation for the list of unsupported configurations: + * https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs + * + * Generated from protobuf enum FIREWALLS_UNSUPPORTED = 4; + */ + const FIREWALLS_UNSUPPORTED = 4; + + private static $valueToName = [ + self::HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED => 'HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED', + self::FIREWALLS_CONFIGURED => 'FIREWALLS_CONFIGURED', + self::FIREWALLS_PARTIALLY_CONFIGURED => 'FIREWALLS_PARTIALLY_CONFIGURED', + self::FIREWALLS_NOT_CONFIGURED => 'FIREWALLS_NOT_CONFIGURED', + self::FIREWALLS_UNSUPPORTED => 'FIREWALLS_UNSUPPORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HealthCheckFirewallsConfigState::class, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo_HealthCheckFirewallsConfigState::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo.php new file mode 100644 index 000000000000..343d0cfbe314 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo.php @@ -0,0 +1,218 @@ +google.cloud.networkmanagement.v1.LoadBalancerInfo + */ +class LoadBalancerInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the load balancer. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1; + */ + protected $load_balancer_type = 0; + /** + * URI of the health check for the load balancer. Deprecated and no longer + * populated as different load balancer backends might have different health + * checks. + * + * Generated from protobuf field string health_check_uri = 2 [deprecated = true]; + * @deprecated + */ + protected $health_check_uri = ''; + /** + * Information for the loadbalancer backends. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LoadBalancerBackend backends = 3; + */ + private $backends; + /** + * Type of load balancer's backend configuration. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType backend_type = 4; + */ + protected $backend_type = 0; + /** + * Backend configuration URI. + * + * Generated from protobuf field string backend_uri = 5; + */ + protected $backend_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $load_balancer_type + * Type of the load balancer. + * @type string $health_check_uri + * URI of the health check for the load balancer. Deprecated and no longer + * populated as different load balancer backends might have different health + * checks. + * @type array<\Google\Cloud\NetworkManagement\V1\LoadBalancerBackend>|\Google\Protobuf\Internal\RepeatedField $backends + * Information for the loadbalancer backends. + * @type int $backend_type + * Type of load balancer's backend configuration. + * @type string $backend_uri + * Backend configuration URI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Type of the load balancer. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1; + * @return int + */ + public function getLoadBalancerType() + { + return $this->load_balancer_type; + } + + /** + * Type of the load balancer. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1; + * @param int $var + * @return $this + */ + public function setLoadBalancerType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo\LoadBalancerType::class); + $this->load_balancer_type = $var; + + return $this; + } + + /** + * URI of the health check for the load balancer. Deprecated and no longer + * populated as different load balancer backends might have different health + * checks. + * + * Generated from protobuf field string health_check_uri = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getHealthCheckUri() + { + if ($this->health_check_uri !== '') { + @trigger_error('health_check_uri is deprecated.', E_USER_DEPRECATED); + } + return $this->health_check_uri; + } + + /** + * URI of the health check for the load balancer. Deprecated and no longer + * populated as different load balancer backends might have different health + * checks. + * + * Generated from protobuf field string health_check_uri = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setHealthCheckUri($var) + { + @trigger_error('health_check_uri is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->health_check_uri = $var; + + return $this; + } + + /** + * Information for the loadbalancer backends. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LoadBalancerBackend backends = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBackends() + { + return $this->backends; + } + + /** + * Information for the loadbalancer backends. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LoadBalancerBackend backends = 3; + * @param array<\Google\Cloud\NetworkManagement\V1\LoadBalancerBackend>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBackends($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackend::class); + $this->backends = $arr; + + return $this; + } + + /** + * Type of load balancer's backend configuration. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType backend_type = 4; + * @return int + */ + public function getBackendType() + { + return $this->backend_type; + } + + /** + * Type of load balancer's backend configuration. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType backend_type = 4; + * @param int $var + * @return $this + */ + public function setBackendType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo\BackendType::class); + $this->backend_type = $var; + + return $this; + } + + /** + * Backend configuration URI. + * + * Generated from protobuf field string backend_uri = 5; + * @return string + */ + public function getBackendUri() + { + return $this->backend_uri; + } + + /** + * Backend configuration URI. + * + * Generated from protobuf field string backend_uri = 5; + * @param string $var + * @return $this + */ + public function setBackendUri($var) + { + GPBUtil::checkString($var, True); + $this->backend_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/BackendType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/BackendType.php new file mode 100644 index 000000000000..6b984fd67be6 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/BackendType.php @@ -0,0 +1,71 @@ +google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType + */ +class BackendType +{ + /** + * Type is unspecified. + * + * Generated from protobuf enum BACKEND_TYPE_UNSPECIFIED = 0; + */ + const BACKEND_TYPE_UNSPECIFIED = 0; + /** + * Backend Service as the load balancer's backend. + * + * Generated from protobuf enum BACKEND_SERVICE = 1; + */ + const BACKEND_SERVICE = 1; + /** + * Target Pool as the load balancer's backend. + * + * Generated from protobuf enum TARGET_POOL = 2; + */ + const TARGET_POOL = 2; + /** + * Target Instance as the load balancer's backend. + * + * Generated from protobuf enum TARGET_INSTANCE = 3; + */ + const TARGET_INSTANCE = 3; + + private static $valueToName = [ + self::BACKEND_TYPE_UNSPECIFIED => 'BACKEND_TYPE_UNSPECIFIED', + self::BACKEND_SERVICE => 'BACKEND_SERVICE', + self::TARGET_POOL => 'TARGET_POOL', + self::TARGET_INSTANCE => 'TARGET_INSTANCE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BackendType::class, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo_BackendType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/LoadBalancerType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/LoadBalancerType.php new file mode 100644 index 000000000000..ee000a238478 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/LoadBalancerType.php @@ -0,0 +1,85 @@ +google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType + */ +class LoadBalancerType +{ + /** + * Type is unspecified. + * + * Generated from protobuf enum LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + const LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + /** + * Internal TCP/UDP load balancer. + * + * Generated from protobuf enum INTERNAL_TCP_UDP = 1; + */ + const INTERNAL_TCP_UDP = 1; + /** + * Network TCP/UDP load balancer. + * + * Generated from protobuf enum NETWORK_TCP_UDP = 2; + */ + const NETWORK_TCP_UDP = 2; + /** + * HTTP(S) proxy load balancer. + * + * Generated from protobuf enum HTTP_PROXY = 3; + */ + const HTTP_PROXY = 3; + /** + * TCP proxy load balancer. + * + * Generated from protobuf enum TCP_PROXY = 4; + */ + const TCP_PROXY = 4; + /** + * SSL proxy load balancer. + * + * Generated from protobuf enum SSL_PROXY = 5; + */ + const SSL_PROXY = 5; + + private static $valueToName = [ + self::LOAD_BALANCER_TYPE_UNSPECIFIED => 'LOAD_BALANCER_TYPE_UNSPECIFIED', + self::INTERNAL_TCP_UDP => 'INTERNAL_TCP_UDP', + self::NETWORK_TCP_UDP => 'NETWORK_TCP_UDP', + self::HTTP_PROXY => 'HTTP_PROXY', + self::TCP_PROXY => 'TCP_PROXY', + self::SSL_PROXY => 'SSL_PROXY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LoadBalancerType::class, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo_LoadBalancerType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerType.php new file mode 100644 index 000000000000..12dcb4c5e14b --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerType.php @@ -0,0 +1,120 @@ +google.cloud.networkmanagement.v1.LoadBalancerType + */ +class LoadBalancerType +{ + /** + * Forwarding rule points to a different target than a load balancer or a + * load balancer type is unknown. + * + * Generated from protobuf enum LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + const LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + /** + * Global external HTTP(S) load balancer. + * + * Generated from protobuf enum HTTPS_ADVANCED_LOAD_BALANCER = 1; + */ + const HTTPS_ADVANCED_LOAD_BALANCER = 1; + /** + * Global external HTTP(S) load balancer (classic) + * + * Generated from protobuf enum HTTPS_LOAD_BALANCER = 2; + */ + const HTTPS_LOAD_BALANCER = 2; + /** + * Regional external HTTP(S) load balancer. + * + * Generated from protobuf enum REGIONAL_HTTPS_LOAD_BALANCER = 3; + */ + const REGIONAL_HTTPS_LOAD_BALANCER = 3; + /** + * Internal HTTP(S) load balancer. + * + * Generated from protobuf enum INTERNAL_HTTPS_LOAD_BALANCER = 4; + */ + const INTERNAL_HTTPS_LOAD_BALANCER = 4; + /** + * External SSL proxy load balancer. + * + * Generated from protobuf enum SSL_PROXY_LOAD_BALANCER = 5; + */ + const SSL_PROXY_LOAD_BALANCER = 5; + /** + * External TCP proxy load balancer. + * + * Generated from protobuf enum TCP_PROXY_LOAD_BALANCER = 6; + */ + const TCP_PROXY_LOAD_BALANCER = 6; + /** + * Internal regional TCP proxy load balancer. + * + * Generated from protobuf enum INTERNAL_TCP_PROXY_LOAD_BALANCER = 7; + */ + const INTERNAL_TCP_PROXY_LOAD_BALANCER = 7; + /** + * External TCP/UDP Network load balancer. + * + * Generated from protobuf enum NETWORK_LOAD_BALANCER = 8; + */ + const NETWORK_LOAD_BALANCER = 8; + /** + * Target-pool based external TCP/UDP Network load balancer. + * + * Generated from protobuf enum LEGACY_NETWORK_LOAD_BALANCER = 9; + */ + const LEGACY_NETWORK_LOAD_BALANCER = 9; + /** + * Internal TCP/UDP load balancer. + * + * Generated from protobuf enum TCP_UDP_INTERNAL_LOAD_BALANCER = 10; + */ + const TCP_UDP_INTERNAL_LOAD_BALANCER = 10; + + private static $valueToName = [ + self::LOAD_BALANCER_TYPE_UNSPECIFIED => 'LOAD_BALANCER_TYPE_UNSPECIFIED', + self::HTTPS_ADVANCED_LOAD_BALANCER => 'HTTPS_ADVANCED_LOAD_BALANCER', + self::HTTPS_LOAD_BALANCER => 'HTTPS_LOAD_BALANCER', + self::REGIONAL_HTTPS_LOAD_BALANCER => 'REGIONAL_HTTPS_LOAD_BALANCER', + self::INTERNAL_HTTPS_LOAD_BALANCER => 'INTERNAL_HTTPS_LOAD_BALANCER', + self::SSL_PROXY_LOAD_BALANCER => 'SSL_PROXY_LOAD_BALANCER', + self::TCP_PROXY_LOAD_BALANCER => 'TCP_PROXY_LOAD_BALANCER', + self::INTERNAL_TCP_PROXY_LOAD_BALANCER => 'INTERNAL_TCP_PROXY_LOAD_BALANCER', + self::NETWORK_LOAD_BALANCER => 'NETWORK_LOAD_BALANCER', + self::LEGACY_NETWORK_LOAD_BALANCER => 'LEGACY_NETWORK_LOAD_BALANCER', + self::TCP_UDP_INTERNAL_LOAD_BALANCER => 'TCP_UDP_INTERNAL_LOAD_BALANCER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo.php new file mode 100644 index 000000000000..c87c0106c1da --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo.php @@ -0,0 +1,517 @@ +google.cloud.networkmanagement.v1.NatInfo + */ +class NatInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Type of NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + */ + protected $type = 0; + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 2; + */ + protected $protocol = ''; + /** + * URI of the network where NAT translation takes place. + * + * Generated from protobuf field string network_uri = 3; + */ + protected $network_uri = ''; + /** + * Source IP address before NAT translation. + * + * Generated from protobuf field string old_source_ip = 4; + */ + protected $old_source_ip = ''; + /** + * Source IP address after NAT translation. + * + * Generated from protobuf field string new_source_ip = 5; + */ + protected $new_source_ip = ''; + /** + * Destination IP address before NAT translation. + * + * Generated from protobuf field string old_destination_ip = 6; + */ + protected $old_destination_ip = ''; + /** + * Destination IP address after NAT translation. + * + * Generated from protobuf field string new_destination_ip = 7; + */ + protected $new_destination_ip = ''; + /** + * Source port before NAT translation. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 old_source_port = 8; + */ + protected $old_source_port = 0; + /** + * Source port after NAT translation. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 new_source_port = 9; + */ + protected $new_source_port = 0; + /** + * Destination port before NAT translation. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 old_destination_port = 10; + */ + protected $old_destination_port = 0; + /** + * Destination port after NAT translation. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 new_destination_port = 11; + */ + protected $new_destination_port = 0; + /** + * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. + * + * Generated from protobuf field string router_uri = 12; + */ + protected $router_uri = ''; + /** + * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. + * + * Generated from protobuf field string nat_gateway_name = 13; + */ + protected $nat_gateway_name = ''; + /** + * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; + */ + protected $cloud_nat_gateway_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Type of NAT. + * @type string $protocol + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * @type string $network_uri + * URI of the network where NAT translation takes place. + * @type string $old_source_ip + * Source IP address before NAT translation. + * @type string $new_source_ip + * Source IP address after NAT translation. + * @type string $old_destination_ip + * Destination IP address before NAT translation. + * @type string $new_destination_ip + * Destination IP address after NAT translation. + * @type int $old_source_port + * Source port before NAT translation. Only valid when protocol is TCP or UDP. + * @type int $new_source_port + * Source port after NAT translation. Only valid when protocol is TCP or UDP. + * @type int $old_destination_port + * Destination port before NAT translation. Only valid when protocol is TCP or + * UDP. + * @type int $new_destination_port + * Destination port after NAT translation. Only valid when protocol is TCP or + * UDP. + * @type string $router_uri + * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. + * @type string $nat_gateway_name + * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. + * @type int $cloud_nat_gateway_type + * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Type of NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\NatInfo\Type::class); + $this->type = $var; + + return $this; + } + + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 2; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 2; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * URI of the network where NAT translation takes place. + * + * Generated from protobuf field string network_uri = 3; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of the network where NAT translation takes place. + * + * Generated from protobuf field string network_uri = 3; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * Source IP address before NAT translation. + * + * Generated from protobuf field string old_source_ip = 4; + * @return string + */ + public function getOldSourceIp() + { + return $this->old_source_ip; + } + + /** + * Source IP address before NAT translation. + * + * Generated from protobuf field string old_source_ip = 4; + * @param string $var + * @return $this + */ + public function setOldSourceIp($var) + { + GPBUtil::checkString($var, True); + $this->old_source_ip = $var; + + return $this; + } + + /** + * Source IP address after NAT translation. + * + * Generated from protobuf field string new_source_ip = 5; + * @return string + */ + public function getNewSourceIp() + { + return $this->new_source_ip; + } + + /** + * Source IP address after NAT translation. + * + * Generated from protobuf field string new_source_ip = 5; + * @param string $var + * @return $this + */ + public function setNewSourceIp($var) + { + GPBUtil::checkString($var, True); + $this->new_source_ip = $var; + + return $this; + } + + /** + * Destination IP address before NAT translation. + * + * Generated from protobuf field string old_destination_ip = 6; + * @return string + */ + public function getOldDestinationIp() + { + return $this->old_destination_ip; + } + + /** + * Destination IP address before NAT translation. + * + * Generated from protobuf field string old_destination_ip = 6; + * @param string $var + * @return $this + */ + public function setOldDestinationIp($var) + { + GPBUtil::checkString($var, True); + $this->old_destination_ip = $var; + + return $this; + } + + /** + * Destination IP address after NAT translation. + * + * Generated from protobuf field string new_destination_ip = 7; + * @return string + */ + public function getNewDestinationIp() + { + return $this->new_destination_ip; + } + + /** + * Destination IP address after NAT translation. + * + * Generated from protobuf field string new_destination_ip = 7; + * @param string $var + * @return $this + */ + public function setNewDestinationIp($var) + { + GPBUtil::checkString($var, True); + $this->new_destination_ip = $var; + + return $this; + } + + /** + * Source port before NAT translation. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 old_source_port = 8; + * @return int + */ + public function getOldSourcePort() + { + return $this->old_source_port; + } + + /** + * Source port before NAT translation. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 old_source_port = 8; + * @param int $var + * @return $this + */ + public function setOldSourcePort($var) + { + GPBUtil::checkInt32($var); + $this->old_source_port = $var; + + return $this; + } + + /** + * Source port after NAT translation. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 new_source_port = 9; + * @return int + */ + public function getNewSourcePort() + { + return $this->new_source_port; + } + + /** + * Source port after NAT translation. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 new_source_port = 9; + * @param int $var + * @return $this + */ + public function setNewSourcePort($var) + { + GPBUtil::checkInt32($var); + $this->new_source_port = $var; + + return $this; + } + + /** + * Destination port before NAT translation. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 old_destination_port = 10; + * @return int + */ + public function getOldDestinationPort() + { + return $this->old_destination_port; + } + + /** + * Destination port before NAT translation. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 old_destination_port = 10; + * @param int $var + * @return $this + */ + public function setOldDestinationPort($var) + { + GPBUtil::checkInt32($var); + $this->old_destination_port = $var; + + return $this; + } + + /** + * Destination port after NAT translation. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 new_destination_port = 11; + * @return int + */ + public function getNewDestinationPort() + { + return $this->new_destination_port; + } + + /** + * Destination port after NAT translation. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 new_destination_port = 11; + * @param int $var + * @return $this + */ + public function setNewDestinationPort($var) + { + GPBUtil::checkInt32($var); + $this->new_destination_port = $var; + + return $this; + } + + /** + * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. + * + * Generated from protobuf field string router_uri = 12; + * @return string + */ + public function getRouterUri() + { + return $this->router_uri; + } + + /** + * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. + * + * Generated from protobuf field string router_uri = 12; + * @param string $var + * @return $this + */ + public function setRouterUri($var) + { + GPBUtil::checkString($var, True); + $this->router_uri = $var; + + return $this; + } + + /** + * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. + * + * Generated from protobuf field string nat_gateway_name = 13; + * @return string + */ + public function getNatGatewayName() + { + return $this->nat_gateway_name; + } + + /** + * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. + * + * Generated from protobuf field string nat_gateway_name = 13; + * @param string $var + * @return $this + */ + public function setNatGatewayName($var) + { + GPBUtil::checkString($var, True); + $this->nat_gateway_name = $var; + + return $this; + } + + /** + * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; + * @return int + */ + public function getCloudNatGatewayType() + { + return $this->cloud_nat_gateway_type; + } + + /** + * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; + * @param int $var + * @return $this + */ + public function setCloudNatGatewayType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\NatInfo\CloudNatGatewayType::class); + $this->cloud_nat_gateway_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/CloudNatGatewayType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/CloudNatGatewayType.php new file mode 100644 index 000000000000..531cbec699ca --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/CloudNatGatewayType.php @@ -0,0 +1,85 @@ +google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType + */ +class CloudNatGatewayType +{ + /** + * Type is unspecified. + * + * Generated from protobuf enum CLOUD_NAT_GATEWAY_TYPE_UNSPECIFIED = 0; + */ + const CLOUD_NAT_GATEWAY_TYPE_UNSPECIFIED = 0; + /** + * Public NAT gateway. + * + * Generated from protobuf enum PUBLIC_NAT44 = 1; + */ + const PUBLIC_NAT44 = 1; + /** + * Public NAT64 gateway. + * + * Generated from protobuf enum PUBLIC_NAT64 = 2; + */ + const PUBLIC_NAT64 = 2; + /** + * Private NAT gateway for NCC. + * + * Generated from protobuf enum PRIVATE_NAT_NCC = 3; + */ + const PRIVATE_NAT_NCC = 3; + /** + * Private NAT gateway for hybrid connectivity. + * + * Generated from protobuf enum PRIVATE_NAT_HYBRID = 4; + */ + const PRIVATE_NAT_HYBRID = 4; + /** + * Private NAT64 gateway. + * + * Generated from protobuf enum PRIVATE_NAT64 = 5; + */ + const PRIVATE_NAT64 = 5; + + private static $valueToName = [ + self::CLOUD_NAT_GATEWAY_TYPE_UNSPECIFIED => 'CLOUD_NAT_GATEWAY_TYPE_UNSPECIFIED', + self::PUBLIC_NAT44 => 'PUBLIC_NAT44', + self::PUBLIC_NAT64 => 'PUBLIC_NAT64', + self::PRIVATE_NAT_NCC => 'PRIVATE_NAT_NCC', + self::PRIVATE_NAT_HYBRID => 'PRIVATE_NAT_HYBRID', + self::PRIVATE_NAT64 => 'PRIVATE_NAT64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CloudNatGatewayType::class, \Google\Cloud\NetworkManagement\V1\NatInfo_CloudNatGatewayType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/Type.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/Type.php new file mode 100644 index 000000000000..6d2efd3bde41 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/Type.php @@ -0,0 +1,85 @@ +google.cloud.networkmanagement.v1.NatInfo.Type + */ +class Type +{ + /** + * Type is unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * From Compute Engine instance's internal address to external address. + * + * Generated from protobuf enum INTERNAL_TO_EXTERNAL = 1; + */ + const INTERNAL_TO_EXTERNAL = 1; + /** + * From Compute Engine instance's external address to internal address. + * + * Generated from protobuf enum EXTERNAL_TO_INTERNAL = 2; + */ + const EXTERNAL_TO_INTERNAL = 2; + /** + * Cloud NAT Gateway. + * + * Generated from protobuf enum CLOUD_NAT = 3; + */ + const CLOUD_NAT = 3; + /** + * Private service connect NAT. + * + * Generated from protobuf enum PRIVATE_SERVICE_CONNECT = 4; + */ + const PRIVATE_SERVICE_CONNECT = 4; + /** + * GKE Pod IP address masquerading. + * + * Generated from protobuf enum GKE_POD_IP_MASQUERADING = 5; + */ + const GKE_POD_IP_MASQUERADING = 5; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::INTERNAL_TO_EXTERNAL => 'INTERNAL_TO_EXTERNAL', + self::EXTERNAL_TO_INTERNAL => 'EXTERNAL_TO_INTERNAL', + self::CLOUD_NAT => 'CLOUD_NAT', + self::PRIVATE_SERVICE_CONNECT => 'PRIVATE_SERVICE_CONNECT', + self::GKE_POD_IP_MASQUERADING => 'GKE_POD_IP_MASQUERADING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\NetworkManagement\V1\NatInfo_Type::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NetworkInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NetworkInfo.php new file mode 100644 index 000000000000..0c8b22a9f1ad --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NetworkInfo.php @@ -0,0 +1,203 @@ +google.cloud.networkmanagement.v1.NetworkInfo + */ +class NetworkInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a Compute Engine network. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a Compute Engine network. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * URI of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string matched_subnet_uri = 5; + */ + protected $matched_subnet_uri = ''; + /** + * The IP range of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string matched_ip_range = 4; + */ + protected $matched_ip_range = ''; + /** + * The region of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string region = 6; + */ + protected $region = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a Compute Engine network. + * @type string $uri + * URI of a Compute Engine network. + * @type string $matched_subnet_uri + * URI of the subnet matching the source IP address of the test. + * @type string $matched_ip_range + * The IP range of the subnet matching the source IP address of the test. + * @type string $region + * The region of the subnet matching the source IP address of the test. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a Compute Engine network. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a Compute Engine network. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a Compute Engine network. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a Compute Engine network. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * URI of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string matched_subnet_uri = 5; + * @return string + */ + public function getMatchedSubnetUri() + { + return $this->matched_subnet_uri; + } + + /** + * URI of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string matched_subnet_uri = 5; + * @param string $var + * @return $this + */ + public function setMatchedSubnetUri($var) + { + GPBUtil::checkString($var, True); + $this->matched_subnet_uri = $var; + + return $this; + } + + /** + * The IP range of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string matched_ip_range = 4; + * @return string + */ + public function getMatchedIpRange() + { + return $this->matched_ip_range; + } + + /** + * The IP range of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string matched_ip_range = 4; + * @param string $var + * @return $this + */ + public function setMatchedIpRange($var) + { + GPBUtil::checkString($var, True); + $this->matched_ip_range = $var; + + return $this; + } + + /** + * The region of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string region = 6; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * The region of the subnet matching the source IP address of the test. + * + * Generated from protobuf field string region = 6; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/OperationMetadata.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/OperationMetadata.php new file mode 100644 index 000000000000..c063a6d1f374 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/OperationMetadata.php @@ -0,0 +1,295 @@ +google.cloud.networkmanagement.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; + */ + protected $create_time = null; + /** + * The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + */ + protected $end_time = null; + /** + * Target of the operation - for example + * projects/project-1/locations/global/connectivityTests/test-1 + * + * Generated from protobuf field string target = 3; + */ + protected $target = ''; + /** + * Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4; + */ + protected $verb = ''; + /** + * Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 5; + */ + protected $status_detail = ''; + /** + * Specifies if cancellation was requested for the operation. + * + * Generated from protobuf field bool cancel_requested = 6; + */ + protected $cancel_requested = false; + /** + * API version. + * + * Generated from protobuf field string api_version = 7; + */ + protected $api_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * The time the operation finished running. + * @type string $target + * Target of the operation - for example + * projects/project-1/locations/global/connectivityTests/test-1 + * @type string $verb + * Name of the verb executed by the operation. + * @type string $status_detail + * Human-readable status of the operation, if any. + * @type bool $cancel_requested + * Specifies if cancellation was requested for the operation. + * @type string $api_version + * API version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); + parent::__construct($data); + } + + /** + * The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Target of the operation - for example + * projects/project-1/locations/global/connectivityTests/test-1 + * + * Generated from protobuf field string target = 3; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Target of the operation - for example + * projects/project-1/locations/global/connectivityTests/test-1 + * + * Generated from protobuf field string target = 3; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 5; + * @return string + */ + public function getStatusDetail() + { + return $this->status_detail; + } + + /** + * Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 5; + * @param string $var + * @return $this + */ + public function setStatusDetail($var) + { + GPBUtil::checkString($var, True); + $this->status_detail = $var; + + return $this; + } + + /** + * Specifies if cancellation was requested for the operation. + * + * Generated from protobuf field bool cancel_requested = 6; + * @return bool + */ + public function getCancelRequested() + { + return $this->cancel_requested; + } + + /** + * Specifies if cancellation was requested for the operation. + * + * Generated from protobuf field bool cancel_requested = 6; + * @param bool $var + * @return $this + */ + public function setCancelRequested($var) + { + GPBUtil::checkBool($var); + $this->cancel_requested = $var; + + return $this; + } + + /** + * API version. + * + * Generated from protobuf field string api_version = 7; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * API version. + * + * Generated from protobuf field string api_version = 7; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails.php new file mode 100644 index 000000000000..e89df32ab5a9 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails.php @@ -0,0 +1,485 @@ +google.cloud.networkmanagement.v1.ProbingDetails + */ +class ProbingDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The overall result of active probing. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + */ + protected $result = 0; + /** + * The time that reachability was assessed through active probing. + * + * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; + */ + protected $verify_time = null; + /** + * Details about an internal failure or the cancellation of active probing. + * + * Generated from protobuf field .google.rpc.Status error = 3; + */ + protected $error = null; + /** + * The reason probing was aborted. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + */ + protected $abort_cause = 0; + /** + * Number of probes sent. + * + * Generated from protobuf field int32 sent_probe_count = 5; + */ + protected $sent_probe_count = 0; + /** + * Number of probes that reached the destination. + * + * Generated from protobuf field int32 successful_probe_count = 6; + */ + protected $successful_probe_count = 0; + /** + * The source and destination endpoints derived from the test input and used + * for active probing. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + */ + protected $endpoint_info = null; + /** + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + */ + protected $probing_latency = null; + /** + * The EdgeLocation from which a packet, destined to the internet, will egress + * the Google network. + * This will only be populated for a connectivity test which has an internet + * destination address. + * The absence of this field *must not* be used as an indication that the + * destination is part of the Google network. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + */ + protected $destination_egress_location = null; + /** + * Probing results for all edge devices. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + */ + private $edge_responses; + /** + * Whether all relevant edge devices were probed. + * + * Generated from protobuf field bool probed_all_devices = 11; + */ + protected $probed_all_devices = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $result + * The overall result of active probing. + * @type \Google\Protobuf\Timestamp $verify_time + * The time that reachability was assessed through active probing. + * @type \Google\Rpc\Status $error + * Details about an internal failure or the cancellation of active probing. + * @type int $abort_cause + * The reason probing was aborted. + * @type int $sent_probe_count + * Number of probes sent. + * @type int $successful_probe_count + * Number of probes that reached the destination. + * @type \Google\Cloud\NetworkManagement\V1\EndpointInfo $endpoint_info + * The source and destination endpoints derived from the test input and used + * for active probing. + * @type \Google\Cloud\NetworkManagement\V1\LatencyDistribution $probing_latency + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + * @type \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation $destination_egress_location + * The EdgeLocation from which a packet, destined to the internet, will egress + * the Google network. + * This will only be populated for a connectivity test which has an internet + * destination address. + * The absence of this field *must not* be used as an indication that the + * destination is part of the Google network. + * @type array<\Google\Cloud\NetworkManagement\V1\ProbingDetails\SingleEdgeResponse>|\Google\Protobuf\Internal\RepeatedField $edge_responses + * Probing results for all edge devices. + * @type bool $probed_all_devices + * Whether all relevant edge devices were probed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * The overall result of active probing. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * @return int + */ + public function getResult() + { + return $this->result; + } + + /** + * The overall result of active probing. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * @param int $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\ProbingResult::class); + $this->result = $var; + + return $this; + } + + /** + * The time that reachability was assessed through active probing. + * + * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getVerifyTime() + { + return $this->verify_time; + } + + public function hasVerifyTime() + { + return isset($this->verify_time); + } + + public function clearVerifyTime() + { + unset($this->verify_time); + } + + /** + * The time that reachability was assessed through active probing. + * + * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setVerifyTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->verify_time = $var; + + return $this; + } + + /** + * Details about an internal failure or the cancellation of active probing. + * + * Generated from protobuf field .google.rpc.Status error = 3; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Details about an internal failure or the cancellation of active probing. + * + * Generated from protobuf field .google.rpc.Status error = 3; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error = $var; + + return $this; + } + + /** + * The reason probing was aborted. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * @return int + */ + public function getAbortCause() + { + return $this->abort_cause; + } + + /** + * The reason probing was aborted. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * @param int $var + * @return $this + */ + public function setAbortCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\ProbingAbortCause::class); + $this->abort_cause = $var; + + return $this; + } + + /** + * Number of probes sent. + * + * Generated from protobuf field int32 sent_probe_count = 5; + * @return int + */ + public function getSentProbeCount() + { + return $this->sent_probe_count; + } + + /** + * Number of probes sent. + * + * Generated from protobuf field int32 sent_probe_count = 5; + * @param int $var + * @return $this + */ + public function setSentProbeCount($var) + { + GPBUtil::checkInt32($var); + $this->sent_probe_count = $var; + + return $this; + } + + /** + * Number of probes that reached the destination. + * + * Generated from protobuf field int32 successful_probe_count = 6; + * @return int + */ + public function getSuccessfulProbeCount() + { + return $this->successful_probe_count; + } + + /** + * Number of probes that reached the destination. + * + * Generated from protobuf field int32 successful_probe_count = 6; + * @param int $var + * @return $this + */ + public function setSuccessfulProbeCount($var) + { + GPBUtil::checkInt32($var); + $this->successful_probe_count = $var; + + return $this; + } + + /** + * The source and destination endpoints derived from the test input and used + * for active probing. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * @return \Google\Cloud\NetworkManagement\V1\EndpointInfo|null + */ + public function getEndpointInfo() + { + return $this->endpoint_info; + } + + public function hasEndpointInfo() + { + return isset($this->endpoint_info); + } + + public function clearEndpointInfo() + { + unset($this->endpoint_info); + } + + /** + * The source and destination endpoints derived from the test input and used + * for active probing. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * @param \Google\Cloud\NetworkManagement\V1\EndpointInfo $var + * @return $this + */ + public function setEndpointInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\EndpointInfo::class); + $this->endpoint_info = $var; + + return $this; + } + + /** + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * @return \Google\Cloud\NetworkManagement\V1\LatencyDistribution|null + */ + public function getProbingLatency() + { + return $this->probing_latency; + } + + public function hasProbingLatency() + { + return isset($this->probing_latency); + } + + public function clearProbingLatency() + { + unset($this->probing_latency); + } + + /** + * Latency as measured by active probing in one direction: + * from the source to the destination endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * @param \Google\Cloud\NetworkManagement\V1\LatencyDistribution $var + * @return $this + */ + public function setProbingLatency($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\LatencyDistribution::class); + $this->probing_latency = $var; + + return $this; + } + + /** + * The EdgeLocation from which a packet, destined to the internet, will egress + * the Google network. + * This will only be populated for a connectivity test which has an internet + * destination address. + * The absence of this field *must not* be used as an indication that the + * destination is part of the Google network. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * @return \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation|null + */ + public function getDestinationEgressLocation() + { + return $this->destination_egress_location; + } + + public function hasDestinationEgressLocation() + { + return isset($this->destination_egress_location); + } + + public function clearDestinationEgressLocation() + { + unset($this->destination_egress_location); + } + + /** + * The EdgeLocation from which a packet, destined to the internet, will egress + * the Google network. + * This will only be populated for a connectivity test which has an internet + * destination address. + * The absence of this field *must not* be used as an indication that the + * destination is part of the Google network. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * @param \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation $var + * @return $this + */ + public function setDestinationEgressLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation::class); + $this->destination_egress_location = $var; + + return $this; + } + + /** + * Probing results for all edge devices. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEdgeResponses() + { + return $this->edge_responses; + } + + /** + * Probing results for all edge devices. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * @param array<\Google\Cloud\NetworkManagement\V1\ProbingDetails\SingleEdgeResponse>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEdgeResponses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\ProbingDetails\SingleEdgeResponse::class); + $this->edge_responses = $arr; + + return $this; + } + + /** + * Whether all relevant edge devices were probed. + * + * Generated from protobuf field bool probed_all_devices = 11; + * @return bool + */ + public function getProbedAllDevices() + { + return $this->probed_all_devices; + } + + /** + * Whether all relevant edge devices were probed. + * + * Generated from protobuf field bool probed_all_devices = 11; + * @param bool $var + * @return $this + */ + public function setProbedAllDevices($var) + { + GPBUtil::checkBool($var); + $this->probed_all_devices = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/EdgeLocation.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/EdgeLocation.php new file mode 100644 index 000000000000..b2c41ea9e303 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/EdgeLocation.php @@ -0,0 +1,71 @@ +google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + */ +class EdgeLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the metropolitan area. + * + * Generated from protobuf field string metropolitan_area = 1; + */ + protected $metropolitan_area = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metropolitan_area + * Name of the metropolitan area. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * Name of the metropolitan area. + * + * Generated from protobuf field string metropolitan_area = 1; + * @return string + */ + public function getMetropolitanArea() + { + return $this->metropolitan_area; + } + + /** + * Name of the metropolitan area. + * + * Generated from protobuf field string metropolitan_area = 1; + * @param string $var + * @return $this + */ + public function setMetropolitanArea($var) + { + GPBUtil::checkString($var, True); + $this->metropolitan_area = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EdgeLocation::class, \Google\Cloud\NetworkManagement\V1\ProbingDetails_EdgeLocation::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingAbortCause.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingAbortCause.php new file mode 100644 index 000000000000..a35527cc41eb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingAbortCause.php @@ -0,0 +1,65 @@ +google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause + */ +class ProbingAbortCause +{ + /** + * No reason was specified. + * + * Generated from protobuf enum PROBING_ABORT_CAUSE_UNSPECIFIED = 0; + */ + const PROBING_ABORT_CAUSE_UNSPECIFIED = 0; + /** + * The user lacks permission to access some of the + * network resources required to run the test. + * + * Generated from protobuf enum PERMISSION_DENIED = 1; + */ + const PERMISSION_DENIED = 1; + /** + * No valid source endpoint could be derived from the request. + * + * Generated from protobuf enum NO_SOURCE_LOCATION = 2; + */ + const NO_SOURCE_LOCATION = 2; + + private static $valueToName = [ + self::PROBING_ABORT_CAUSE_UNSPECIFIED => 'PROBING_ABORT_CAUSE_UNSPECIFIED', + self::PERMISSION_DENIED => 'PERMISSION_DENIED', + self::NO_SOURCE_LOCATION => 'NO_SOURCE_LOCATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProbingAbortCause::class, \Google\Cloud\NetworkManagement\V1\ProbingDetails_ProbingAbortCause::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingResult.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingResult.php new file mode 100644 index 000000000000..567ea2be878f --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingResult.php @@ -0,0 +1,82 @@ +google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult + */ +class ProbingResult +{ + /** + * No result was specified. + * + * Generated from protobuf enum PROBING_RESULT_UNSPECIFIED = 0; + */ + const PROBING_RESULT_UNSPECIFIED = 0; + /** + * At least 95% of packets reached the destination. + * + * Generated from protobuf enum REACHABLE = 1; + */ + const REACHABLE = 1; + /** + * No packets reached the destination. + * + * Generated from protobuf enum UNREACHABLE = 2; + */ + const UNREACHABLE = 2; + /** + * Less than 95% of packets reached the destination. + * + * Generated from protobuf enum REACHABILITY_INCONSISTENT = 3; + */ + const REACHABILITY_INCONSISTENT = 3; + /** + * Reachability could not be determined. Possible reasons are: + * * The user lacks permission to access some of the network resources + * required to run the test. + * * No valid source endpoint could be derived from the request. + * * An internal error occurred. + * + * Generated from protobuf enum UNDETERMINED = 4; + */ + const UNDETERMINED = 4; + + private static $valueToName = [ + self::PROBING_RESULT_UNSPECIFIED => 'PROBING_RESULT_UNSPECIFIED', + self::REACHABLE => 'REACHABLE', + self::UNREACHABLE => 'UNREACHABLE', + self::REACHABILITY_INCONSISTENT => 'REACHABILITY_INCONSISTENT', + self::UNDETERMINED => 'UNDETERMINED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProbingResult::class, \Google\Cloud\NetworkManagement\V1\ProbingDetails_ProbingResult::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/SingleEdgeResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/SingleEdgeResponse.php new file mode 100644 index 000000000000..868212d38d1f --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/SingleEdgeResponse.php @@ -0,0 +1,288 @@ +google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + */ +class SingleEdgeResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The overall result of active probing for this egress device. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + */ + protected $result = 0; + /** + * Number of probes sent. + * + * Generated from protobuf field int32 sent_probe_count = 2; + */ + protected $sent_probe_count = 0; + /** + * Number of probes that reached the destination. + * + * Generated from protobuf field int32 successful_probe_count = 3; + */ + protected $successful_probe_count = 0; + /** + * Latency as measured by active probing in one direction: from the source + * to the destination endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + protected $probing_latency = null; + /** + * The EdgeLocation from which a packet, destined to the internet, will + * egress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination address. + * The absence of this field *must not* be used as an indication that the + * destination is part of the Google network. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + */ + protected $destination_egress_location = null; + /** + * Router name in the format '{router}.{metroshard}'. For example: + * pf01.aaa01, pr02.aaa01. + * + * Generated from protobuf field string destination_router = 6; + */ + protected $destination_router = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $result + * The overall result of active probing for this egress device. + * @type int $sent_probe_count + * Number of probes sent. + * @type int $successful_probe_count + * Number of probes that reached the destination. + * @type \Google\Cloud\NetworkManagement\V1\LatencyDistribution $probing_latency + * Latency as measured by active probing in one direction: from the source + * to the destination endpoint. + * @type \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation $destination_egress_location + * The EdgeLocation from which a packet, destined to the internet, will + * egress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination address. + * The absence of this field *must not* be used as an indication that the + * destination is part of the Google network. + * @type string $destination_router + * Router name in the format '{router}.{metroshard}'. For example: + * pf01.aaa01, pr02.aaa01. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * The overall result of active probing for this egress device. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * @return int + */ + public function getResult() + { + return $this->result; + } + + /** + * The overall result of active probing for this egress device. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * @param int $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\ProbingResult::class); + $this->result = $var; + + return $this; + } + + /** + * Number of probes sent. + * + * Generated from protobuf field int32 sent_probe_count = 2; + * @return int + */ + public function getSentProbeCount() + { + return $this->sent_probe_count; + } + + /** + * Number of probes sent. + * + * Generated from protobuf field int32 sent_probe_count = 2; + * @param int $var + * @return $this + */ + public function setSentProbeCount($var) + { + GPBUtil::checkInt32($var); + $this->sent_probe_count = $var; + + return $this; + } + + /** + * Number of probes that reached the destination. + * + * Generated from protobuf field int32 successful_probe_count = 3; + * @return int + */ + public function getSuccessfulProbeCount() + { + return $this->successful_probe_count; + } + + /** + * Number of probes that reached the destination. + * + * Generated from protobuf field int32 successful_probe_count = 3; + * @param int $var + * @return $this + */ + public function setSuccessfulProbeCount($var) + { + GPBUtil::checkInt32($var); + $this->successful_probe_count = $var; + + return $this; + } + + /** + * Latency as measured by active probing in one direction: from the source + * to the destination endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + * @return \Google\Cloud\NetworkManagement\V1\LatencyDistribution|null + */ + public function getProbingLatency() + { + return $this->probing_latency; + } + + public function hasProbingLatency() + { + return isset($this->probing_latency); + } + + public function clearProbingLatency() + { + unset($this->probing_latency); + } + + /** + * Latency as measured by active probing in one direction: from the source + * to the destination endpoint. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + * @param \Google\Cloud\NetworkManagement\V1\LatencyDistribution $var + * @return $this + */ + public function setProbingLatency($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\LatencyDistribution::class); + $this->probing_latency = $var; + + return $this; + } + + /** + * The EdgeLocation from which a packet, destined to the internet, will + * egress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination address. + * The absence of this field *must not* be used as an indication that the + * destination is part of the Google network. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * @return \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation|null + */ + public function getDestinationEgressLocation() + { + return $this->destination_egress_location; + } + + public function hasDestinationEgressLocation() + { + return isset($this->destination_egress_location); + } + + public function clearDestinationEgressLocation() + { + unset($this->destination_egress_location); + } + + /** + * The EdgeLocation from which a packet, destined to the internet, will + * egress the Google network. + * This will only be populated for a connectivity test which has an internet + * destination address. + * The absence of this field *must not* be used as an indication that the + * destination is part of the Google network. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * @param \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation $var + * @return $this + */ + public function setDestinationEgressLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation::class); + $this->destination_egress_location = $var; + + return $this; + } + + /** + * Router name in the format '{router}.{metroshard}'. For example: + * pf01.aaa01, pr02.aaa01. + * + * Generated from protobuf field string destination_router = 6; + * @return string + */ + public function getDestinationRouter() + { + return $this->destination_router; + } + + /** + * Router name in the format '{router}.{metroshard}'. For example: + * pf01.aaa01, pr02.aaa01. + * + * Generated from protobuf field string destination_router = 6; + * @param string $var + * @return $this + */ + public function setDestinationRouter($var) + { + GPBUtil::checkString($var, True); + $this->destination_router = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SingleEdgeResponse::class, \Google\Cloud\NetworkManagement\V1\ProbingDetails_SingleEdgeResponse::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProxyConnectionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProxyConnectionInfo.php new file mode 100644 index 000000000000..feb1c10943c7 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProxyConnectionInfo.php @@ -0,0 +1,419 @@ +google.cloud.networkmanagement.v1.ProxyConnectionInfo + */ +class ProxyConnectionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 1; + */ + protected $protocol = ''; + /** + * Source IP address of an original connection. + * + * Generated from protobuf field string old_source_ip = 2; + */ + protected $old_source_ip = ''; + /** + * Source IP address of a new connection. + * + * Generated from protobuf field string new_source_ip = 3; + */ + protected $new_source_ip = ''; + /** + * Destination IP address of an original connection + * + * Generated from protobuf field string old_destination_ip = 4; + */ + protected $old_destination_ip = ''; + /** + * Destination IP address of a new connection. + * + * Generated from protobuf field string new_destination_ip = 5; + */ + protected $new_destination_ip = ''; + /** + * Source port of an original connection. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 old_source_port = 6; + */ + protected $old_source_port = 0; + /** + * Source port of a new connection. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 new_source_port = 7; + */ + protected $new_source_port = 0; + /** + * Destination port of an original connection. Only valid when protocol is TCP + * or UDP. + * + * Generated from protobuf field int32 old_destination_port = 8; + */ + protected $old_destination_port = 0; + /** + * Destination port of a new connection. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 new_destination_port = 9; + */ + protected $new_destination_port = 0; + /** + * Uri of proxy subnet. + * + * Generated from protobuf field string subnet_uri = 10; + */ + protected $subnet_uri = ''; + /** + * URI of the network where connection is proxied. + * + * Generated from protobuf field string network_uri = 11; + */ + protected $network_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $protocol + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * @type string $old_source_ip + * Source IP address of an original connection. + * @type string $new_source_ip + * Source IP address of a new connection. + * @type string $old_destination_ip + * Destination IP address of an original connection + * @type string $new_destination_ip + * Destination IP address of a new connection. + * @type int $old_source_port + * Source port of an original connection. Only valid when protocol is TCP or + * UDP. + * @type int $new_source_port + * Source port of a new connection. Only valid when protocol is TCP or UDP. + * @type int $old_destination_port + * Destination port of an original connection. Only valid when protocol is TCP + * or UDP. + * @type int $new_destination_port + * Destination port of a new connection. Only valid when protocol is TCP or + * UDP. + * @type string $subnet_uri + * Uri of proxy subnet. + * @type string $network_uri + * URI of the network where connection is proxied. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 1; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * IP protocol in string format, for example: "TCP", "UDP", "ICMP". + * + * Generated from protobuf field string protocol = 1; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * Source IP address of an original connection. + * + * Generated from protobuf field string old_source_ip = 2; + * @return string + */ + public function getOldSourceIp() + { + return $this->old_source_ip; + } + + /** + * Source IP address of an original connection. + * + * Generated from protobuf field string old_source_ip = 2; + * @param string $var + * @return $this + */ + public function setOldSourceIp($var) + { + GPBUtil::checkString($var, True); + $this->old_source_ip = $var; + + return $this; + } + + /** + * Source IP address of a new connection. + * + * Generated from protobuf field string new_source_ip = 3; + * @return string + */ + public function getNewSourceIp() + { + return $this->new_source_ip; + } + + /** + * Source IP address of a new connection. + * + * Generated from protobuf field string new_source_ip = 3; + * @param string $var + * @return $this + */ + public function setNewSourceIp($var) + { + GPBUtil::checkString($var, True); + $this->new_source_ip = $var; + + return $this; + } + + /** + * Destination IP address of an original connection + * + * Generated from protobuf field string old_destination_ip = 4; + * @return string + */ + public function getOldDestinationIp() + { + return $this->old_destination_ip; + } + + /** + * Destination IP address of an original connection + * + * Generated from protobuf field string old_destination_ip = 4; + * @param string $var + * @return $this + */ + public function setOldDestinationIp($var) + { + GPBUtil::checkString($var, True); + $this->old_destination_ip = $var; + + return $this; + } + + /** + * Destination IP address of a new connection. + * + * Generated from protobuf field string new_destination_ip = 5; + * @return string + */ + public function getNewDestinationIp() + { + return $this->new_destination_ip; + } + + /** + * Destination IP address of a new connection. + * + * Generated from protobuf field string new_destination_ip = 5; + * @param string $var + * @return $this + */ + public function setNewDestinationIp($var) + { + GPBUtil::checkString($var, True); + $this->new_destination_ip = $var; + + return $this; + } + + /** + * Source port of an original connection. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 old_source_port = 6; + * @return int + */ + public function getOldSourcePort() + { + return $this->old_source_port; + } + + /** + * Source port of an original connection. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 old_source_port = 6; + * @param int $var + * @return $this + */ + public function setOldSourcePort($var) + { + GPBUtil::checkInt32($var); + $this->old_source_port = $var; + + return $this; + } + + /** + * Source port of a new connection. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 new_source_port = 7; + * @return int + */ + public function getNewSourcePort() + { + return $this->new_source_port; + } + + /** + * Source port of a new connection. Only valid when protocol is TCP or UDP. + * + * Generated from protobuf field int32 new_source_port = 7; + * @param int $var + * @return $this + */ + public function setNewSourcePort($var) + { + GPBUtil::checkInt32($var); + $this->new_source_port = $var; + + return $this; + } + + /** + * Destination port of an original connection. Only valid when protocol is TCP + * or UDP. + * + * Generated from protobuf field int32 old_destination_port = 8; + * @return int + */ + public function getOldDestinationPort() + { + return $this->old_destination_port; + } + + /** + * Destination port of an original connection. Only valid when protocol is TCP + * or UDP. + * + * Generated from protobuf field int32 old_destination_port = 8; + * @param int $var + * @return $this + */ + public function setOldDestinationPort($var) + { + GPBUtil::checkInt32($var); + $this->old_destination_port = $var; + + return $this; + } + + /** + * Destination port of a new connection. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 new_destination_port = 9; + * @return int + */ + public function getNewDestinationPort() + { + return $this->new_destination_port; + } + + /** + * Destination port of a new connection. Only valid when protocol is TCP or + * UDP. + * + * Generated from protobuf field int32 new_destination_port = 9; + * @param int $var + * @return $this + */ + public function setNewDestinationPort($var) + { + GPBUtil::checkInt32($var); + $this->new_destination_port = $var; + + return $this; + } + + /** + * Uri of proxy subnet. + * + * Generated from protobuf field string subnet_uri = 10; + * @return string + */ + public function getSubnetUri() + { + return $this->subnet_uri; + } + + /** + * Uri of proxy subnet. + * + * Generated from protobuf field string subnet_uri = 10; + * @param string $var + * @return $this + */ + public function setSubnetUri($var) + { + GPBUtil::checkString($var, True); + $this->subnet_uri = $var; + + return $this; + } + + /** + * URI of the network where connection is proxied. + * + * Generated from protobuf field string network_uri = 11; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of the network where connection is proxied. + * + * Generated from protobuf field string network_uri = 11; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsRequest.php new file mode 100644 index 000000000000..d2fd965b10ac --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsRequest.php @@ -0,0 +1,185 @@ +google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + */ +class QueryOrgVpcFlowLogsConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the VpcFlowLogsConfig, specified in + * the following format: `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Number of `VpcFlowLogsConfigs` to return. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + * A filter expression must use the supported [CEL logic operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the VpcFlowLogsConfig, specified in + * the following format: `projects/{project_id}/locations/global` + * @type int $page_size + * Optional. Number of `VpcFlowLogsConfigs` to return. + * @type string $page_token + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * @type string $filter + * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + * A filter expression must use the supported [CEL logic operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the VpcFlowLogsConfig, specified in + * the following format: `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource of the VpcFlowLogsConfig, specified in + * the following format: `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Number of `VpcFlowLogsConfigs` to return. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Number of `VpcFlowLogsConfigs` to return. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + * A filter expression must use the supported [CEL logic operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + * A filter expression must use the supported [CEL logic operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsResponse.php new file mode 100644 index 000000000000..67c0df952643 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsResponse.php @@ -0,0 +1,135 @@ +google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + */ +class QueryOrgVpcFlowLogsConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of VPC Flow Log configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + */ + private $vpc_flow_logs_configs; + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $vpc_flow_logs_configs + * List of VPC Flow Log configurations. + * @type string $next_page_token + * Page token to fetch the next set of configurations. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached (when querying all locations with `-`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * List of VPC Flow Log configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVpcFlowLogsConfigs() + { + return $this->vpc_flow_logs_configs; + } + + /** + * List of VPC Flow Log configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * @param array<\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVpcFlowLogsConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig::class); + $this->vpc_flow_logs_configs = $arr; + + return $this; + } + + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails.php new file mode 100644 index 000000000000..487aecd9228d --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails.php @@ -0,0 +1,197 @@ +google.cloud.networkmanagement.v1.ReachabilityDetails + */ +class ReachabilityDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The overall result of the test's configuration analysis. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails.Result result = 1; + */ + protected $result = 0; + /** + * The time of the configuration analysis. + * + * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; + */ + protected $verify_time = null; + /** + * The details of a failure or a cancellation of reachability analysis. + * + * Generated from protobuf field .google.rpc.Status error = 3; + */ + protected $error = null; + /** + * Result may contain a list of traces if a test has multiple possible + * paths in the network, such as when destination endpoint is a load balancer + * with multiple backends. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Trace traces = 5; + */ + private $traces; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $result + * The overall result of the test's configuration analysis. + * @type \Google\Protobuf\Timestamp $verify_time + * The time of the configuration analysis. + * @type \Google\Rpc\Status $error + * The details of a failure or a cancellation of reachability analysis. + * @type array<\Google\Cloud\NetworkManagement\V1\Trace>|\Google\Protobuf\Internal\RepeatedField $traces + * Result may contain a list of traces if a test has multiple possible + * paths in the network, such as when destination endpoint is a load balancer + * with multiple backends. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); + parent::__construct($data); + } + + /** + * The overall result of the test's configuration analysis. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails.Result result = 1; + * @return int + */ + public function getResult() + { + return $this->result; + } + + /** + * The overall result of the test's configuration analysis. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails.Result result = 1; + * @param int $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ReachabilityDetails\Result::class); + $this->result = $var; + + return $this; + } + + /** + * The time of the configuration analysis. + * + * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getVerifyTime() + { + return $this->verify_time; + } + + public function hasVerifyTime() + { + return isset($this->verify_time); + } + + public function clearVerifyTime() + { + unset($this->verify_time); + } + + /** + * The time of the configuration analysis. + * + * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setVerifyTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->verify_time = $var; + + return $this; + } + + /** + * The details of a failure or a cancellation of reachability analysis. + * + * Generated from protobuf field .google.rpc.Status error = 3; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * The details of a failure or a cancellation of reachability analysis. + * + * Generated from protobuf field .google.rpc.Status error = 3; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error = $var; + + return $this; + } + + /** + * Result may contain a list of traces if a test has multiple possible + * paths in the network, such as when destination endpoint is a load balancer + * with multiple backends. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Trace traces = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTraces() + { + return $this->traces; + } + + /** + * Result may contain a list of traces if a test has multiple possible + * paths in the network, such as when destination endpoint is a load balancer + * with multiple backends. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Trace traces = 5; + * @param array<\Google\Cloud\NetworkManagement\V1\Trace>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTraces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\Trace::class); + $this->traces = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails/Result.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails/Result.php new file mode 100644 index 000000000000..5b4ca4a91831 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails/Result.php @@ -0,0 +1,94 @@ +google.cloud.networkmanagement.v1.ReachabilityDetails.Result + */ +class Result +{ + /** + * No result was specified. + * + * Generated from protobuf enum RESULT_UNSPECIFIED = 0; + */ + const RESULT_UNSPECIFIED = 0; + /** + * Possible scenarios are: + * * The configuration analysis determined that a packet originating from + * the source is expected to reach the destination. + * * The analysis didn't complete because the user lacks permission for + * some of the resources in the trace. However, at the time the user's + * permission became insufficient, the trace had been successful so far. + * + * Generated from protobuf enum REACHABLE = 1; + */ + const REACHABLE = 1; + /** + * A packet originating from the source is expected to be dropped before + * reaching the destination. + * + * Generated from protobuf enum UNREACHABLE = 2; + */ + const UNREACHABLE = 2; + /** + * The source and destination endpoints do not uniquely identify + * the test location in the network, and the reachability result contains + * multiple traces. For some traces, a packet could be delivered, and for + * others, it would not be. This result is also assigned to + * configuration analysis of return path if on its own it should be + * REACHABLE, but configuration analysis of forward path is AMBIGUOUS. + * + * Generated from protobuf enum AMBIGUOUS = 4; + */ + const AMBIGUOUS = 4; + /** + * The configuration analysis did not complete. Possible reasons are: + * * A permissions error occurred--for example, the user might not have + * read permission for all of the resources named in the test. + * * An internal error occurred. + * * The analyzer received an invalid or unsupported argument or was unable + * to identify a known endpoint. + * + * Generated from protobuf enum UNDETERMINED = 5; + */ + const UNDETERMINED = 5; + + private static $valueToName = [ + self::RESULT_UNSPECIFIED => 'RESULT_UNSPECIFIED', + self::REACHABLE => 'REACHABLE', + self::UNREACHABLE => 'UNREACHABLE', + self::AMBIGUOUS => 'AMBIGUOUS', + self::UNDETERMINED => 'UNDETERMINED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Result::class, \Google\Cloud\NetworkManagement\V1\ReachabilityDetails_Result::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisClusterInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisClusterInfo.php new file mode 100644 index 000000000000..ed64842b8cbd --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisClusterInfo.php @@ -0,0 +1,249 @@ +google.cloud.networkmanagement.v1.RedisClusterInfo + */ +class RedisClusterInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a Redis Cluster. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a Redis Cluster in format + * "projects/{project_id}/locations/{location}/clusters/{cluster_id}" + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * URI of the network containing the Redis Cluster endpoints in format + * "projects/{project_id}/global/networks/{network_id}". + * + * Generated from protobuf field string network_uri = 3; + */ + protected $network_uri = ''; + /** + * Discovery endpoint IP address of a Redis Cluster. + * + * Generated from protobuf field string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { + */ + protected $discovery_endpoint_ip_address = ''; + /** + * Secondary endpoint IP address of a Redis Cluster. + * + * Generated from protobuf field string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { + */ + protected $secondary_endpoint_ip_address = ''; + /** + * Name of the region in which the Redis Cluster is defined. For example, + * "us-central1". + * + * Generated from protobuf field string location = 6; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a Redis Cluster. + * @type string $uri + * URI of a Redis Cluster in format + * "projects/{project_id}/locations/{location}/clusters/{cluster_id}" + * @type string $network_uri + * URI of the network containing the Redis Cluster endpoints in format + * "projects/{project_id}/global/networks/{network_id}". + * @type string $discovery_endpoint_ip_address + * Discovery endpoint IP address of a Redis Cluster. + * @type string $secondary_endpoint_ip_address + * Secondary endpoint IP address of a Redis Cluster. + * @type string $location + * Name of the region in which the Redis Cluster is defined. For example, + * "us-central1". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a Redis Cluster. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a Redis Cluster. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a Redis Cluster in format + * "projects/{project_id}/locations/{location}/clusters/{cluster_id}" + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a Redis Cluster in format + * "projects/{project_id}/locations/{location}/clusters/{cluster_id}" + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * URI of the network containing the Redis Cluster endpoints in format + * "projects/{project_id}/global/networks/{network_id}". + * + * Generated from protobuf field string network_uri = 3; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of the network containing the Redis Cluster endpoints in format + * "projects/{project_id}/global/networks/{network_id}". + * + * Generated from protobuf field string network_uri = 3; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * Discovery endpoint IP address of a Redis Cluster. + * + * Generated from protobuf field string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { + * @return string + */ + public function getDiscoveryEndpointIpAddress() + { + return $this->discovery_endpoint_ip_address; + } + + /** + * Discovery endpoint IP address of a Redis Cluster. + * + * Generated from protobuf field string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setDiscoveryEndpointIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->discovery_endpoint_ip_address = $var; + + return $this; + } + + /** + * Secondary endpoint IP address of a Redis Cluster. + * + * Generated from protobuf field string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { + * @return string + */ + public function getSecondaryEndpointIpAddress() + { + return $this->secondary_endpoint_ip_address; + } + + /** + * Secondary endpoint IP address of a Redis Cluster. + * + * Generated from protobuf field string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setSecondaryEndpointIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->secondary_endpoint_ip_address = $var; + + return $this; + } + + /** + * Name of the region in which the Redis Cluster is defined. For example, + * "us-central1". + * + * Generated from protobuf field string location = 6; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Name of the region in which the Redis Cluster is defined. For example, + * "us-central1". + * + * Generated from protobuf field string location = 6; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisInstanceInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisInstanceInfo.php new file mode 100644 index 000000000000..7e8a8f9bf987 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisInstanceInfo.php @@ -0,0 +1,237 @@ +google.cloud.networkmanagement.v1.RedisInstanceInfo + */ +class RedisInstanceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a Cloud Redis Instance. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a Cloud Redis Instance. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * URI of a Cloud Redis Instance network. + * + * Generated from protobuf field string network_uri = 3; + */ + protected $network_uri = ''; + /** + * Primary endpoint IP address of a Cloud Redis Instance. + * + * Generated from protobuf field string primary_endpoint_ip = 4; + */ + protected $primary_endpoint_ip = ''; + /** + * Read endpoint IP address of a Cloud Redis Instance (if applicable). + * + * Generated from protobuf field string read_endpoint_ip = 5; + */ + protected $read_endpoint_ip = ''; + /** + * Region in which the Cloud Redis Instance is defined. + * + * Generated from protobuf field string region = 6; + */ + protected $region = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a Cloud Redis Instance. + * @type string $uri + * URI of a Cloud Redis Instance. + * @type string $network_uri + * URI of a Cloud Redis Instance network. + * @type string $primary_endpoint_ip + * Primary endpoint IP address of a Cloud Redis Instance. + * @type string $read_endpoint_ip + * Read endpoint IP address of a Cloud Redis Instance (if applicable). + * @type string $region + * Region in which the Cloud Redis Instance is defined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a Cloud Redis Instance. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a Cloud Redis Instance. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a Cloud Redis Instance. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a Cloud Redis Instance. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * URI of a Cloud Redis Instance network. + * + * Generated from protobuf field string network_uri = 3; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of a Cloud Redis Instance network. + * + * Generated from protobuf field string network_uri = 3; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * Primary endpoint IP address of a Cloud Redis Instance. + * + * Generated from protobuf field string primary_endpoint_ip = 4; + * @return string + */ + public function getPrimaryEndpointIp() + { + return $this->primary_endpoint_ip; + } + + /** + * Primary endpoint IP address of a Cloud Redis Instance. + * + * Generated from protobuf field string primary_endpoint_ip = 4; + * @param string $var + * @return $this + */ + public function setPrimaryEndpointIp($var) + { + GPBUtil::checkString($var, True); + $this->primary_endpoint_ip = $var; + + return $this; + } + + /** + * Read endpoint IP address of a Cloud Redis Instance (if applicable). + * + * Generated from protobuf field string read_endpoint_ip = 5; + * @return string + */ + public function getReadEndpointIp() + { + return $this->read_endpoint_ip; + } + + /** + * Read endpoint IP address of a Cloud Redis Instance (if applicable). + * + * Generated from protobuf field string read_endpoint_ip = 5; + * @param string $var + * @return $this + */ + public function setReadEndpointIp($var) + { + GPBUtil::checkString($var, True); + $this->read_endpoint_ip = $var; + + return $this; + } + + /** + * Region in which the Cloud Redis Instance is defined. + * + * Generated from protobuf field string region = 6; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Region in which the Cloud Redis Instance is defined. + * + * Generated from protobuf field string region = 6; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RerunConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RerunConnectivityTestRequest.php new file mode 100644 index 000000000000..6a28cefac964 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RerunConnectivityTestRequest.php @@ -0,0 +1,71 @@ +google.cloud.networkmanagement.v1.RerunConnectivityTestRequest + */ +class RerunConnectivityTestRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); + parent::__construct($data); + } + + /** + * Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo.php new file mode 100644 index 000000000000..8d676cc45a4d --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo.php @@ -0,0 +1,978 @@ +google.cloud.networkmanagement.v1.RouteInfo + */ +class RouteInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Type of route. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8; + */ + protected $route_type = 0; + /** + * Type of next hop. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9; + */ + protected $next_hop_type = 0; + /** + * Indicates where route is applicable. Deprecated, routes with NCC_HUB scope + * are not included in the trace in new tests. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14 [deprecated = true]; + * @deprecated + */ + protected $route_scope = 0; + /** + * Name of a route. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) + * and POLICY_BASED routes only. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED + * routes only. If set for POLICY_BASED route, this is a region of VLAN + * attachments for Cloud Interconnect the route applies to. + * + * Generated from protobuf field string region = 19; + */ + protected $region = ''; + /** + * Destination IP range of the route. + * + * Generated from protobuf field string dest_ip_range = 3; + */ + protected $dest_ip_range = ''; + /** + * String type of the next hop of the route (for example, "VPN tunnel"). + * Deprecated in favor of the next_hop_type and next_hop_uri fields, not used + * in new tests. + * + * Generated from protobuf field string next_hop = 4 [deprecated = true]; + * @deprecated + */ + protected $next_hop = ''; + /** + * URI of a VPC network where route is located. + * + * Generated from protobuf field string network_uri = 5; + */ + protected $network_uri = ''; + /** + * Priority of the route. + * + * Generated from protobuf field int32 priority = 6; + */ + protected $priority = 0; + /** + * Instance tags of the route. + * + * Generated from protobuf field repeated string instance_tags = 7; + */ + private $instance_tags; + /** + * Source IP address range of the route. POLICY_BASED routes only. + * + * Generated from protobuf field string src_ip_range = 10; + */ + protected $src_ip_range = ''; + /** + * Destination port ranges of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string dest_port_ranges = 11; + */ + private $dest_port_ranges; + /** + * Source port ranges of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string src_port_ranges = 12; + */ + private $src_port_ranges; + /** + * Protocols of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string protocols = 13; + */ + private $protocols; + /** + * URI of the NCC Hub the route is advertised by. PEERING_SUBNET and + * PEERING_DYNAMIC routes that are advertised by NCC Hub only. + * + * Generated from protobuf field optional string ncc_hub_uri = 15; + */ + protected $ncc_hub_uri = null; + /** + * URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes + * that are advertised by NCC Hub only. + * + * Generated from protobuf field optional string ncc_spoke_uri = 16; + */ + protected $ncc_spoke_uri = null; + /** + * For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised + * the corresponding IP prefix. + * + * Generated from protobuf field optional string advertised_route_source_router_uri = 17; + */ + protected $advertised_route_source_router_uri = null; + /** + * For ADVERTISED routes, the URI of their next hop, i.e. the URI of the + * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) + * the advertised prefix is advertised through, or URI of the source peered + * network. Deprecated in favor of the next_hop_uri field, not used in new + * tests. + * + * Generated from protobuf field optional string advertised_route_next_hop_uri = 18 [deprecated = true]; + * @deprecated + */ + protected $advertised_route_next_hop_uri = null; + /** + * URI of the next hop resource. + * + * Generated from protobuf field string next_hop_uri = 20; + */ + protected $next_hop_uri = ''; + /** + * URI of a VPC network where the next hop resource is located. + * + * Generated from protobuf field string next_hop_network_uri = 21; + */ + protected $next_hop_network_uri = ''; + /** + * For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating + * SUBNET/STATIC route. + * + * Generated from protobuf field string originating_route_uri = 22; + */ + protected $originating_route_uri = ''; + /** + * For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of + * the originating SUBNET/STATIC/DYNAMIC route. + * + * Generated from protobuf field string originating_route_display_name = 23; + */ + protected $originating_route_display_name = ''; + /** + * For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC + * Hub, the URI of the corresponding route in NCC Hub's routing table. + * + * Generated from protobuf field string ncc_hub_route_uri = 24; + */ + protected $ncc_hub_route_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $route_type + * Type of route. + * @type int $next_hop_type + * Type of next hop. + * @type int $route_scope + * Indicates where route is applicable. Deprecated, routes with NCC_HUB scope + * are not included in the trace in new tests. + * @type string $display_name + * Name of a route. + * @type string $uri + * URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) + * and POLICY_BASED routes only. + * @type string $region + * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED + * routes only. If set for POLICY_BASED route, this is a region of VLAN + * attachments for Cloud Interconnect the route applies to. + * @type string $dest_ip_range + * Destination IP range of the route. + * @type string $next_hop + * String type of the next hop of the route (for example, "VPN tunnel"). + * Deprecated in favor of the next_hop_type and next_hop_uri fields, not used + * in new tests. + * @type string $network_uri + * URI of a VPC network where route is located. + * @type int $priority + * Priority of the route. + * @type array|\Google\Protobuf\Internal\RepeatedField $instance_tags + * Instance tags of the route. + * @type string $src_ip_range + * Source IP address range of the route. POLICY_BASED routes only. + * @type array|\Google\Protobuf\Internal\RepeatedField $dest_port_ranges + * Destination port ranges of the route. POLICY_BASED routes only. + * @type array|\Google\Protobuf\Internal\RepeatedField $src_port_ranges + * Source port ranges of the route. POLICY_BASED routes only. + * @type array|\Google\Protobuf\Internal\RepeatedField $protocols + * Protocols of the route. POLICY_BASED routes only. + * @type string $ncc_hub_uri + * URI of the NCC Hub the route is advertised by. PEERING_SUBNET and + * PEERING_DYNAMIC routes that are advertised by NCC Hub only. + * @type string $ncc_spoke_uri + * URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes + * that are advertised by NCC Hub only. + * @type string $advertised_route_source_router_uri + * For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised + * the corresponding IP prefix. + * @type string $advertised_route_next_hop_uri + * For ADVERTISED routes, the URI of their next hop, i.e. the URI of the + * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) + * the advertised prefix is advertised through, or URI of the source peered + * network. Deprecated in favor of the next_hop_uri field, not used in new + * tests. + * @type string $next_hop_uri + * URI of the next hop resource. + * @type string $next_hop_network_uri + * URI of a VPC network where the next hop resource is located. + * @type string $originating_route_uri + * For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating + * SUBNET/STATIC route. + * @type string $originating_route_display_name + * For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of + * the originating SUBNET/STATIC/DYNAMIC route. + * @type string $ncc_hub_route_uri + * For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC + * Hub, the URI of the corresponding route in NCC Hub's routing table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Type of route. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8; + * @return int + */ + public function getRouteType() + { + return $this->route_type; + } + + /** + * Type of route. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8; + * @param int $var + * @return $this + */ + public function setRouteType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\RouteInfo\RouteType::class); + $this->route_type = $var; + + return $this; + } + + /** + * Type of next hop. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9; + * @return int + */ + public function getNextHopType() + { + return $this->next_hop_type; + } + + /** + * Type of next hop. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9; + * @param int $var + * @return $this + */ + public function setNextHopType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\RouteInfo\NextHopType::class); + $this->next_hop_type = $var; + + return $this; + } + + /** + * Indicates where route is applicable. Deprecated, routes with NCC_HUB scope + * are not included in the trace in new tests. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14 [deprecated = true]; + * @return int + * @deprecated + */ + public function getRouteScope() + { + if ($this->route_scope !== 0) { + @trigger_error('route_scope is deprecated.', E_USER_DEPRECATED); + } + return $this->route_scope; + } + + /** + * Indicates where route is applicable. Deprecated, routes with NCC_HUB scope + * are not included in the trace in new tests. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setRouteScope($var) + { + @trigger_error('route_scope is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\RouteInfo\RouteScope::class); + $this->route_scope = $var; + + return $this; + } + + /** + * Name of a route. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a route. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) + * and POLICY_BASED routes only. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) + * and POLICY_BASED routes only. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED + * routes only. If set for POLICY_BASED route, this is a region of VLAN + * attachments for Cloud Interconnect the route applies to. + * + * Generated from protobuf field string region = 19; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED + * routes only. If set for POLICY_BASED route, this is a region of VLAN + * attachments for Cloud Interconnect the route applies to. + * + * Generated from protobuf field string region = 19; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + + /** + * Destination IP range of the route. + * + * Generated from protobuf field string dest_ip_range = 3; + * @return string + */ + public function getDestIpRange() + { + return $this->dest_ip_range; + } + + /** + * Destination IP range of the route. + * + * Generated from protobuf field string dest_ip_range = 3; + * @param string $var + * @return $this + */ + public function setDestIpRange($var) + { + GPBUtil::checkString($var, True); + $this->dest_ip_range = $var; + + return $this; + } + + /** + * String type of the next hop of the route (for example, "VPN tunnel"). + * Deprecated in favor of the next_hop_type and next_hop_uri fields, not used + * in new tests. + * + * Generated from protobuf field string next_hop = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNextHop() + { + if ($this->next_hop !== '') { + @trigger_error('next_hop is deprecated.', E_USER_DEPRECATED); + } + return $this->next_hop; + } + + /** + * String type of the next hop of the route (for example, "VPN tunnel"). + * Deprecated in favor of the next_hop_type and next_hop_uri fields, not used + * in new tests. + * + * Generated from protobuf field string next_hop = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNextHop($var) + { + @trigger_error('next_hop is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->next_hop = $var; + + return $this; + } + + /** + * URI of a VPC network where route is located. + * + * Generated from protobuf field string network_uri = 5; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of a VPC network where route is located. + * + * Generated from protobuf field string network_uri = 5; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * Priority of the route. + * + * Generated from protobuf field int32 priority = 6; + * @return int + */ + public function getPriority() + { + return $this->priority; + } + + /** + * Priority of the route. + * + * Generated from protobuf field int32 priority = 6; + * @param int $var + * @return $this + */ + public function setPriority($var) + { + GPBUtil::checkInt32($var); + $this->priority = $var; + + return $this; + } + + /** + * Instance tags of the route. + * + * Generated from protobuf field repeated string instance_tags = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInstanceTags() + { + return $this->instance_tags; + } + + /** + * Instance tags of the route. + * + * Generated from protobuf field repeated string instance_tags = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInstanceTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->instance_tags = $arr; + + return $this; + } + + /** + * Source IP address range of the route. POLICY_BASED routes only. + * + * Generated from protobuf field string src_ip_range = 10; + * @return string + */ + public function getSrcIpRange() + { + return $this->src_ip_range; + } + + /** + * Source IP address range of the route. POLICY_BASED routes only. + * + * Generated from protobuf field string src_ip_range = 10; + * @param string $var + * @return $this + */ + public function setSrcIpRange($var) + { + GPBUtil::checkString($var, True); + $this->src_ip_range = $var; + + return $this; + } + + /** + * Destination port ranges of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string dest_port_ranges = 11; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDestPortRanges() + { + return $this->dest_port_ranges; + } + + /** + * Destination port ranges of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string dest_port_ranges = 11; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDestPortRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->dest_port_ranges = $arr; + + return $this; + } + + /** + * Source port ranges of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string src_port_ranges = 12; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSrcPortRanges() + { + return $this->src_port_ranges; + } + + /** + * Source port ranges of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string src_port_ranges = 12; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSrcPortRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->src_port_ranges = $arr; + + return $this; + } + + /** + * Protocols of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string protocols = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProtocols() + { + return $this->protocols; + } + + /** + * Protocols of the route. POLICY_BASED routes only. + * + * Generated from protobuf field repeated string protocols = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProtocols($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->protocols = $arr; + + return $this; + } + + /** + * URI of the NCC Hub the route is advertised by. PEERING_SUBNET and + * PEERING_DYNAMIC routes that are advertised by NCC Hub only. + * + * Generated from protobuf field optional string ncc_hub_uri = 15; + * @return string + */ + public function getNccHubUri() + { + return isset($this->ncc_hub_uri) ? $this->ncc_hub_uri : ''; + } + + public function hasNccHubUri() + { + return isset($this->ncc_hub_uri); + } + + public function clearNccHubUri() + { + unset($this->ncc_hub_uri); + } + + /** + * URI of the NCC Hub the route is advertised by. PEERING_SUBNET and + * PEERING_DYNAMIC routes that are advertised by NCC Hub only. + * + * Generated from protobuf field optional string ncc_hub_uri = 15; + * @param string $var + * @return $this + */ + public function setNccHubUri($var) + { + GPBUtil::checkString($var, True); + $this->ncc_hub_uri = $var; + + return $this; + } + + /** + * URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes + * that are advertised by NCC Hub only. + * + * Generated from protobuf field optional string ncc_spoke_uri = 16; + * @return string + */ + public function getNccSpokeUri() + { + return isset($this->ncc_spoke_uri) ? $this->ncc_spoke_uri : ''; + } + + public function hasNccSpokeUri() + { + return isset($this->ncc_spoke_uri); + } + + public function clearNccSpokeUri() + { + unset($this->ncc_spoke_uri); + } + + /** + * URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes + * that are advertised by NCC Hub only. + * + * Generated from protobuf field optional string ncc_spoke_uri = 16; + * @param string $var + * @return $this + */ + public function setNccSpokeUri($var) + { + GPBUtil::checkString($var, True); + $this->ncc_spoke_uri = $var; + + return $this; + } + + /** + * For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised + * the corresponding IP prefix. + * + * Generated from protobuf field optional string advertised_route_source_router_uri = 17; + * @return string + */ + public function getAdvertisedRouteSourceRouterUri() + { + return isset($this->advertised_route_source_router_uri) ? $this->advertised_route_source_router_uri : ''; + } + + public function hasAdvertisedRouteSourceRouterUri() + { + return isset($this->advertised_route_source_router_uri); + } + + public function clearAdvertisedRouteSourceRouterUri() + { + unset($this->advertised_route_source_router_uri); + } + + /** + * For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised + * the corresponding IP prefix. + * + * Generated from protobuf field optional string advertised_route_source_router_uri = 17; + * @param string $var + * @return $this + */ + public function setAdvertisedRouteSourceRouterUri($var) + { + GPBUtil::checkString($var, True); + $this->advertised_route_source_router_uri = $var; + + return $this; + } + + /** + * For ADVERTISED routes, the URI of their next hop, i.e. the URI of the + * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) + * the advertised prefix is advertised through, or URI of the source peered + * network. Deprecated in favor of the next_hop_uri field, not used in new + * tests. + * + * Generated from protobuf field optional string advertised_route_next_hop_uri = 18 [deprecated = true]; + * @return string + * @deprecated + */ + public function getAdvertisedRouteNextHopUri() + { + if (isset($this->advertised_route_next_hop_uri)) { + @trigger_error('advertised_route_next_hop_uri is deprecated.', E_USER_DEPRECATED); + } + return isset($this->advertised_route_next_hop_uri) ? $this->advertised_route_next_hop_uri : ''; + } + + public function hasAdvertisedRouteNextHopUri() + { + if (isset($this->advertised_route_next_hop_uri)) { + @trigger_error('advertised_route_next_hop_uri is deprecated.', E_USER_DEPRECATED); + } + return isset($this->advertised_route_next_hop_uri); + } + + public function clearAdvertisedRouteNextHopUri() + { + @trigger_error('advertised_route_next_hop_uri is deprecated.', E_USER_DEPRECATED); + unset($this->advertised_route_next_hop_uri); + } + + /** + * For ADVERTISED routes, the URI of their next hop, i.e. the URI of the + * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) + * the advertised prefix is advertised through, or URI of the source peered + * network. Deprecated in favor of the next_hop_uri field, not used in new + * tests. + * + * Generated from protobuf field optional string advertised_route_next_hop_uri = 18 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setAdvertisedRouteNextHopUri($var) + { + @trigger_error('advertised_route_next_hop_uri is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->advertised_route_next_hop_uri = $var; + + return $this; + } + + /** + * URI of the next hop resource. + * + * Generated from protobuf field string next_hop_uri = 20; + * @return string + */ + public function getNextHopUri() + { + return $this->next_hop_uri; + } + + /** + * URI of the next hop resource. + * + * Generated from protobuf field string next_hop_uri = 20; + * @param string $var + * @return $this + */ + public function setNextHopUri($var) + { + GPBUtil::checkString($var, True); + $this->next_hop_uri = $var; + + return $this; + } + + /** + * URI of a VPC network where the next hop resource is located. + * + * Generated from protobuf field string next_hop_network_uri = 21; + * @return string + */ + public function getNextHopNetworkUri() + { + return $this->next_hop_network_uri; + } + + /** + * URI of a VPC network where the next hop resource is located. + * + * Generated from protobuf field string next_hop_network_uri = 21; + * @param string $var + * @return $this + */ + public function setNextHopNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->next_hop_network_uri = $var; + + return $this; + } + + /** + * For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating + * SUBNET/STATIC route. + * + * Generated from protobuf field string originating_route_uri = 22; + * @return string + */ + public function getOriginatingRouteUri() + { + return $this->originating_route_uri; + } + + /** + * For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating + * SUBNET/STATIC route. + * + * Generated from protobuf field string originating_route_uri = 22; + * @param string $var + * @return $this + */ + public function setOriginatingRouteUri($var) + { + GPBUtil::checkString($var, True); + $this->originating_route_uri = $var; + + return $this; + } + + /** + * For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of + * the originating SUBNET/STATIC/DYNAMIC route. + * + * Generated from protobuf field string originating_route_display_name = 23; + * @return string + */ + public function getOriginatingRouteDisplayName() + { + return $this->originating_route_display_name; + } + + /** + * For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of + * the originating SUBNET/STATIC/DYNAMIC route. + * + * Generated from protobuf field string originating_route_display_name = 23; + * @param string $var + * @return $this + */ + public function setOriginatingRouteDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->originating_route_display_name = $var; + + return $this; + } + + /** + * For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC + * Hub, the URI of the corresponding route in NCC Hub's routing table. + * + * Generated from protobuf field string ncc_hub_route_uri = 24; + * @return string + */ + public function getNccHubRouteUri() + { + return $this->ncc_hub_route_uri; + } + + /** + * For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC + * Hub, the URI of the corresponding route in NCC Hub's routing table. + * + * Generated from protobuf field string ncc_hub_route_uri = 24; + * @param string $var + * @return $this + */ + public function setNccHubRouteUri($var) + { + GPBUtil::checkString($var, True); + $this->ncc_hub_route_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/NextHopType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/NextHopType.php new file mode 100644 index 000000000000..eaa8f61906e5 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/NextHopType.php @@ -0,0 +1,150 @@ +google.cloud.networkmanagement.v1.RouteInfo.NextHopType + */ +class NextHopType +{ + /** + * Unspecified type. Default value. + * + * Generated from protobuf enum NEXT_HOP_TYPE_UNSPECIFIED = 0; + */ + const NEXT_HOP_TYPE_UNSPECIFIED = 0; + /** + * Next hop is an IP address. + * + * Generated from protobuf enum NEXT_HOP_IP = 1; + */ + const NEXT_HOP_IP = 1; + /** + * Next hop is a Compute Engine instance. + * + * Generated from protobuf enum NEXT_HOP_INSTANCE = 2; + */ + const NEXT_HOP_INSTANCE = 2; + /** + * Next hop is a VPC network gateway. + * + * Generated from protobuf enum NEXT_HOP_NETWORK = 3; + */ + const NEXT_HOP_NETWORK = 3; + /** + * Next hop is a peering VPC. This scenario only happens when the user + * doesn't have permissions to the project where the next hop resource is + * located. + * + * Generated from protobuf enum NEXT_HOP_PEERING = 4; + */ + const NEXT_HOP_PEERING = 4; + /** + * Next hop is an interconnect. + * + * Generated from protobuf enum NEXT_HOP_INTERCONNECT = 5; + */ + const NEXT_HOP_INTERCONNECT = 5; + /** + * Next hop is a VPN tunnel. + * + * Generated from protobuf enum NEXT_HOP_VPN_TUNNEL = 6; + */ + const NEXT_HOP_VPN_TUNNEL = 6; + /** + * Next hop is a VPN gateway. This scenario only happens when tracing + * connectivity from an on-premises network to Google Cloud through a VPN. + * The analysis simulates a packet departing from the on-premises network + * through a VPN tunnel and arriving at a Cloud VPN gateway. + * + * Generated from protobuf enum NEXT_HOP_VPN_GATEWAY = 7; + */ + const NEXT_HOP_VPN_GATEWAY = 7; + /** + * Next hop is an internet gateway. + * + * Generated from protobuf enum NEXT_HOP_INTERNET_GATEWAY = 8; + */ + const NEXT_HOP_INTERNET_GATEWAY = 8; + /** + * Next hop is blackhole; that is, the next hop either does not exist or is + * unusable. + * + * Generated from protobuf enum NEXT_HOP_BLACKHOLE = 9; + */ + const NEXT_HOP_BLACKHOLE = 9; + /** + * Next hop is the forwarding rule of an Internal Load Balancer. + * + * Generated from protobuf enum NEXT_HOP_ILB = 10; + */ + const NEXT_HOP_ILB = 10; + /** + * Next hop is a + * [router appliance + * instance](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/ra-overview). + * + * Generated from protobuf enum NEXT_HOP_ROUTER_APPLIANCE = 11; + */ + const NEXT_HOP_ROUTER_APPLIANCE = 11; + /** + * Next hop is an NCC hub. This scenario only happens when the user doesn't + * have permissions to the project where the next hop resource is located. + * + * Generated from protobuf enum NEXT_HOP_NCC_HUB = 12; + */ + const NEXT_HOP_NCC_HUB = 12; + /** + * Next hop is Secure Web Proxy Gateway. + * + * Generated from protobuf enum SECURE_WEB_PROXY_GATEWAY = 13; + */ + const SECURE_WEB_PROXY_GATEWAY = 13; + + private static $valueToName = [ + self::NEXT_HOP_TYPE_UNSPECIFIED => 'NEXT_HOP_TYPE_UNSPECIFIED', + self::NEXT_HOP_IP => 'NEXT_HOP_IP', + self::NEXT_HOP_INSTANCE => 'NEXT_HOP_INSTANCE', + self::NEXT_HOP_NETWORK => 'NEXT_HOP_NETWORK', + self::NEXT_HOP_PEERING => 'NEXT_HOP_PEERING', + self::NEXT_HOP_INTERCONNECT => 'NEXT_HOP_INTERCONNECT', + self::NEXT_HOP_VPN_TUNNEL => 'NEXT_HOP_VPN_TUNNEL', + self::NEXT_HOP_VPN_GATEWAY => 'NEXT_HOP_VPN_GATEWAY', + self::NEXT_HOP_INTERNET_GATEWAY => 'NEXT_HOP_INTERNET_GATEWAY', + self::NEXT_HOP_BLACKHOLE => 'NEXT_HOP_BLACKHOLE', + self::NEXT_HOP_ILB => 'NEXT_HOP_ILB', + self::NEXT_HOP_ROUTER_APPLIANCE => 'NEXT_HOP_ROUTER_APPLIANCE', + self::NEXT_HOP_NCC_HUB => 'NEXT_HOP_NCC_HUB', + self::SECURE_WEB_PROXY_GATEWAY => 'SECURE_WEB_PROXY_GATEWAY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NextHopType::class, \Google\Cloud\NetworkManagement\V1\RouteInfo_NextHopType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteScope.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteScope.php new file mode 100644 index 000000000000..63ab17217fcb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteScope.php @@ -0,0 +1,64 @@ +google.cloud.networkmanagement.v1.RouteInfo.RouteScope + */ +class RouteScope +{ + /** + * Unspecified scope. Default value. + * + * Generated from protobuf enum ROUTE_SCOPE_UNSPECIFIED = 0; + */ + const ROUTE_SCOPE_UNSPECIFIED = 0; + /** + * Route is applicable to packets in Network. + * + * Generated from protobuf enum NETWORK = 1; + */ + const NETWORK = 1; + /** + * Route is applicable to packets using NCC Hub's routing table. + * + * Generated from protobuf enum NCC_HUB = 2; + */ + const NCC_HUB = 2; + + private static $valueToName = [ + self::ROUTE_SCOPE_UNSPECIFIED => 'ROUTE_SCOPE_UNSPECIFIED', + self::NETWORK => 'NETWORK', + self::NCC_HUB => 'NCC_HUB', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RouteScope::class, \Google\Cloud\NetworkManagement\V1\RouteInfo_RouteScope::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteType.php new file mode 100644 index 000000000000..0cff7417cde1 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteType.php @@ -0,0 +1,112 @@ +google.cloud.networkmanagement.v1.RouteInfo.RouteType + */ +class RouteType +{ + /** + * Unspecified type. Default value. + * + * Generated from protobuf enum ROUTE_TYPE_UNSPECIFIED = 0; + */ + const ROUTE_TYPE_UNSPECIFIED = 0; + /** + * Route is a subnet route automatically created by the system. + * + * Generated from protobuf enum SUBNET = 1; + */ + const SUBNET = 1; + /** + * Static route created by the user, including the default route to the + * internet. + * + * Generated from protobuf enum STATIC = 2; + */ + const PBSTATIC = 2; + /** + * Dynamic route exchanged between BGP peers. + * + * Generated from protobuf enum DYNAMIC = 3; + */ + const DYNAMIC = 3; + /** + * A subnet route received from peering network or NCC Hub. + * + * Generated from protobuf enum PEERING_SUBNET = 4; + */ + const PEERING_SUBNET = 4; + /** + * A static route received from peering network. + * + * Generated from protobuf enum PEERING_STATIC = 5; + */ + const PEERING_STATIC = 5; + /** + * A dynamic route received from peering network or NCC Hub. + * + * Generated from protobuf enum PEERING_DYNAMIC = 6; + */ + const PEERING_DYNAMIC = 6; + /** + * Policy based route. + * + * Generated from protobuf enum POLICY_BASED = 7; + */ + const POLICY_BASED = 7; + /** + * Advertised route. Synthetic route which is used to transition from the + * StartFromPrivateNetwork state in Connectivity tests. + * + * Generated from protobuf enum ADVERTISED = 101; + */ + const ADVERTISED = 101; + + private static $valueToName = [ + self::ROUTE_TYPE_UNSPECIFIED => 'ROUTE_TYPE_UNSPECIFIED', + self::SUBNET => 'SUBNET', + self::PBSTATIC => 'STATIC', + self::DYNAMIC => 'DYNAMIC', + self::PEERING_SUBNET => 'PEERING_SUBNET', + self::PEERING_STATIC => 'PEERING_STATIC', + self::PEERING_DYNAMIC => 'PEERING_DYNAMIC', + self::POLICY_BASED => 'POLICY_BASED', + self::ADVERTISED => 'ADVERTISED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RouteType::class, \Google\Cloud\NetworkManagement\V1\RouteInfo_RouteType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessExternalConnectionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessExternalConnectionInfo.php new file mode 100644 index 000000000000..fdd041d1dab9 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessExternalConnectionInfo.php @@ -0,0 +1,67 @@ +google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfo + */ +class ServerlessExternalConnectionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Selected starting IP address, from the Google dynamic address pool. + * + * Generated from protobuf field string selected_ip_address = 1 [(.google.api.field_info) = { + */ + protected $selected_ip_address = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selected_ip_address + * Selected starting IP address, from the Google dynamic address pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Selected starting IP address, from the Google dynamic address pool. + * + * Generated from protobuf field string selected_ip_address = 1 [(.google.api.field_info) = { + * @return string + */ + public function getSelectedIpAddress() + { + return $this->selected_ip_address; + } + + /** + * Selected starting IP address, from the Google dynamic address pool. + * + * Generated from protobuf field string selected_ip_address = 1 [(.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setSelectedIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->selected_ip_address = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessNegInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessNegInfo.php new file mode 100644 index 000000000000..582fd758a26c --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessNegInfo.php @@ -0,0 +1,68 @@ +google.cloud.networkmanagement.v1.ServerlessNegInfo + */ +class ServerlessNegInfo extends \Google\Protobuf\Internal\Message +{ + /** + * URI of the serverless network endpoint group. + * + * Generated from protobuf field string neg_uri = 1; + */ + protected $neg_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $neg_uri + * URI of the serverless network endpoint group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * URI of the serverless network endpoint group. + * + * Generated from protobuf field string neg_uri = 1; + * @return string + */ + public function getNegUri() + { + return $this->neg_uri; + } + + /** + * URI of the serverless network endpoint group. + * + * Generated from protobuf field string neg_uri = 1; + * @param string $var + * @return $this + */ + public function setNegUri($var) + { + GPBUtil::checkString($var, True); + $this->neg_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsRequest.php new file mode 100644 index 000000000000..5529db379a68 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsRequest.php @@ -0,0 +1,235 @@ +google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + */ +class ShowEffectiveFlowLogsConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the VpcFlowLogsConfig, specified in + * the following format: `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource to get the effective VPC Flow Logs configuration + * for. The resource must belong to the same project as the parent. The + * resource must be a network, subnetwork, interconnect attachment, VPN + * tunnel, or a project. + * + * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource = ''; + /** + * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter + * expression. A filter expression must use the supported [CEL logic + * operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the VpcFlowLogsConfig, specified in + * the following format: `projects/{project_id}/locations/global` + * @type string $resource + * Required. The resource to get the effective VPC Flow Logs configuration + * for. The resource must belong to the same project as the parent. The + * resource must be a network, subnetwork, interconnect attachment, VPN + * tunnel, or a project. + * @type int $page_size + * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. + * @type string $page_token + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * @type string $filter + * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter + * expression. A filter expression must use the supported [CEL logic + * operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the VpcFlowLogsConfig, specified in + * the following format: `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource of the VpcFlowLogsConfig, specified in + * the following format: `projects/{project_id}/locations/global` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource to get the effective VPC Flow Logs configuration + * for. The resource must belong to the same project as the parent. The + * resource must be a network, subnetwork, interconnect attachment, VPN + * tunnel, or a project. + * + * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Required. The resource to get the effective VPC Flow Logs configuration + * for. The resource must belong to the same project as the parent. The + * resource must be a network, subnetwork, interconnect attachment, VPN + * tunnel, or a project. + * + * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token from an earlier query, as returned in + * `next_page_token`. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter + * expression. A filter expression must use the supported [CEL logic + * operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter + * expression. A filter expression must use the supported [CEL logic + * operators] + * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsResponse.php new file mode 100644 index 000000000000..98c6e00bc0cb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsResponse.php @@ -0,0 +1,135 @@ +google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + */ +class ShowEffectiveFlowLogsConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of Effective Vpc Flow Logs configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + */ + private $effective_flow_logs_configs; + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $effective_flow_logs_configs + * List of Effective Vpc Flow Logs configurations. + * @type string $next_page_token + * Page token to fetch the next set of configurations. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached (when querying all locations with `-`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * List of Effective Vpc Flow Logs configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEffectiveFlowLogsConfigs() + { + return $this->effective_flow_logs_configs; + } + + /** + * List of Effective Vpc Flow Logs configurations. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * @param array<\Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEffectiveFlowLogsConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig::class); + $this->effective_flow_logs_configs = $arr; + + return $this; + } + + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Page token to fetch the next set of configurations. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached (when querying all locations with `-`). + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step.php new file mode 100644 index 000000000000..0df8d7a4b492 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step.php @@ -0,0 +1,1295 @@ +google.cloud.networkmanagement.v1.Step + */ +class Step extends \Google\Protobuf\Internal\Message +{ + /** + * A description of the step. Usually this is a summary of the state. + * + * Generated from protobuf field string description = 1; + */ + protected $description = ''; + /** + * Each step is in one of the pre-defined states. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Step.State state = 2; + */ + protected $state = 0; + /** + * This is a step that leads to the final state Drop. + * + * Generated from protobuf field bool causes_drop = 3; + */ + protected $causes_drop = false; + /** + * Project ID that contains the configuration this step is validating. + * + * Generated from protobuf field string project_id = 4; + */ + protected $project_id = ''; + protected $step_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * A description of the step. Usually this is a summary of the state. + * @type int $state + * Each step is in one of the pre-defined states. + * @type bool $causes_drop + * This is a step that leads to the final state Drop. + * @type string $project_id + * Project ID that contains the configuration this step is validating. + * @type \Google\Cloud\NetworkManagement\V1\InstanceInfo $instance + * Display information of a Compute Engine instance. + * @type \Google\Cloud\NetworkManagement\V1\FirewallInfo $firewall + * Display information of a Compute Engine firewall rule. + * @type \Google\Cloud\NetworkManagement\V1\RouteInfo $route + * Display information of a Compute Engine route. + * @type \Google\Cloud\NetworkManagement\V1\EndpointInfo $endpoint + * Display information of the source and destination under analysis. + * The endpoint information in an intermediate state may differ with the + * initial input, as it might be modified by state like NAT, + * or Connection Proxy. + * @type \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo $google_service + * Display information of a Google service + * @type \Google\Cloud\NetworkManagement\V1\ForwardingRuleInfo $forwarding_rule + * Display information of a Compute Engine forwarding rule. + * @type \Google\Cloud\NetworkManagement\V1\HybridSubnetInfo $hybrid_subnet + * Display information of a hybrid subnet. + * @type \Google\Cloud\NetworkManagement\V1\VpnGatewayInfo $vpn_gateway + * Display information of a Compute Engine VPN gateway. + * @type \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo $vpn_tunnel + * Display information of a Compute Engine VPN tunnel. + * @type \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo $interconnect_attachment + * Display information of an interconnect attachment. + * @type \Google\Cloud\NetworkManagement\V1\VpcConnectorInfo $vpc_connector + * Display information of a VPC connector. + * @type \Google\Cloud\NetworkManagement\V1\DirectVpcEgressConnectionInfo $direct_vpc_egress_connection + * Display information of a serverless direct VPC egress connection. + * @type \Google\Cloud\NetworkManagement\V1\ServerlessExternalConnectionInfo $serverless_external_connection + * Display information of a serverless public (external) connection. + * @type \Google\Cloud\NetworkManagement\V1\DeliverInfo $deliver + * Display information of the final state "deliver" and reason. + * @type \Google\Cloud\NetworkManagement\V1\ForwardInfo $forward + * Display information of the final state "forward" and reason. + * @type \Google\Cloud\NetworkManagement\V1\AbortInfo $abort + * Display information of the final state "abort" and reason. + * @type \Google\Cloud\NetworkManagement\V1\DropInfo $drop + * Display information of the final state "drop" and reason. + * @type \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo $load_balancer + * Display information of the load balancers. Deprecated in favor of the + * `load_balancer_backend_info` field, not used in new tests. + * @type \Google\Cloud\NetworkManagement\V1\NetworkInfo $network + * Display information of a Google Cloud network. + * @type \Google\Cloud\NetworkManagement\V1\GKEMasterInfo $gke_master + * Display information of a Google Kubernetes Engine cluster master. + * @type \Google\Cloud\NetworkManagement\V1\GkePodInfo $gke_pod + * Display information of a Google Kubernetes Engine Pod. + * @type \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo $ip_masquerading_skipped + * Display information of the reason why GKE Pod IP masquerading was + * skipped. + * @type \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo $cloud_sql_instance + * Display information of a Cloud SQL instance. + * @type \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo $redis_instance + * Display information of a Redis Instance. + * @type \Google\Cloud\NetworkManagement\V1\RedisClusterInfo $redis_cluster + * Display information of a Redis Cluster. + * @type \Google\Cloud\NetworkManagement\V1\CloudFunctionInfo $cloud_function + * Display information of a Cloud Function. + * @type \Google\Cloud\NetworkManagement\V1\AppEngineVersionInfo $app_engine_version + * Display information of an App Engine service version. + * @type \Google\Cloud\NetworkManagement\V1\CloudRunRevisionInfo $cloud_run_revision + * Display information of a Cloud Run revision. + * @type \Google\Cloud\NetworkManagement\V1\NatInfo $nat + * Display information of a NAT. + * @type \Google\Cloud\NetworkManagement\V1\ProxyConnectionInfo $proxy_connection + * Display information of a ProxyConnection. + * @type \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo $load_balancer_backend_info + * Display information of a specific load balancer backend. + * @type \Google\Cloud\NetworkManagement\V1\StorageBucketInfo $storage_bucket + * Display information of a Storage Bucket. Used only for return traces. + * @type \Google\Cloud\NetworkManagement\V1\ServerlessNegInfo $serverless_neg + * Display information of a Serverless network endpoint group backend. Used + * only for return traces. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * A description of the step. Usually this is a summary of the state. + * + * Generated from protobuf field string description = 1; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of the step. Usually this is a summary of the state. + * + * Generated from protobuf field string description = 1; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Each step is in one of the pre-defined states. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Step.State state = 2; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Each step is in one of the pre-defined states. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.Step.State state = 2; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\Step\State::class); + $this->state = $var; + + return $this; + } + + /** + * This is a step that leads to the final state Drop. + * + * Generated from protobuf field bool causes_drop = 3; + * @return bool + */ + public function getCausesDrop() + { + return $this->causes_drop; + } + + /** + * This is a step that leads to the final state Drop. + * + * Generated from protobuf field bool causes_drop = 3; + * @param bool $var + * @return $this + */ + public function setCausesDrop($var) + { + GPBUtil::checkBool($var); + $this->causes_drop = $var; + + return $this; + } + + /** + * Project ID that contains the configuration this step is validating. + * + * Generated from protobuf field string project_id = 4; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Project ID that contains the configuration this step is validating. + * + * Generated from protobuf field string project_id = 4; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Display information of a Compute Engine instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo instance = 5; + * @return \Google\Cloud\NetworkManagement\V1\InstanceInfo|null + */ + public function getInstance() + { + return $this->readOneof(5); + } + + public function hasInstance() + { + return $this->hasOneof(5); + } + + /** + * Display information of a Compute Engine instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo instance = 5; + * @param \Google\Cloud\NetworkManagement\V1\InstanceInfo $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\InstanceInfo::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Display information of a Compute Engine firewall rule. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo firewall = 6; + * @return \Google\Cloud\NetworkManagement\V1\FirewallInfo|null + */ + public function getFirewall() + { + return $this->readOneof(6); + } + + public function hasFirewall() + { + return $this->hasOneof(6); + } + + /** + * Display information of a Compute Engine firewall rule. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo firewall = 6; + * @param \Google\Cloud\NetworkManagement\V1\FirewallInfo $var + * @return $this + */ + public function setFirewall($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\FirewallInfo::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Display information of a Compute Engine route. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo route = 7; + * @return \Google\Cloud\NetworkManagement\V1\RouteInfo|null + */ + public function getRoute() + { + return $this->readOneof(7); + } + + public function hasRoute() + { + return $this->hasOneof(7); + } + + /** + * Display information of a Compute Engine route. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo route = 7; + * @param \Google\Cloud\NetworkManagement\V1\RouteInfo $var + * @return $this + */ + public function setRoute($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\RouteInfo::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Display information of the source and destination under analysis. + * The endpoint information in an intermediate state may differ with the + * initial input, as it might be modified by state like NAT, + * or Connection Proxy. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint = 8; + * @return \Google\Cloud\NetworkManagement\V1\EndpointInfo|null + */ + public function getEndpoint() + { + return $this->readOneof(8); + } + + public function hasEndpoint() + { + return $this->hasOneof(8); + } + + /** + * Display information of the source and destination under analysis. + * The endpoint information in an intermediate state may differ with the + * initial input, as it might be modified by state like NAT, + * or Connection Proxy. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint = 8; + * @param \Google\Cloud\NetworkManagement\V1\EndpointInfo $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\EndpointInfo::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Display information of a Google service + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24; + * @return \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo|null + */ + public function getGoogleService() + { + return $this->readOneof(24); + } + + public function hasGoogleService() + { + return $this->hasOneof(24); + } + + /** + * Display information of a Google service + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24; + * @param \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo $var + * @return $this + */ + public function setGoogleService($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo::class); + $this->writeOneof(24, $var); + + return $this; + } + + /** + * Display information of a Compute Engine forwarding rule. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardingRuleInfo forwarding_rule = 9; + * @return \Google\Cloud\NetworkManagement\V1\ForwardingRuleInfo|null + */ + public function getForwardingRule() + { + return $this->readOneof(9); + } + + public function hasForwardingRule() + { + return $this->hasOneof(9); + } + + /** + * Display information of a Compute Engine forwarding rule. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardingRuleInfo forwarding_rule = 9; + * @param \Google\Cloud\NetworkManagement\V1\ForwardingRuleInfo $var + * @return $this + */ + public function setForwardingRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ForwardingRuleInfo::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Display information of a hybrid subnet. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + * @return \Google\Cloud\NetworkManagement\V1\HybridSubnetInfo|null + */ + public function getHybridSubnet() + { + return $this->readOneof(36); + } + + public function hasHybridSubnet() + { + return $this->hasOneof(36); + } + + /** + * Display information of a hybrid subnet. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + * @param \Google\Cloud\NetworkManagement\V1\HybridSubnetInfo $var + * @return $this + */ + public function setHybridSubnet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\HybridSubnetInfo::class); + $this->writeOneof(36, $var); + + return $this; + } + + /** + * Display information of a Compute Engine VPN gateway. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnGatewayInfo vpn_gateway = 10; + * @return \Google\Cloud\NetworkManagement\V1\VpnGatewayInfo|null + */ + public function getVpnGateway() + { + return $this->readOneof(10); + } + + public function hasVpnGateway() + { + return $this->hasOneof(10); + } + + /** + * Display information of a Compute Engine VPN gateway. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnGatewayInfo vpn_gateway = 10; + * @param \Google\Cloud\NetworkManagement\V1\VpnGatewayInfo $var + * @return $this + */ + public function setVpnGateway($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpnGatewayInfo::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Display information of a Compute Engine VPN tunnel. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo vpn_tunnel = 11; + * @return \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo|null + */ + public function getVpnTunnel() + { + return $this->readOneof(11); + } + + public function hasVpnTunnel() + { + return $this->hasOneof(11); + } + + /** + * Display information of a Compute Engine VPN tunnel. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo vpn_tunnel = 11; + * @param \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo $var + * @return $this + */ + public function setVpnTunnel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Display information of an interconnect attachment. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * @return \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo|null + */ + public function getInterconnectAttachment() + { + return $this->readOneof(35); + } + + public function hasInterconnectAttachment() + { + return $this->hasOneof(35); + } + + /** + * Display information of an interconnect attachment. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * @param \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo $var + * @return $this + */ + public function setInterconnectAttachment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo::class); + $this->writeOneof(35, $var); + + return $this; + } + + /** + * Display information of a VPC connector. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21; + * @return \Google\Cloud\NetworkManagement\V1\VpcConnectorInfo|null + */ + public function getVpcConnector() + { + return $this->readOneof(21); + } + + public function hasVpcConnector() + { + return $this->hasOneof(21); + } + + /** + * Display information of a VPC connector. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21; + * @param \Google\Cloud\NetworkManagement\V1\VpcConnectorInfo $var + * @return $this + */ + public function setVpcConnector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpcConnectorInfo::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * Display information of a serverless direct VPC egress connection. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DirectVpcEgressConnectionInfo direct_vpc_egress_connection = 33; + * @return \Google\Cloud\NetworkManagement\V1\DirectVpcEgressConnectionInfo|null + */ + public function getDirectVpcEgressConnection() + { + return $this->readOneof(33); + } + + public function hasDirectVpcEgressConnection() + { + return $this->hasOneof(33); + } + + /** + * Display information of a serverless direct VPC egress connection. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DirectVpcEgressConnectionInfo direct_vpc_egress_connection = 33; + * @param \Google\Cloud\NetworkManagement\V1\DirectVpcEgressConnectionInfo $var + * @return $this + */ + public function setDirectVpcEgressConnection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\DirectVpcEgressConnectionInfo::class); + $this->writeOneof(33, $var); + + return $this; + } + + /** + * Display information of a serverless public (external) connection. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfo serverless_external_connection = 34; + * @return \Google\Cloud\NetworkManagement\V1\ServerlessExternalConnectionInfo|null + */ + public function getServerlessExternalConnection() + { + return $this->readOneof(34); + } + + public function hasServerlessExternalConnection() + { + return $this->hasOneof(34); + } + + /** + * Display information of a serverless public (external) connection. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfo serverless_external_connection = 34; + * @param \Google\Cloud\NetworkManagement\V1\ServerlessExternalConnectionInfo $var + * @return $this + */ + public function setServerlessExternalConnection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ServerlessExternalConnectionInfo::class); + $this->writeOneof(34, $var); + + return $this; + } + + /** + * Display information of the final state "deliver" and reason. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo deliver = 12; + * @return \Google\Cloud\NetworkManagement\V1\DeliverInfo|null + */ + public function getDeliver() + { + return $this->readOneof(12); + } + + public function hasDeliver() + { + return $this->hasOneof(12); + } + + /** + * Display information of the final state "deliver" and reason. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo deliver = 12; + * @param \Google\Cloud\NetworkManagement\V1\DeliverInfo $var + * @return $this + */ + public function setDeliver($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\DeliverInfo::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Display information of the final state "forward" and reason. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo forward = 13; + * @return \Google\Cloud\NetworkManagement\V1\ForwardInfo|null + */ + public function getForward() + { + return $this->readOneof(13); + } + + public function hasForward() + { + return $this->hasOneof(13); + } + + /** + * Display information of the final state "forward" and reason. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo forward = 13; + * @param \Google\Cloud\NetworkManagement\V1\ForwardInfo $var + * @return $this + */ + public function setForward($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ForwardInfo::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Display information of the final state "abort" and reason. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo abort = 14; + * @return \Google\Cloud\NetworkManagement\V1\AbortInfo|null + */ + public function getAbort() + { + return $this->readOneof(14); + } + + public function hasAbort() + { + return $this->hasOneof(14); + } + + /** + * Display information of the final state "abort" and reason. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo abort = 14; + * @param \Google\Cloud\NetworkManagement\V1\AbortInfo $var + * @return $this + */ + public function setAbort($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\AbortInfo::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Display information of the final state "drop" and reason. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo drop = 15; + * @return \Google\Cloud\NetworkManagement\V1\DropInfo|null + */ + public function getDrop() + { + return $this->readOneof(15); + } + + public function hasDrop() + { + return $this->hasOneof(15); + } + + /** + * Display information of the final state "drop" and reason. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo drop = 15; + * @param \Google\Cloud\NetworkManagement\V1\DropInfo $var + * @return $this + */ + public function setDrop($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\DropInfo::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Display information of the load balancers. Deprecated in favor of the + * `load_balancer_backend_info` field, not used in new tests. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo load_balancer = 16 [deprecated = true]; + * @return \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo|null + * @deprecated + */ + public function getLoadBalancer() + { + if ($this->hasOneof(16)) { + @trigger_error('load_balancer is deprecated.', E_USER_DEPRECATED); + } + return $this->readOneof(16); + } + + public function hasLoadBalancer() + { + if ($this->hasOneof(16)) { + @trigger_error('load_balancer is deprecated.', E_USER_DEPRECATED); + } + return $this->hasOneof(16); + } + + /** + * Display information of the load balancers. Deprecated in favor of the + * `load_balancer_backend_info` field, not used in new tests. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo load_balancer = 16 [deprecated = true]; + * @param \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo $var + * @return $this + * @deprecated + */ + public function setLoadBalancer($var) + { + @trigger_error('load_balancer is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Display information of a Google Cloud network. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NetworkInfo network = 17; + * @return \Google\Cloud\NetworkManagement\V1\NetworkInfo|null + */ + public function getNetwork() + { + return $this->readOneof(17); + } + + public function hasNetwork() + { + return $this->hasOneof(17); + } + + /** + * Display information of a Google Cloud network. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NetworkInfo network = 17; + * @param \Google\Cloud\NetworkManagement\V1\NetworkInfo $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\NetworkInfo::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Display information of a Google Kubernetes Engine cluster master. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GKEMasterInfo gke_master = 18; + * @return \Google\Cloud\NetworkManagement\V1\GKEMasterInfo|null + */ + public function getGkeMaster() + { + return $this->readOneof(18); + } + + public function hasGkeMaster() + { + return $this->hasOneof(18); + } + + /** + * Display information of a Google Kubernetes Engine cluster master. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GKEMasterInfo gke_master = 18; + * @param \Google\Cloud\NetworkManagement\V1\GKEMasterInfo $var + * @return $this + */ + public function setGkeMaster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\GKEMasterInfo::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * Display information of a Google Kubernetes Engine Pod. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GkePodInfo gke_pod = 37; + * @return \Google\Cloud\NetworkManagement\V1\GkePodInfo|null + */ + public function getGkePod() + { + return $this->readOneof(37); + } + + public function hasGkePod() + { + return $this->hasOneof(37); + } + + /** + * Display information of a Google Kubernetes Engine Pod. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GkePodInfo gke_pod = 37; + * @param \Google\Cloud\NetworkManagement\V1\GkePodInfo $var + * @return $this + */ + public function setGkePod($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\GkePodInfo::class); + $this->writeOneof(37, $var); + + return $this; + } + + /** + * Display information of the reason why GKE Pod IP masquerading was + * skipped. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo ip_masquerading_skipped = 38; + * @return \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo|null + */ + public function getIpMasqueradingSkipped() + { + return $this->readOneof(38); + } + + public function hasIpMasqueradingSkipped() + { + return $this->hasOneof(38); + } + + /** + * Display information of the reason why GKE Pod IP masquerading was + * skipped. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo ip_masquerading_skipped = 38; + * @param \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo $var + * @return $this + */ + public function setIpMasqueradingSkipped($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo::class); + $this->writeOneof(38, $var); + + return $this; + } + + /** + * Display information of a Cloud SQL instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudSQLInstanceInfo cloud_sql_instance = 19; + * @return \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo|null + */ + public function getCloudSqlInstance() + { + return $this->readOneof(19); + } + + public function hasCloudSqlInstance() + { + return $this->hasOneof(19); + } + + /** + * Display information of a Cloud SQL instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudSQLInstanceInfo cloud_sql_instance = 19; + * @param \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo $var + * @return $this + */ + public function setCloudSqlInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo::class); + $this->writeOneof(19, $var); + + return $this; + } + + /** + * Display information of a Redis Instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; + * @return \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo|null + */ + public function getRedisInstance() + { + return $this->readOneof(30); + } + + public function hasRedisInstance() + { + return $this->hasOneof(30); + } + + /** + * Display information of a Redis Instance. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; + * @param \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo $var + * @return $this + */ + public function setRedisInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo::class); + $this->writeOneof(30, $var); + + return $this; + } + + /** + * Display information of a Redis Cluster. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + * @return \Google\Cloud\NetworkManagement\V1\RedisClusterInfo|null + */ + public function getRedisCluster() + { + return $this->readOneof(31); + } + + public function hasRedisCluster() + { + return $this->hasOneof(31); + } + + /** + * Display information of a Redis Cluster. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + * @param \Google\Cloud\NetworkManagement\V1\RedisClusterInfo $var + * @return $this + */ + public function setRedisCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\RedisClusterInfo::class); + $this->writeOneof(31, $var); + + return $this; + } + + /** + * Display information of a Cloud Function. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * @return \Google\Cloud\NetworkManagement\V1\CloudFunctionInfo|null + */ + public function getCloudFunction() + { + return $this->readOneof(20); + } + + public function hasCloudFunction() + { + return $this->hasOneof(20); + } + + /** + * Display information of a Cloud Function. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * @param \Google\Cloud\NetworkManagement\V1\CloudFunctionInfo $var + * @return $this + */ + public function setCloudFunction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\CloudFunctionInfo::class); + $this->writeOneof(20, $var); + + return $this; + } + + /** + * Display information of an App Engine service version. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22; + * @return \Google\Cloud\NetworkManagement\V1\AppEngineVersionInfo|null + */ + public function getAppEngineVersion() + { + return $this->readOneof(22); + } + + public function hasAppEngineVersion() + { + return $this->hasOneof(22); + } + + /** + * Display information of an App Engine service version. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22; + * @param \Google\Cloud\NetworkManagement\V1\AppEngineVersionInfo $var + * @return $this + */ + public function setAppEngineVersion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\AppEngineVersionInfo::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * Display information of a Cloud Run revision. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23; + * @return \Google\Cloud\NetworkManagement\V1\CloudRunRevisionInfo|null + */ + public function getCloudRunRevision() + { + return $this->readOneof(23); + } + + public function hasCloudRunRevision() + { + return $this->hasOneof(23); + } + + /** + * Display information of a Cloud Run revision. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23; + * @param \Google\Cloud\NetworkManagement\V1\CloudRunRevisionInfo $var + * @return $this + */ + public function setCloudRunRevision($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\CloudRunRevisionInfo::class); + $this->writeOneof(23, $var); + + return $this; + } + + /** + * Display information of a NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo nat = 25; + * @return \Google\Cloud\NetworkManagement\V1\NatInfo|null + */ + public function getNat() + { + return $this->readOneof(25); + } + + public function hasNat() + { + return $this->hasOneof(25); + } + + /** + * Display information of a NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo nat = 25; + * @param \Google\Cloud\NetworkManagement\V1\NatInfo $var + * @return $this + */ + public function setNat($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\NatInfo::class); + $this->writeOneof(25, $var); + + return $this; + } + + /** + * Display information of a ProxyConnection. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + * @return \Google\Cloud\NetworkManagement\V1\ProxyConnectionInfo|null + */ + public function getProxyConnection() + { + return $this->readOneof(26); + } + + public function hasProxyConnection() + { + return $this->hasOneof(26); + } + + /** + * Display information of a ProxyConnection. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + * @param \Google\Cloud\NetworkManagement\V1\ProxyConnectionInfo $var + * @return $this + */ + public function setProxyConnection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ProxyConnectionInfo::class); + $this->writeOneof(26, $var); + + return $this; + } + + /** + * Display information of a specific load balancer backend. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * @return \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo|null + */ + public function getLoadBalancerBackendInfo() + { + return $this->readOneof(27); + } + + public function hasLoadBalancerBackendInfo() + { + return $this->hasOneof(27); + } + + /** + * Display information of a specific load balancer backend. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * @param \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo $var + * @return $this + */ + public function setLoadBalancerBackendInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo::class); + $this->writeOneof(27, $var); + + return $this; + } + + /** + * Display information of a Storage Bucket. Used only for return traces. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + * @return \Google\Cloud\NetworkManagement\V1\StorageBucketInfo|null + */ + public function getStorageBucket() + { + return $this->readOneof(28); + } + + public function hasStorageBucket() + { + return $this->hasOneof(28); + } + + /** + * Display information of a Storage Bucket. Used only for return traces. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + * @param \Google\Cloud\NetworkManagement\V1\StorageBucketInfo $var + * @return $this + */ + public function setStorageBucket($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\StorageBucketInfo::class); + $this->writeOneof(28, $var); + + return $this; + } + + /** + * Display information of a Serverless network endpoint group backend. Used + * only for return traces. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + * @return \Google\Cloud\NetworkManagement\V1\ServerlessNegInfo|null + */ + public function getServerlessNeg() + { + return $this->readOneof(29); + } + + public function hasServerlessNeg() + { + return $this->hasOneof(29); + } + + /** + * Display information of a Serverless network endpoint group backend. Used + * only for return traces. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + * @param \Google\Cloud\NetworkManagement\V1\ServerlessNegInfo $var + * @return $this + */ + public function setServerlessNeg($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ServerlessNegInfo::class); + $this->writeOneof(29, $var); + + return $this; + } + + /** + * @return string + */ + public function getStepInfo() + { + return $this->whichOneof("step_info"); + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step/State.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step/State.php new file mode 100644 index 000000000000..9006e45c6ba1 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step/State.php @@ -0,0 +1,352 @@ +google.cloud.networkmanagement.v1.Step.State + */ +class State +{ + /** + * Unspecified state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Initial state: packet originating from a Compute Engine instance. + * An InstanceInfo is populated with starting instance information. + * + * Generated from protobuf enum START_FROM_INSTANCE = 1; + */ + const START_FROM_INSTANCE = 1; + /** + * Initial state: packet originating from the internet. + * The endpoint information is populated. + * + * Generated from protobuf enum START_FROM_INTERNET = 2; + */ + const START_FROM_INTERNET = 2; + /** + * Initial state: packet originating from a Google service. + * The google_service information is populated. + * + * Generated from protobuf enum START_FROM_GOOGLE_SERVICE = 27; + */ + const START_FROM_GOOGLE_SERVICE = 27; + /** + * Initial state: packet originating from a VPC or on-premises network + * with internal source IP. + * If the source is a VPC network visible to the user, a NetworkInfo + * is populated with details of the network. + * + * Generated from protobuf enum START_FROM_PRIVATE_NETWORK = 3; + */ + const START_FROM_PRIVATE_NETWORK = 3; + /** + * Initial state: packet originating from a Google Kubernetes Engine cluster + * master. A GKEMasterInfo is populated with starting instance information. + * + * Generated from protobuf enum START_FROM_GKE_MASTER = 21; + */ + const START_FROM_GKE_MASTER = 21; + /** + * Initial state: packet originating from a Cloud SQL instance. + * A CloudSQLInstanceInfo is populated with starting instance information. + * + * Generated from protobuf enum START_FROM_CLOUD_SQL_INSTANCE = 22; + */ + const START_FROM_CLOUD_SQL_INSTANCE = 22; + /** + * Initial state: packet originating from a Google Kubernetes Engine Pod. + * A GkePodInfo is populated with starting Pod information. + * + * Generated from protobuf enum START_FROM_GKE_POD = 39; + */ + const START_FROM_GKE_POD = 39; + /** + * Initial state: packet originating from a Redis instance. + * A RedisInstanceInfo is populated with starting instance information. + * + * Generated from protobuf enum START_FROM_REDIS_INSTANCE = 32; + */ + const START_FROM_REDIS_INSTANCE = 32; + /** + * Initial state: packet originating from a Redis Cluster. + * A RedisClusterInfo is populated with starting Cluster information. + * + * Generated from protobuf enum START_FROM_REDIS_CLUSTER = 33; + */ + const START_FROM_REDIS_CLUSTER = 33; + /** + * Initial state: packet originating from a Cloud Function. + * A CloudFunctionInfo is populated with starting function information. + * + * Generated from protobuf enum START_FROM_CLOUD_FUNCTION = 23; + */ + const START_FROM_CLOUD_FUNCTION = 23; + /** + * Initial state: packet originating from an App Engine service version. + * An AppEngineVersionInfo is populated with starting version information. + * + * Generated from protobuf enum START_FROM_APP_ENGINE_VERSION = 25; + */ + const START_FROM_APP_ENGINE_VERSION = 25; + /** + * Initial state: packet originating from a Cloud Run revision. + * A CloudRunRevisionInfo is populated with starting revision information. + * + * Generated from protobuf enum START_FROM_CLOUD_RUN_REVISION = 26; + */ + const START_FROM_CLOUD_RUN_REVISION = 26; + /** + * Initial state: packet originating from a Storage Bucket. Used only for + * return traces. + * The storage_bucket information is populated. + * + * Generated from protobuf enum START_FROM_STORAGE_BUCKET = 29; + */ + const START_FROM_STORAGE_BUCKET = 29; + /** + * Initial state: packet originating from a published service that uses + * Private Service Connect. Used only for return traces. + * + * Generated from protobuf enum START_FROM_PSC_PUBLISHED_SERVICE = 30; + */ + const START_FROM_PSC_PUBLISHED_SERVICE = 30; + /** + * Initial state: packet originating from a serverless network endpoint + * group backend. Used only for return traces. + * The serverless_neg information is populated. + * + * Generated from protobuf enum START_FROM_SERVERLESS_NEG = 31; + */ + const START_FROM_SERVERLESS_NEG = 31; + /** + * Config checking state: verify ingress firewall rule. + * + * Generated from protobuf enum APPLY_INGRESS_FIREWALL_RULE = 4; + */ + const APPLY_INGRESS_FIREWALL_RULE = 4; + /** + * Config checking state: verify egress firewall rule. + * + * Generated from protobuf enum APPLY_EGRESS_FIREWALL_RULE = 5; + */ + const APPLY_EGRESS_FIREWALL_RULE = 5; + /** + * Config checking state: verify route. + * + * Generated from protobuf enum APPLY_ROUTE = 6; + */ + const APPLY_ROUTE = 6; + /** + * Config checking state: match forwarding rule. + * + * Generated from protobuf enum APPLY_FORWARDING_RULE = 7; + */ + const APPLY_FORWARDING_RULE = 7; + /** + * Config checking state: verify load balancer backend configuration. + * + * Generated from protobuf enum ANALYZE_LOAD_BALANCER_BACKEND = 28; + */ + const ANALYZE_LOAD_BALANCER_BACKEND = 28; + /** + * Config checking state: packet sent or received under foreign IP + * address and allowed. + * + * Generated from protobuf enum SPOOFING_APPROVED = 8; + */ + const SPOOFING_APPROVED = 8; + /** + * Forwarding state: arriving at a Compute Engine instance. + * + * Generated from protobuf enum ARRIVE_AT_INSTANCE = 9; + */ + const ARRIVE_AT_INSTANCE = 9; + /** + * Forwarding state: arriving at a Compute Engine internal load balancer. + * + * Generated from protobuf enum ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10 [deprecated = true]; + */ + const ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10; + /** + * Forwarding state: arriving at a Compute Engine external load balancer. + * + * Generated from protobuf enum ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11 [deprecated = true]; + */ + const ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11; + /** + * Forwarding state: arriving at a hybrid subnet. Appropriate routing + * configuration will be determined here. + * + * Generated from protobuf enum ARRIVE_AT_HYBRID_SUBNET = 38; + */ + const ARRIVE_AT_HYBRID_SUBNET = 38; + /** + * Forwarding state: arriving at a Cloud VPN gateway. + * + * Generated from protobuf enum ARRIVE_AT_VPN_GATEWAY = 12; + */ + const ARRIVE_AT_VPN_GATEWAY = 12; + /** + * Forwarding state: arriving at a Cloud VPN tunnel. + * + * Generated from protobuf enum ARRIVE_AT_VPN_TUNNEL = 13; + */ + const ARRIVE_AT_VPN_TUNNEL = 13; + /** + * Forwarding state: arriving at an interconnect attachment. + * + * Generated from protobuf enum ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; + */ + const ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; + /** + * Forwarding state: arriving at a VPC connector. + * + * Generated from protobuf enum ARRIVE_AT_VPC_CONNECTOR = 24; + */ + const ARRIVE_AT_VPC_CONNECTOR = 24; + /** + * Forwarding state: for packets originating from a serverless endpoint + * forwarded through Direct VPC egress. + * + * Generated from protobuf enum DIRECT_VPC_EGRESS_CONNECTION = 35; + */ + const DIRECT_VPC_EGRESS_CONNECTION = 35; + /** + * Forwarding state: for packets originating from a serverless endpoint + * forwarded through public (external) connectivity. + * + * Generated from protobuf enum SERVERLESS_EXTERNAL_CONNECTION = 36; + */ + const SERVERLESS_EXTERNAL_CONNECTION = 36; + /** + * Transition state: packet header translated. The `nat` field is populated + * with the translation information. + * + * Generated from protobuf enum NAT = 14; + */ + const NAT = 14; + /** + * Transition state: GKE Pod IP masquerading is skipped. The + * `ip_masquerading_skipped` field is populated with the reason. + * + * Generated from protobuf enum SKIP_GKE_POD_IP_MASQUERADING = 40; + */ + const SKIP_GKE_POD_IP_MASQUERADING = 40; + /** + * Transition state: original connection is terminated and a new proxied + * connection is initiated. + * + * Generated from protobuf enum PROXY_CONNECTION = 15; + */ + const PROXY_CONNECTION = 15; + /** + * Final state: packet could be delivered. + * + * Generated from protobuf enum DELIVER = 16; + */ + const DELIVER = 16; + /** + * Final state: packet could be dropped. + * + * Generated from protobuf enum DROP = 17; + */ + const DROP = 17; + /** + * Final state: packet could be forwarded to a network with an unknown + * configuration. + * + * Generated from protobuf enum FORWARD = 18; + */ + const FORWARD = 18; + /** + * Final state: analysis is aborted. + * + * Generated from protobuf enum ABORT = 19; + */ + const ABORT = 19; + /** + * Special state: viewer of the test result does not have permission to + * see the configuration in this step. + * + * Generated from protobuf enum VIEWER_PERMISSION_MISSING = 20; + */ + const VIEWER_PERMISSION_MISSING = 20; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::START_FROM_INSTANCE => 'START_FROM_INSTANCE', + self::START_FROM_INTERNET => 'START_FROM_INTERNET', + self::START_FROM_GOOGLE_SERVICE => 'START_FROM_GOOGLE_SERVICE', + self::START_FROM_PRIVATE_NETWORK => 'START_FROM_PRIVATE_NETWORK', + self::START_FROM_GKE_MASTER => 'START_FROM_GKE_MASTER', + self::START_FROM_CLOUD_SQL_INSTANCE => 'START_FROM_CLOUD_SQL_INSTANCE', + self::START_FROM_GKE_POD => 'START_FROM_GKE_POD', + self::START_FROM_REDIS_INSTANCE => 'START_FROM_REDIS_INSTANCE', + self::START_FROM_REDIS_CLUSTER => 'START_FROM_REDIS_CLUSTER', + self::START_FROM_CLOUD_FUNCTION => 'START_FROM_CLOUD_FUNCTION', + self::START_FROM_APP_ENGINE_VERSION => 'START_FROM_APP_ENGINE_VERSION', + self::START_FROM_CLOUD_RUN_REVISION => 'START_FROM_CLOUD_RUN_REVISION', + self::START_FROM_STORAGE_BUCKET => 'START_FROM_STORAGE_BUCKET', + self::START_FROM_PSC_PUBLISHED_SERVICE => 'START_FROM_PSC_PUBLISHED_SERVICE', + self::START_FROM_SERVERLESS_NEG => 'START_FROM_SERVERLESS_NEG', + self::APPLY_INGRESS_FIREWALL_RULE => 'APPLY_INGRESS_FIREWALL_RULE', + self::APPLY_EGRESS_FIREWALL_RULE => 'APPLY_EGRESS_FIREWALL_RULE', + self::APPLY_ROUTE => 'APPLY_ROUTE', + self::APPLY_FORWARDING_RULE => 'APPLY_FORWARDING_RULE', + self::ANALYZE_LOAD_BALANCER_BACKEND => 'ANALYZE_LOAD_BALANCER_BACKEND', + self::SPOOFING_APPROVED => 'SPOOFING_APPROVED', + self::ARRIVE_AT_INSTANCE => 'ARRIVE_AT_INSTANCE', + self::ARRIVE_AT_INTERNAL_LOAD_BALANCER => 'ARRIVE_AT_INTERNAL_LOAD_BALANCER', + self::ARRIVE_AT_EXTERNAL_LOAD_BALANCER => 'ARRIVE_AT_EXTERNAL_LOAD_BALANCER', + self::ARRIVE_AT_HYBRID_SUBNET => 'ARRIVE_AT_HYBRID_SUBNET', + self::ARRIVE_AT_VPN_GATEWAY => 'ARRIVE_AT_VPN_GATEWAY', + self::ARRIVE_AT_VPN_TUNNEL => 'ARRIVE_AT_VPN_TUNNEL', + self::ARRIVE_AT_INTERCONNECT_ATTACHMENT => 'ARRIVE_AT_INTERCONNECT_ATTACHMENT', + self::ARRIVE_AT_VPC_CONNECTOR => 'ARRIVE_AT_VPC_CONNECTOR', + self::DIRECT_VPC_EGRESS_CONNECTION => 'DIRECT_VPC_EGRESS_CONNECTION', + self::SERVERLESS_EXTERNAL_CONNECTION => 'SERVERLESS_EXTERNAL_CONNECTION', + self::NAT => 'NAT', + self::SKIP_GKE_POD_IP_MASQUERADING => 'SKIP_GKE_POD_IP_MASQUERADING', + self::PROXY_CONNECTION => 'PROXY_CONNECTION', + self::DELIVER => 'DELIVER', + self::DROP => 'DROP', + self::FORWARD => 'FORWARD', + self::ABORT => 'ABORT', + self::VIEWER_PERMISSION_MISSING => 'VIEWER_PERMISSION_MISSING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\NetworkManagement\V1\Step_State::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/StorageBucketInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/StorageBucketInfo.php new file mode 100644 index 000000000000..58b34cf98567 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/StorageBucketInfo.php @@ -0,0 +1,67 @@ +google.cloud.networkmanagement.v1.StorageBucketInfo + */ +class StorageBucketInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Cloud Storage Bucket name. + * + * Generated from protobuf field string bucket = 1; + */ + protected $bucket = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket + * Cloud Storage Bucket name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Cloud Storage Bucket name. + * + * Generated from protobuf field string bucket = 1; + * @return string + */ + public function getBucket() + { + return $this->bucket; + } + + /** + * Cloud Storage Bucket name. + * + * Generated from protobuf field string bucket = 1; + * @param string $var + * @return $this + */ + public function setBucket($var) + { + GPBUtil::checkString($var, True); + $this->bucket = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Trace.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Trace.php new file mode 100644 index 000000000000..02548d666c07 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Trace.php @@ -0,0 +1,190 @@ +google.cloud.networkmanagement.v1.Trace + */ +class Trace extends \Google\Protobuf\Internal\Message +{ + /** + * Derived from the source and destination endpoints definition specified by + * user request, and validated by the data plane model. + * If there are multiple traces starting from different source locations, then + * the endpoint_info may be different between traces. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 1; + */ + protected $endpoint_info = null; + /** + * A trace of a test contains multiple steps from the initial state to the + * final state (delivered, dropped, forwarded, or aborted). + * The steps are ordered by the processing sequence within the simulated + * network state machine. It is critical to preserve the order of the steps + * and avoid reordering or sorting them. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Step steps = 2; + */ + private $steps; + /** + * ID of trace. For forward traces, this ID is unique for each trace. For + * return traces, it matches ID of associated forward trace. A single forward + * trace can be associated with none, one or more than one return trace. + * + * Generated from protobuf field int32 forward_trace_id = 4; + */ + protected $forward_trace_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\NetworkManagement\V1\EndpointInfo $endpoint_info + * Derived from the source and destination endpoints definition specified by + * user request, and validated by the data plane model. + * If there are multiple traces starting from different source locations, then + * the endpoint_info may be different between traces. + * @type array<\Google\Cloud\NetworkManagement\V1\Step>|\Google\Protobuf\Internal\RepeatedField $steps + * A trace of a test contains multiple steps from the initial state to the + * final state (delivered, dropped, forwarded, or aborted). + * The steps are ordered by the processing sequence within the simulated + * network state machine. It is critical to preserve the order of the steps + * and avoid reordering or sorting them. + * @type int $forward_trace_id + * ID of trace. For forward traces, this ID is unique for each trace. For + * return traces, it matches ID of associated forward trace. A single forward + * trace can be associated with none, one or more than one return trace. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Derived from the source and destination endpoints definition specified by + * user request, and validated by the data plane model. + * If there are multiple traces starting from different source locations, then + * the endpoint_info may be different between traces. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 1; + * @return \Google\Cloud\NetworkManagement\V1\EndpointInfo|null + */ + public function getEndpointInfo() + { + return $this->endpoint_info; + } + + public function hasEndpointInfo() + { + return isset($this->endpoint_info); + } + + public function clearEndpointInfo() + { + unset($this->endpoint_info); + } + + /** + * Derived from the source and destination endpoints definition specified by + * user request, and validated by the data plane model. + * If there are multiple traces starting from different source locations, then + * the endpoint_info may be different between traces. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 1; + * @param \Google\Cloud\NetworkManagement\V1\EndpointInfo $var + * @return $this + */ + public function setEndpointInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\EndpointInfo::class); + $this->endpoint_info = $var; + + return $this; + } + + /** + * A trace of a test contains multiple steps from the initial state to the + * final state (delivered, dropped, forwarded, or aborted). + * The steps are ordered by the processing sequence within the simulated + * network state machine. It is critical to preserve the order of the steps + * and avoid reordering or sorting them. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Step steps = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSteps() + { + return $this->steps; + } + + /** + * A trace of a test contains multiple steps from the initial state to the + * final state (delivered, dropped, forwarded, or aborted). + * The steps are ordered by the processing sequence within the simulated + * network state machine. It is critical to preserve the order of the steps + * and avoid reordering or sorting them. + * + * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Step steps = 2; + * @param array<\Google\Cloud\NetworkManagement\V1\Step>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\Step::class); + $this->steps = $arr; + + return $this; + } + + /** + * ID of trace. For forward traces, this ID is unique for each trace. For + * return traces, it matches ID of associated forward trace. A single forward + * trace can be associated with none, one or more than one return trace. + * + * Generated from protobuf field int32 forward_trace_id = 4; + * @return int + */ + public function getForwardTraceId() + { + return $this->forward_trace_id; + } + + /** + * ID of trace. For forward traces, this ID is unique for each trace. For + * return traces, it matches ID of associated forward trace. A single forward + * trace can be associated with none, one or more than one return trace. + * + * Generated from protobuf field int32 forward_trace_id = 4; + * @param int $var + * @return $this + */ + public function setForwardTraceId($var) + { + GPBUtil::checkInt32($var); + $this->forward_trace_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateConnectivityTestRequest.php new file mode 100644 index 000000000000..095a3a882e67 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateConnectivityTestRequest.php @@ -0,0 +1,141 @@ +google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest + */ +class UpdateConnectivityTestRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Only fields specified in update_mask are updated. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource = null; + + /** + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. + * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource Required. Only fields specified in update_mask are updated. + * + * @return \Google\Cloud\NetworkManagement\V1\UpdateConnectivityTestRequest + * + * @experimental + */ + public static function build(\Google\Protobuf\FieldMask $updateMask, \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource): self + { + return (new self()) + ->setUpdateMask($updateMask) + ->setResource($resource); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. + * @type \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource + * Required. Only fields specified in update_mask are updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. Only fields specified in update_mask are updated. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\NetworkManagement\V1\ConnectivityTest|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * Required. Only fields specified in update_mask are updated. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ConnectivityTest::class); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateVpcFlowLogsConfigRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateVpcFlowLogsConfigRequest.php new file mode 100644 index 000000000000..f487b6717a2a --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateVpcFlowLogsConfigRequest.php @@ -0,0 +1,171 @@ +google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + */ +class UpdateVpcFlowLogsConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. + * For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: + * `vpc_flow_logs_config = { + * name = + * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" + * state = "ENABLED" }` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Only fields specified in update_mask are updated. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vpc_flow_logs_config = null; + + /** + * @param \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpcFlowLogsConfig Required. Only fields specified in update_mask are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. + * For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: + * `vpc_flow_logs_config = { + * name = + * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" + * state = "ENABLED" }` + * + * @return \Google\Cloud\NetworkManagement\V1\UpdateVpcFlowLogsConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpcFlowLogsConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. + * For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: + * `vpc_flow_logs_config = { + * name = + * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" + * state = "ENABLED" }` + * @type \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpc_flow_logs_config + * Required. Only fields specified in update_mask are updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. + * For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: + * `vpc_flow_logs_config = { + * name = + * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" + * state = "ENABLED" }` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. + * For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: + * `vpc_flow_logs_config = { + * name = + * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" + * state = "ENABLED" }` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. Only fields specified in update_mask are updated. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig|null + */ + public function getVpcFlowLogsConfig() + { + return $this->vpc_flow_logs_config; + } + + public function hasVpcFlowLogsConfig() + { + return isset($this->vpc_flow_logs_config); + } + + public function clearVpcFlowLogsConfig() + { + unset($this->vpc_flow_logs_config); + } + + /** + * Required. Only fields specified in update_mask are updated. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $var + * @return $this + */ + public function setVpcFlowLogsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig::class); + $this->vpc_flow_logs_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcConnectorInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcConnectorInfo.php new file mode 100644 index 000000000000..c96a59d85686 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcConnectorInfo.php @@ -0,0 +1,135 @@ +google.cloud.networkmanagement.v1.VpcConnectorInfo + */ +class VpcConnectorInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a VPC connector. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a VPC connector. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Location in which the VPC connector is deployed. + * + * Generated from protobuf field string location = 3; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a VPC connector. + * @type string $uri + * URI of a VPC connector. + * @type string $location + * Location in which the VPC connector is deployed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a VPC connector. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a VPC connector. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a VPC connector. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a VPC connector. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Location in which the VPC connector is deployed. + * + * Generated from protobuf field string location = 3; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Location in which the VPC connector is deployed. + * + * Generated from protobuf field string location = 3; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig.php new file mode 100644 index 000000000000..e10501272abd --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig.php @@ -0,0 +1,810 @@ +google.cloud.networkmanagement.v1.VpcFlowLogsConfig + */ +class VpcFlowLogsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Unique name of the configuration. The name can have one of the + * following forms: + * - For project-level configurations: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level configurations: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. The user-supplied description of the VPC Flow Logs configuration. + * Maximum of 512 characters. + * + * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = null; + /** + * Optional. The state of the VPC Flow Log configuration. Default value is + * ENABLED. When creating a new configuration, it must be enabled. Setting + * state=DISABLED will pause the log generation for this config. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $state = null; + /** + * Optional. The aggregation interval for the logs. Default value is + * INTERVAL_5_SEC. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $aggregation_interval = null; + /** + * Optional. The value of the field must be in (0, 1]. The sampling rate of + * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the + * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, + * use the state field instead. Default value is 1.0. + * + * Generated from protobuf field optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $flow_sampling = null; + /** + * Optional. Configures whether all, none or a subset of metadata fields + * should be added to the reported VPC flow logs. Default value is + * INCLUDE_ALL_METADATA. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metadata = null; + /** + * Optional. Custom metadata fields to include in the reported VPC flow logs. + * Can only be specified if "metadata" was set to CUSTOM_METADATA. + * + * Generated from protobuf field repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $metadata_fields; + /** + * Optional. Export filter used to define which VPC Flow Logs should be + * logged. + * + * Generated from protobuf field optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter_expr = null; + /** + * Optional. Determines whether to include cross project annotations in the + * logs. This field is available only for organization configurations. If not + * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cross_project_metadata = null; + /** + * Output only. Describes the state of the configured target resource for + * diagnostic purposes. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_resource_state = null; + /** + * Optional. Resource labels to represent user-provided metadata. + * + * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. The time the config was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the config was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + protected $target_resource; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Unique name of the configuration. The name can have one of the + * following forms: + * - For project-level configurations: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level configurations: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @type string $description + * Optional. The user-supplied description of the VPC Flow Logs configuration. + * Maximum of 512 characters. + * @type int $state + * Optional. The state of the VPC Flow Log configuration. Default value is + * ENABLED. When creating a new configuration, it must be enabled. Setting + * state=DISABLED will pause the log generation for this config. + * @type int $aggregation_interval + * Optional. The aggregation interval for the logs. Default value is + * INTERVAL_5_SEC. + * @type float $flow_sampling + * Optional. The value of the field must be in (0, 1]. The sampling rate of + * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the + * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, + * use the state field instead. Default value is 1.0. + * @type int $metadata + * Optional. Configures whether all, none or a subset of metadata fields + * should be added to the reported VPC flow logs. Default value is + * INCLUDE_ALL_METADATA. + * @type array|\Google\Protobuf\Internal\RepeatedField $metadata_fields + * Optional. Custom metadata fields to include in the reported VPC flow logs. + * Can only be specified if "metadata" was set to CUSTOM_METADATA. + * @type string $filter_expr + * Optional. Export filter used to define which VPC Flow Logs should be + * logged. + * @type int $cross_project_metadata + * Optional. Determines whether to include cross project annotations in the + * logs. This field is available only for organization configurations. If not + * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + * @type int $target_resource_state + * Output only. Describes the state of the configured target resource for + * diagnostic purposes. + * @type string $network + * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + * within the network. + * Format: projects/{project_id}/global/networks/{name} + * @type string $subnet + * Traffic will be logged from VMs within the subnetwork. + * Format: projects/{project_id}/regions/{region}/subnetworks/{name} + * @type string $interconnect_attachment + * Traffic will be logged from the Interconnect Attachment. + * Format: + * projects/{project_id}/regions/{region}/interconnectAttachments/{name} + * @type string $vpn_tunnel + * Traffic will be logged from the VPN Tunnel. + * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Resource labels to represent user-provided metadata. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the config was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time the config was updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogsConfig::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Unique name of the configuration. The name can have one of the + * following forms: + * - For project-level configurations: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level configurations: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Unique name of the configuration. The name can have one of the + * following forms: + * - For project-level configurations: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * - For organization-level configurations: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The user-supplied description of the VPC Flow Logs configuration. + * Maximum of 512 characters. + * + * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Optional. The user-supplied description of the VPC Flow Logs configuration. + * Maximum of 512 characters. + * + * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. The state of the VPC Flow Log configuration. Default value is + * ENABLED. When creating a new configuration, it must be enabled. Setting + * state=DISABLED will pause the log generation for this config. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getState() + { + return isset($this->state) ? $this->state : 0; + } + + public function hasState() + { + return isset($this->state); + } + + public function clearState() + { + unset($this->state); + } + + /** + * Optional. The state of the VPC Flow Log configuration. Default value is + * ENABLED. When creating a new configuration, it must be enabled. Setting + * state=DISABLED will pause the log generation for this config. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\State::class); + $this->state = $var; + + return $this; + } + + /** + * Optional. The aggregation interval for the logs. Default value is + * INTERVAL_5_SEC. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAggregationInterval() + { + return isset($this->aggregation_interval) ? $this->aggregation_interval : 0; + } + + public function hasAggregationInterval() + { + return isset($this->aggregation_interval); + } + + public function clearAggregationInterval() + { + unset($this->aggregation_interval); + } + + /** + * Optional. The aggregation interval for the logs. Default value is + * INTERVAL_5_SEC. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAggregationInterval($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\AggregationInterval::class); + $this->aggregation_interval = $var; + + return $this; + } + + /** + * Optional. The value of the field must be in (0, 1]. The sampling rate of + * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the + * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, + * use the state field instead. Default value is 1.0. + * + * Generated from protobuf field optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getFlowSampling() + { + return isset($this->flow_sampling) ? $this->flow_sampling : 0.0; + } + + public function hasFlowSampling() + { + return isset($this->flow_sampling); + } + + public function clearFlowSampling() + { + unset($this->flow_sampling); + } + + /** + * Optional. The value of the field must be in (0, 1]. The sampling rate of + * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the + * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, + * use the state field instead. Default value is 1.0. + * + * Generated from protobuf field optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setFlowSampling($var) + { + GPBUtil::checkFloat($var); + $this->flow_sampling = $var; + + return $this; + } + + /** + * Optional. Configures whether all, none or a subset of metadata fields + * should be added to the reported VPC flow logs. Default value is + * INCLUDE_ALL_METADATA. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetadata() + { + return isset($this->metadata) ? $this->metadata : 0; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Optional. Configures whether all, none or a subset of metadata fields + * should be added to the reported VPC flow logs. Default value is + * INCLUDE_ALL_METADATA. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\Metadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Optional. Custom metadata fields to include in the reported VPC flow logs. + * Can only be specified if "metadata" was set to CUSTOM_METADATA. + * + * Generated from protobuf field repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetadataFields() + { + return $this->metadata_fields; + } + + /** + * Optional. Custom metadata fields to include in the reported VPC flow logs. + * Can only be specified if "metadata" was set to CUSTOM_METADATA. + * + * Generated from protobuf field repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetadataFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadata_fields = $arr; + + return $this; + } + + /** + * Optional. Export filter used to define which VPC Flow Logs should be + * logged. + * + * Generated from protobuf field optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilterExpr() + { + return isset($this->filter_expr) ? $this->filter_expr : ''; + } + + public function hasFilterExpr() + { + return isset($this->filter_expr); + } + + public function clearFilterExpr() + { + unset($this->filter_expr); + } + + /** + * Optional. Export filter used to define which VPC Flow Logs should be + * logged. + * + * Generated from protobuf field optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilterExpr($var) + { + GPBUtil::checkString($var, True); + $this->filter_expr = $var; + + return $this; + } + + /** + * Optional. Determines whether to include cross project annotations in the + * logs. This field is available only for organization configurations. If not + * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCrossProjectMetadata() + { + return isset($this->cross_project_metadata) ? $this->cross_project_metadata : 0; + } + + public function hasCrossProjectMetadata() + { + return isset($this->cross_project_metadata); + } + + public function clearCrossProjectMetadata() + { + unset($this->cross_project_metadata); + } + + /** + * Optional. Determines whether to include cross project annotations in the + * logs. This field is available only for organization configurations. If not + * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCrossProjectMetadata($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\CrossProjectMetadata::class); + $this->cross_project_metadata = $var; + + return $this; + } + + /** + * Output only. Describes the state of the configured target resource for + * diagnostic purposes. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTargetResourceState() + { + return isset($this->target_resource_state) ? $this->target_resource_state : 0; + } + + public function hasTargetResourceState() + { + return isset($this->target_resource_state); + } + + public function clearTargetResourceState() + { + unset($this->target_resource_state); + } + + /** + * Output only. Describes the state of the configured target resource for + * diagnostic purposes. + * + * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTargetResourceState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\TargetResourceState::class); + $this->target_resource_state = $var; + + return $this; + } + + /** + * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + * within the network. + * Format: projects/{project_id}/global/networks/{name} + * + * Generated from protobuf field string network = 100; + * @return string + */ + public function getNetwork() + { + return $this->readOneof(100); + } + + public function hasNetwork() + { + return $this->hasOneof(100); + } + + /** + * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + * within the network. + * Format: projects/{project_id}/global/networks/{name} + * + * Generated from protobuf field string network = 100; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Traffic will be logged from VMs within the subnetwork. + * Format: projects/{project_id}/regions/{region}/subnetworks/{name} + * + * Generated from protobuf field string subnet = 101; + * @return string + */ + public function getSubnet() + { + return $this->readOneof(101); + } + + public function hasSubnet() + { + return $this->hasOneof(101); + } + + /** + * Traffic will be logged from VMs within the subnetwork. + * Format: projects/{project_id}/regions/{region}/subnetworks/{name} + * + * Generated from protobuf field string subnet = 101; + * @param string $var + * @return $this + */ + public function setSubnet($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Traffic will be logged from the Interconnect Attachment. + * Format: + * projects/{project_id}/regions/{region}/interconnectAttachments/{name} + * + * Generated from protobuf field string interconnect_attachment = 102; + * @return string + */ + public function getInterconnectAttachment() + { + return $this->readOneof(102); + } + + public function hasInterconnectAttachment() + { + return $this->hasOneof(102); + } + + /** + * Traffic will be logged from the Interconnect Attachment. + * Format: + * projects/{project_id}/regions/{region}/interconnectAttachments/{name} + * + * Generated from protobuf field string interconnect_attachment = 102; + * @param string $var + * @return $this + */ + public function setInterconnectAttachment($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * Traffic will be logged from the VPN Tunnel. + * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + * + * Generated from protobuf field string vpn_tunnel = 103; + * @return string + */ + public function getVpnTunnel() + { + return $this->readOneof(103); + } + + public function hasVpnTunnel() + { + return $this->hasOneof(103); + } + + /** + * Traffic will be logged from the VPN Tunnel. + * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + * + * Generated from protobuf field string vpn_tunnel = 103; + * @param string $var + * @return $this + */ + public function setVpnTunnel($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(103, $var); + + return $this; + } + + /** + * Optional. Resource labels to represent user-provided metadata. + * + * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Resource labels to represent user-provided metadata. + * + * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The time the config was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the config was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the config was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time the config was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getTargetResource() + { + return $this->whichOneof("target_resource"); + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/AggregationInterval.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/AggregationInterval.php new file mode 100644 index 000000000000..0314eb4af393 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/AggregationInterval.php @@ -0,0 +1,92 @@ +google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval + */ +class AggregationInterval +{ + /** + * If not specified, will default to INTERVAL_5_SEC. + * + * Generated from protobuf enum AGGREGATION_INTERVAL_UNSPECIFIED = 0; + */ + const AGGREGATION_INTERVAL_UNSPECIFIED = 0; + /** + * Aggregate logs in 5s intervals. + * + * Generated from protobuf enum INTERVAL_5_SEC = 1; + */ + const INTERVAL_5_SEC = 1; + /** + * Aggregate logs in 30s intervals. + * + * Generated from protobuf enum INTERVAL_30_SEC = 2; + */ + const INTERVAL_30_SEC = 2; + /** + * Aggregate logs in 1m intervals. + * + * Generated from protobuf enum INTERVAL_1_MIN = 3; + */ + const INTERVAL_1_MIN = 3; + /** + * Aggregate logs in 5m intervals. + * + * Generated from protobuf enum INTERVAL_5_MIN = 4; + */ + const INTERVAL_5_MIN = 4; + /** + * Aggregate logs in 10m intervals. + * + * Generated from protobuf enum INTERVAL_10_MIN = 5; + */ + const INTERVAL_10_MIN = 5; + /** + * Aggregate logs in 15m intervals. + * + * Generated from protobuf enum INTERVAL_15_MIN = 6; + */ + const INTERVAL_15_MIN = 6; + + private static $valueToName = [ + self::AGGREGATION_INTERVAL_UNSPECIFIED => 'AGGREGATION_INTERVAL_UNSPECIFIED', + self::INTERVAL_5_SEC => 'INTERVAL_5_SEC', + self::INTERVAL_30_SEC => 'INTERVAL_30_SEC', + self::INTERVAL_1_MIN => 'INTERVAL_1_MIN', + self::INTERVAL_5_MIN => 'INTERVAL_5_MIN', + self::INTERVAL_10_MIN => 'INTERVAL_10_MIN', + self::INTERVAL_15_MIN => 'INTERVAL_15_MIN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AggregationInterval::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_AggregationInterval::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/CrossProjectMetadata.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/CrossProjectMetadata.php new file mode 100644 index 000000000000..3e824f0b333b --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/CrossProjectMetadata.php @@ -0,0 +1,67 @@ +google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + */ +class CrossProjectMetadata +{ + /** + * If not specified, the default is CROSS_PROJECT_METADATA_ENABLED. + * + * Generated from protobuf enum CROSS_PROJECT_METADATA_UNSPECIFIED = 0; + */ + const CROSS_PROJECT_METADATA_UNSPECIFIED = 0; + /** + * When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be + * included in the logs. + * + * Generated from protobuf enum CROSS_PROJECT_METADATA_ENABLED = 1; + */ + const CROSS_PROJECT_METADATA_ENABLED = 1; + /** + * When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will + * not be included in the logs. + * + * Generated from protobuf enum CROSS_PROJECT_METADATA_DISABLED = 2; + */ + const CROSS_PROJECT_METADATA_DISABLED = 2; + + private static $valueToName = [ + self::CROSS_PROJECT_METADATA_UNSPECIFIED => 'CROSS_PROJECT_METADATA_UNSPECIFIED', + self::CROSS_PROJECT_METADATA_ENABLED => 'CROSS_PROJECT_METADATA_ENABLED', + self::CROSS_PROJECT_METADATA_DISABLED => 'CROSS_PROJECT_METADATA_DISABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CrossProjectMetadata::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_CrossProjectMetadata::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/Metadata.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/Metadata.php new file mode 100644 index 000000000000..9758d533a070 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/Metadata.php @@ -0,0 +1,71 @@ +google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata + */ +class Metadata +{ + /** + * If not specified, will default to INCLUDE_ALL_METADATA. + * + * Generated from protobuf enum METADATA_UNSPECIFIED = 0; + */ + const METADATA_UNSPECIFIED = 0; + /** + * Include all metadata fields. + * + * Generated from protobuf enum INCLUDE_ALL_METADATA = 1; + */ + const INCLUDE_ALL_METADATA = 1; + /** + * Exclude all metadata fields. + * + * Generated from protobuf enum EXCLUDE_ALL_METADATA = 2; + */ + const EXCLUDE_ALL_METADATA = 2; + /** + * Include only custom fields (specified in metadata_fields). + * + * Generated from protobuf enum CUSTOM_METADATA = 3; + */ + const CUSTOM_METADATA = 3; + + private static $valueToName = [ + self::METADATA_UNSPECIFIED => 'METADATA_UNSPECIFIED', + self::INCLUDE_ALL_METADATA => 'INCLUDE_ALL_METADATA', + self::EXCLUDE_ALL_METADATA => 'EXCLUDE_ALL_METADATA', + self::CUSTOM_METADATA => 'CUSTOM_METADATA', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Metadata::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_Metadata::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/State.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/State.php new file mode 100644 index 000000000000..d54a53fc3b67 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/State.php @@ -0,0 +1,64 @@ +google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State + */ +class State +{ + /** + * If not specified, will default to ENABLED. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * When ENABLED, this configuration will generate logs. + * + * Generated from protobuf enum ENABLED = 1; + */ + const ENABLED = 1; + /** + * When DISABLED, this configuration will not generate logs. + * + * Generated from protobuf enum DISABLED = 2; + */ + const DISABLED = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ENABLED => 'ENABLED', + self::DISABLED => 'DISABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_State::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/TargetResourceState.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/TargetResourceState.php new file mode 100644 index 000000000000..cc341a152752 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/TargetResourceState.php @@ -0,0 +1,65 @@ +google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState + */ +class TargetResourceState +{ + /** + * Unspecified target resource state. + * + * Generated from protobuf enum TARGET_RESOURCE_STATE_UNSPECIFIED = 0; + */ + const TARGET_RESOURCE_STATE_UNSPECIFIED = 0; + /** + * Indicates that the target resource exists. + * + * Generated from protobuf enum TARGET_RESOURCE_EXISTS = 1; + */ + const TARGET_RESOURCE_EXISTS = 1; + /** + * Indicates that the target resource does not exist. + * + * Generated from protobuf enum TARGET_RESOURCE_DOES_NOT_EXIST = 2; + */ + const TARGET_RESOURCE_DOES_NOT_EXIST = 2; + + private static $valueToName = [ + self::TARGET_RESOURCE_STATE_UNSPECIFIED => 'TARGET_RESOURCE_STATE_UNSPECIFIED', + self::TARGET_RESOURCE_EXISTS => 'TARGET_RESOURCE_EXISTS', + self::TARGET_RESOURCE_DOES_NOT_EXIST => 'TARGET_RESOURCE_DOES_NOT_EXIST', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TargetResourceState::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_TargetResourceState::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnGatewayInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnGatewayInfo.php new file mode 100644 index 000000000000..61f964197e52 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnGatewayInfo.php @@ -0,0 +1,245 @@ +google.cloud.networkmanagement.v1.VpnGatewayInfo + */ +class VpnGatewayInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a VPN gateway. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a VPN gateway. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * URI of a Compute Engine network where the VPN gateway is configured. + * + * Generated from protobuf field string network_uri = 3; + */ + protected $network_uri = ''; + /** + * IP address of the VPN gateway. + * + * Generated from protobuf field string ip_address = 4; + */ + protected $ip_address = ''; + /** + * A VPN tunnel that is associated with this VPN gateway. + * There may be multiple VPN tunnels configured on a VPN gateway, and only + * the one relevant to the test is displayed. + * + * Generated from protobuf field string vpn_tunnel_uri = 5; + */ + protected $vpn_tunnel_uri = ''; + /** + * Name of a Google Cloud region where this VPN gateway is configured. + * + * Generated from protobuf field string region = 6; + */ + protected $region = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a VPN gateway. + * @type string $uri + * URI of a VPN gateway. + * @type string $network_uri + * URI of a Compute Engine network where the VPN gateway is configured. + * @type string $ip_address + * IP address of the VPN gateway. + * @type string $vpn_tunnel_uri + * A VPN tunnel that is associated with this VPN gateway. + * There may be multiple VPN tunnels configured on a VPN gateway, and only + * the one relevant to the test is displayed. + * @type string $region + * Name of a Google Cloud region where this VPN gateway is configured. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a VPN gateway. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a VPN gateway. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a VPN gateway. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a VPN gateway. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * URI of a Compute Engine network where the VPN gateway is configured. + * + * Generated from protobuf field string network_uri = 3; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of a Compute Engine network where the VPN gateway is configured. + * + * Generated from protobuf field string network_uri = 3; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * IP address of the VPN gateway. + * + * Generated from protobuf field string ip_address = 4; + * @return string + */ + public function getIpAddress() + { + return $this->ip_address; + } + + /** + * IP address of the VPN gateway. + * + * Generated from protobuf field string ip_address = 4; + * @param string $var + * @return $this + */ + public function setIpAddress($var) + { + GPBUtil::checkString($var, True); + $this->ip_address = $var; + + return $this; + } + + /** + * A VPN tunnel that is associated with this VPN gateway. + * There may be multiple VPN tunnels configured on a VPN gateway, and only + * the one relevant to the test is displayed. + * + * Generated from protobuf field string vpn_tunnel_uri = 5; + * @return string + */ + public function getVpnTunnelUri() + { + return $this->vpn_tunnel_uri; + } + + /** + * A VPN tunnel that is associated with this VPN gateway. + * There may be multiple VPN tunnels configured on a VPN gateway, and only + * the one relevant to the test is displayed. + * + * Generated from protobuf field string vpn_tunnel_uri = 5; + * @param string $var + * @return $this + */ + public function setVpnTunnelUri($var) + { + GPBUtil::checkString($var, True); + $this->vpn_tunnel_uri = $var; + + return $this; + } + + /** + * Name of a Google Cloud region where this VPN gateway is configured. + * + * Generated from protobuf field string region = 6; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Name of a Google Cloud region where this VPN gateway is configured. + * + * Generated from protobuf field string region = 6; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo.php new file mode 100644 index 000000000000..8785392491d0 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo.php @@ -0,0 +1,339 @@ +google.cloud.networkmanagement.v1.VpnTunnelInfo + */ +class VpnTunnelInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a VPN tunnel. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * URI of a VPN tunnel. + * + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * URI of the VPN gateway at local end of the tunnel. + * + * Generated from protobuf field string source_gateway = 3; + */ + protected $source_gateway = ''; + /** + * URI of a VPN gateway at remote end of the tunnel. + * + * Generated from protobuf field string remote_gateway = 4; + */ + protected $remote_gateway = ''; + /** + * Remote VPN gateway's IP address. + * + * Generated from protobuf field string remote_gateway_ip = 5; + */ + protected $remote_gateway_ip = ''; + /** + * Local VPN gateway's IP address. + * + * Generated from protobuf field string source_gateway_ip = 6; + */ + protected $source_gateway_ip = ''; + /** + * URI of a Compute Engine network where the VPN tunnel is configured. + * + * Generated from protobuf field string network_uri = 7; + */ + protected $network_uri = ''; + /** + * Name of a Google Cloud region where this VPN tunnel is configured. + * + * Generated from protobuf field string region = 8; + */ + protected $region = ''; + /** + * Type of the routing policy. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9; + */ + protected $routing_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Name of a VPN tunnel. + * @type string $uri + * URI of a VPN tunnel. + * @type string $source_gateway + * URI of the VPN gateway at local end of the tunnel. + * @type string $remote_gateway + * URI of a VPN gateway at remote end of the tunnel. + * @type string $remote_gateway_ip + * Remote VPN gateway's IP address. + * @type string $source_gateway_ip + * Local VPN gateway's IP address. + * @type string $network_uri + * URI of a Compute Engine network where the VPN tunnel is configured. + * @type string $region + * Name of a Google Cloud region where this VPN tunnel is configured. + * @type int $routing_type + * Type of the routing policy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); + parent::__construct($data); + } + + /** + * Name of a VPN tunnel. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Name of a VPN tunnel. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * URI of a VPN tunnel. + * + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of a VPN tunnel. + * + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * URI of the VPN gateway at local end of the tunnel. + * + * Generated from protobuf field string source_gateway = 3; + * @return string + */ + public function getSourceGateway() + { + return $this->source_gateway; + } + + /** + * URI of the VPN gateway at local end of the tunnel. + * + * Generated from protobuf field string source_gateway = 3; + * @param string $var + * @return $this + */ + public function setSourceGateway($var) + { + GPBUtil::checkString($var, True); + $this->source_gateway = $var; + + return $this; + } + + /** + * URI of a VPN gateway at remote end of the tunnel. + * + * Generated from protobuf field string remote_gateway = 4; + * @return string + */ + public function getRemoteGateway() + { + return $this->remote_gateway; + } + + /** + * URI of a VPN gateway at remote end of the tunnel. + * + * Generated from protobuf field string remote_gateway = 4; + * @param string $var + * @return $this + */ + public function setRemoteGateway($var) + { + GPBUtil::checkString($var, True); + $this->remote_gateway = $var; + + return $this; + } + + /** + * Remote VPN gateway's IP address. + * + * Generated from protobuf field string remote_gateway_ip = 5; + * @return string + */ + public function getRemoteGatewayIp() + { + return $this->remote_gateway_ip; + } + + /** + * Remote VPN gateway's IP address. + * + * Generated from protobuf field string remote_gateway_ip = 5; + * @param string $var + * @return $this + */ + public function setRemoteGatewayIp($var) + { + GPBUtil::checkString($var, True); + $this->remote_gateway_ip = $var; + + return $this; + } + + /** + * Local VPN gateway's IP address. + * + * Generated from protobuf field string source_gateway_ip = 6; + * @return string + */ + public function getSourceGatewayIp() + { + return $this->source_gateway_ip; + } + + /** + * Local VPN gateway's IP address. + * + * Generated from protobuf field string source_gateway_ip = 6; + * @param string $var + * @return $this + */ + public function setSourceGatewayIp($var) + { + GPBUtil::checkString($var, True); + $this->source_gateway_ip = $var; + + return $this; + } + + /** + * URI of a Compute Engine network where the VPN tunnel is configured. + * + * Generated from protobuf field string network_uri = 7; + * @return string + */ + public function getNetworkUri() + { + return $this->network_uri; + } + + /** + * URI of a Compute Engine network where the VPN tunnel is configured. + * + * Generated from protobuf field string network_uri = 7; + * @param string $var + * @return $this + */ + public function setNetworkUri($var) + { + GPBUtil::checkString($var, True); + $this->network_uri = $var; + + return $this; + } + + /** + * Name of a Google Cloud region where this VPN tunnel is configured. + * + * Generated from protobuf field string region = 8; + * @return string + */ + public function getRegion() + { + return $this->region; + } + + /** + * Name of a Google Cloud region where this VPN tunnel is configured. + * + * Generated from protobuf field string region = 8; + * @param string $var + * @return $this + */ + public function setRegion($var) + { + GPBUtil::checkString($var, True); + $this->region = $var; + + return $this; + } + + /** + * Type of the routing policy. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9; + * @return int + */ + public function getRoutingType() + { + return $this->routing_type; + } + + /** + * Type of the routing policy. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9; + * @param int $var + * @return $this + */ + public function setRoutingType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo\RoutingType::class); + $this->routing_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo/RoutingType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo/RoutingType.php new file mode 100644 index 000000000000..2550fd4408aa --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo/RoutingType.php @@ -0,0 +1,72 @@ +google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType + */ +class RoutingType +{ + /** + * Unspecified type. Default value. + * + * Generated from protobuf enum ROUTING_TYPE_UNSPECIFIED = 0; + */ + const ROUTING_TYPE_UNSPECIFIED = 0; + /** + * Route based VPN. + * + * Generated from protobuf enum ROUTE_BASED = 1; + */ + const ROUTE_BASED = 1; + /** + * Policy based routing. + * + * Generated from protobuf enum POLICY_BASED = 2; + */ + const POLICY_BASED = 2; + /** + * Dynamic (BGP) routing. + * + * Generated from protobuf enum DYNAMIC = 3; + */ + const DYNAMIC = 3; + + private static $valueToName = [ + self::ROUTING_TYPE_UNSPECIFIED => 'ROUTING_TYPE_UNSPECIFIED', + self::ROUTE_BASED => 'ROUTE_BASED', + self::POLICY_BASED => 'POLICY_BASED', + self::DYNAMIC => 'DYNAMIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RoutingType::class, \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo_RoutingType::class); + diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php new file mode 100644 index 000000000000..11e8efb01e9f --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php @@ -0,0 +1,118 @@ +setParent($formattedParent) + ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $organizationVpcFlowLogsServiceClient->createVpcFlowLogsConfig($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var VpcFlowLogsConfig $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OrganizationVpcFlowLogsServiceClient::organizationLocationName( + '[ORGANIZATION]', + '[LOCATION]' + ); + $formattedVpcFlowLogsConfigId = OrganizationVpcFlowLogsServiceClient::vpcFlowLogsConfigName( + '[PROJECT]', + '[LOCATION]', + '[VPC_FLOW_LOGS_CONFIG]' + ); + + create_vpc_flow_logs_config_sample($formattedParent, $formattedVpcFlowLogsConfigId); +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php new file mode 100644 index 000000000000..a0f888e6f2a5 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php @@ -0,0 +1,91 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $organizationVpcFlowLogsServiceClient->deleteVpcFlowLogsConfig($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OrganizationVpcFlowLogsServiceClient::vpcFlowLogsConfigName( + '[PROJECT]', + '[LOCATION]', + '[VPC_FLOW_LOGS_CONFIG]' + ); + + delete_vpc_flow_logs_config_sample($formattedName); +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..feaf7b0aa38a --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $organizationVpcFlowLogsServiceClient->getIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php new file mode 100644 index 000000000000..1e19cee510cb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetLocation_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php new file mode 100644 index 000000000000..ca1332dd2209 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var VpcFlowLogsConfig $response */ + $response = $organizationVpcFlowLogsServiceClient->getVpcFlowLogsConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OrganizationVpcFlowLogsServiceClient::vpcFlowLogsConfigName( + '[PROJECT]', + '[LOCATION]', + '[VPC_FLOW_LOGS_CONFIG]' + ); + + get_vpc_flow_logs_config_sample($formattedName); +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php new file mode 100644 index 000000000000..354f2f4741aa --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php @@ -0,0 +1,62 @@ +listLocations($request); + + /** @var Location $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListLocations_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php new file mode 100644 index 000000000000..575f90cd42a7 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php @@ -0,0 +1,85 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $organizationVpcFlowLogsServiceClient->listVpcFlowLogsConfigs($request); + + /** @var VpcFlowLogsConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OrganizationVpcFlowLogsServiceClient::organizationLocationName( + '[ORGANIZATION]', + '[LOCATION]' + ); + + list_vpc_flow_logs_configs_sample($formattedParent); +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..7a6f41f7ff60 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $organizationVpcFlowLogsServiceClient->setIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..906e4d316c5d --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $organizationVpcFlowLogsServiceClient->testIamPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php new file mode 100644 index 000000000000..c236cdd5f622 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php @@ -0,0 +1,88 @@ +setUpdateMask($updateMask) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $organizationVpcFlowLogsServiceClient->updateVpcFlowLogsConfig($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var VpcFlowLogsConfig $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/create_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/create_connectivity_test.php new file mode 100644 index 000000000000..52a0d5a8e004 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/create_connectivity_test.php @@ -0,0 +1,113 @@ +AMBIGUOUS. For more information, + * see the Connectivity Test documentation. + * + * @param string $formattedParent The parent resource of the Connectivity Test to create: + * `projects/{project_id}/locations/global` + * Please see {@see ReachabilityServiceClient::projectName()} for help formatting this field. + * @param string $testId The logical name of the Connectivity Test in your project + * with the following restrictions: + * + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project + */ +function create_connectivity_test_sample(string $formattedParent, string $testId): void +{ + // Create a client. + $reachabilityServiceClient = new ReachabilityServiceClient(); + + // Prepare the request message. + $resourceSource = new Endpoint(); + $resourceDestination = new Endpoint(); + $resource = (new ConnectivityTest()) + ->setSource($resourceSource) + ->setDestination($resourceDestination); + $request = (new CreateConnectivityTestRequest()) + ->setParent($formattedParent) + ->setTestId($testId) + ->setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $reachabilityServiceClient->createConnectivityTest($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var ConnectivityTest $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ReachabilityServiceClient::projectName('[PROJECT]'); + $testId = '[TEST_ID]'; + + create_connectivity_test_sample($formattedParent, $testId); +} +// [END networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/delete_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/delete_connectivity_test.php new file mode 100644 index 000000000000..a78753370fa0 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/delete_connectivity_test.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $reachabilityServiceClient->deleteConnectivityTest($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ReachabilityServiceClient::connectivityTestName('[PROJECT]', '[TEST]'); + + delete_connectivity_test_sample($formattedName); +} +// [END networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_connectivity_test.php new file mode 100644 index 000000000000..7344a6ec37cb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_connectivity_test.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ConnectivityTest $response */ + $response = $reachabilityServiceClient->getConnectivityTest($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ReachabilityServiceClient::connectivityTestName('[PROJECT]', '[TEST]'); + + get_connectivity_test_sample($formattedName); +} +// [END networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..1c1483ee6261 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $reachabilityServiceClient->getIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END networkmanagement_v1_generated_ReachabilityService_GetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_location.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_location.php new file mode 100644 index 000000000000..394e4abea9fb --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_ReachabilityService_GetLocation_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_connectivity_tests.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_connectivity_tests.php new file mode 100644 index 000000000000..aae5702a067e --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_connectivity_tests.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $reachabilityServiceClient->listConnectivityTests($request); + + /** @var ConnectivityTest $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ReachabilityServiceClient::projectName('[PROJECT]'); + + list_connectivity_tests_sample($formattedParent); +} +// [END networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_locations.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_locations.php new file mode 100644 index 000000000000..98a11ac6ba96 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_locations.php @@ -0,0 +1,62 @@ +listLocations($request); + + /** @var Location $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_ReachabilityService_ListLocations_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php new file mode 100644 index 000000000000..bf05a7eafd4f --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php @@ -0,0 +1,95 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $reachabilityServiceClient->rerunConnectivityTest($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var ConnectivityTest $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ReachabilityServiceClient::connectivityTestName('[PROJECT]', '[TEST]'); + + rerun_connectivity_test_sample($formattedName); +} +// [END networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/set_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..3d0ec5439566 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $reachabilityServiceClient->setIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END networkmanagement_v1_generated_ReachabilityService_SetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/test_iam_permissions.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..5989deb9c3a8 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $reachabilityServiceClient->testIamPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END networkmanagement_v1_generated_ReachabilityService_TestIamPermissions_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/update_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/update_connectivity_test.php new file mode 100644 index 000000000000..f6f9ac2f41aa --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/update_connectivity_test.php @@ -0,0 +1,92 @@ +UNKNOWN. + * + * If the endpoint specifications in `ConnectivityTest` are incomplete, the + * reachability result returns a value of `AMBIGUOUS`. See the documentation + * in `ConnectivityTest` for more details. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function update_connectivity_test_sample(): void +{ + // Create a client. + $reachabilityServiceClient = new ReachabilityServiceClient(); + + // Prepare the request message. + $updateMask = new FieldMask(); + $resourceSource = new Endpoint(); + $resourceDestination = new Endpoint(); + $resource = (new ConnectivityTest()) + ->setSource($resourceSource) + ->setDestination($resourceDestination); + $request = (new UpdateConnectivityTestRequest()) + ->setUpdateMask($updateMask) + ->setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $reachabilityServiceClient->updateConnectivityTest($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var ConnectivityTest $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_ReachabilityService_UpdateConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php new file mode 100644 index 000000000000..5470eeafc7b3 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php @@ -0,0 +1,118 @@ +setParent($formattedParent) + ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $vpcFlowLogsServiceClient->createVpcFlowLogsConfig($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var VpcFlowLogsConfig $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = VpcFlowLogsServiceClient::organizationLocationName( + '[ORGANIZATION]', + '[LOCATION]' + ); + $formattedVpcFlowLogsConfigId = VpcFlowLogsServiceClient::vpcFlowLogsConfigName( + '[PROJECT]', + '[LOCATION]', + '[VPC_FLOW_LOGS_CONFIG]' + ); + + create_vpc_flow_logs_config_sample($formattedParent, $formattedVpcFlowLogsConfigId); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php new file mode 100644 index 000000000000..2bbf6143f78b --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php @@ -0,0 +1,91 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $vpcFlowLogsServiceClient->deleteVpcFlowLogsConfig($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = VpcFlowLogsServiceClient::vpcFlowLogsConfigName( + '[PROJECT]', + '[LOCATION]', + '[VPC_FLOW_LOGS_CONFIG]' + ); + + delete_vpc_flow_logs_config_sample($formattedName); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..efc1bc5d87e7 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $vpcFlowLogsServiceClient->getIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_location.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_location.php new file mode 100644 index 000000000000..ab4170ef0830 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetLocation_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php new file mode 100644 index 000000000000..4aeba5e3850b --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var VpcFlowLogsConfig $response */ + $response = $vpcFlowLogsServiceClient->getVpcFlowLogsConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = VpcFlowLogsServiceClient::vpcFlowLogsConfigName( + '[PROJECT]', + '[LOCATION]', + '[VPC_FLOW_LOGS_CONFIG]' + ); + + get_vpc_flow_logs_config_sample($formattedName); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_locations.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_locations.php new file mode 100644 index 000000000000..6d665963636b --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_locations.php @@ -0,0 +1,62 @@ +listLocations($request); + + /** @var Location $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListLocations_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php new file mode 100644 index 000000000000..4b1557dc59da --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php @@ -0,0 +1,85 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $vpcFlowLogsServiceClient->listVpcFlowLogsConfigs($request); + + /** @var VpcFlowLogsConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = VpcFlowLogsServiceClient::organizationLocationName( + '[ORGANIZATION]', + '[LOCATION]' + ); + + list_vpc_flow_logs_configs_sample($formattedParent); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php new file mode 100644 index 000000000000..f1c263993fbf --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $vpcFlowLogsServiceClient->queryOrgVpcFlowLogsConfigs($request); + + /** @var VpcFlowLogsConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = VpcFlowLogsServiceClient::organizationLocationName( + '[ORGANIZATION]', + '[LOCATION]' + ); + + query_org_vpc_flow_logs_configs_sample($formattedParent); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..3705173f89b2 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $vpcFlowLogsServiceClient->setIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_SetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php new file mode 100644 index 000000000000..91b3263f7cc1 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php @@ -0,0 +1,87 @@ +setParent($formattedParent) + ->setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $vpcFlowLogsServiceClient->showEffectiveFlowLogsConfigs($request); + + /** @var EffectiveVpcFlowLogsConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = VpcFlowLogsServiceClient::organizationLocationName( + '[ORGANIZATION]', + '[LOCATION]' + ); + $resource = '[RESOURCE]'; + + show_effective_flow_logs_configs_sample($formattedParent, $resource); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..a943aff2aed7 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $vpcFlowLogsServiceClient->testIamPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_TestIamPermissions_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php new file mode 100644 index 000000000000..cb5182299b80 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php @@ -0,0 +1,88 @@ +setUpdateMask($updateMask) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $vpcFlowLogsServiceClient->updateVpcFlowLogsConfig($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var VpcFlowLogsConfig $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/OrganizationVpcFlowLogsServiceClient.php b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/OrganizationVpcFlowLogsServiceClient.php new file mode 100644 index 000000000000..6b8e0f2494a3 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/OrganizationVpcFlowLogsServiceClient.php @@ -0,0 +1,693 @@ + createVpcFlowLogsConfigAsync(CreateVpcFlowLogsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteVpcFlowLogsConfigAsync(DeleteVpcFlowLogsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVpcFlowLogsConfigAsync(GetVpcFlowLogsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface listVpcFlowLogsConfigsAsync(ListVpcFlowLogsConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVpcFlowLogsConfigAsync(UpdateVpcFlowLogsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class OrganizationVpcFlowLogsServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'networkmanagement.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'networkmanagement.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/organization_vpc_flow_logs_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/organization_vpc_flow_logs_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/organization_vpc_flow_logs_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/organization_vpc_flow_logs_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location resource. + * + * @param string $organization + * @param string $location + * + * @return string The formatted organization_location resource. + */ + public static function organizationLocationName(string $organization, string $location): string + { + return self::getPathTemplate('organizationLocation')->render([ + 'organization' => $organization, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_vpc_flow_logs_config resource. + * + * @param string $organization + * @param string $location + * @param string $vpcFlowLogsConfig + * + * @return string The formatted organization_location_vpc_flow_logs_config resource. + */ + public static function organizationLocationVpcFlowLogsConfigName(string $organization, string $location, string $vpcFlowLogsConfig): string + { + return self::getPathTemplate('organizationLocationVpcFlowLogsConfig')->render([ + 'organization' => $organization, + 'location' => $location, + 'vpc_flow_logs_config' => $vpcFlowLogsConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_vpc_flow_logs_config resource. + * + * @param string $project + * @param string $location + * @param string $vpcFlowLogsConfig + * + * @return string The formatted project_location_vpc_flow_logs_config resource. + */ + public static function projectLocationVpcFlowLogsConfigName(string $project, string $location, string $vpcFlowLogsConfig): string + { + return self::getPathTemplate('projectLocationVpcFlowLogsConfig')->render([ + 'project' => $project, + 'location' => $location, + 'vpc_flow_logs_config' => $vpcFlowLogsConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * vpc_flow_logs_config resource. + * + * @param string $project + * @param string $location + * @param string $vpcFlowLogsConfig + * + * @return string The formatted vpc_flow_logs_config resource. + */ + public static function vpcFlowLogsConfigName(string $project, string $location, string $vpcFlowLogsConfig): string + { + return self::getPathTemplate('vpcFlowLogsConfig')->render([ + 'project' => $project, + 'location' => $location, + 'vpc_flow_logs_config' => $vpcFlowLogsConfig, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - location: projects/{project}/locations/{location} + * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationVpcFlowLogsConfig: organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} + * - projectLocationVpcFlowLogsConfig: projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} + * - vpcFlowLogsConfig: projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'networkmanagement.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\NetworkManagement\V1\OrganizationVpcFlowLogsServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new OrganizationVpcFlowLogsServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a new `VpcFlowLogsConfig`. + * If a configuration with the exact same settings already exists (even if the + * ID is different), the creation fails. + * Notes: + * + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - creating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::createVpcFlowLogsConfigAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php + * + * @param CreateVpcFlowLogsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateVpcFlowLogsConfig', $request, $callOptions)->wait(); + } + + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::deleteVpcFlowLogsConfigAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php + * + * @param DeleteVpcFlowLogsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteVpcFlowLogsConfig(DeleteVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteVpcFlowLogsConfig', $request, $callOptions)->wait(); + } + + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::getVpcFlowLogsConfigAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php + * + * @param GetVpcFlowLogsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return VpcFlowLogsConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest $request, array $callOptions = []): VpcFlowLogsConfig + { + return $this->startApiCall('GetVpcFlowLogsConfig', $request, $callOptions)->wait(); + } + + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::listVpcFlowLogsConfigsAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php + * + * @param ListVpcFlowLogsConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListVpcFlowLogsConfigs', $request, $callOptions); + } + + /** + * Updates an existing `VpcFlowLogsConfig`. + * If a configuration with the exact same settings already exists (even if the + * ID is different), the creation fails. + * Notes: + * + * 1. Updating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - updating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::updateVpcFlowLogsConfigAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php + * + * @param UpdateVpcFlowLogsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateVpcFlowLogsConfig', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::getLocationAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php + * + * @param GetLocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::listLocationsAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php + * + * @param ListLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is + * {@see OrganizationVpcFlowLogsServiceClient::testIamPermissionsAsync()} . + * + * @example samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/ReachabilityServiceClient.php b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/ReachabilityServiceClient.php new file mode 100644 index 000000000000..281d61fd38f3 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/ReachabilityServiceClient.php @@ -0,0 +1,668 @@ + createConnectivityTestAsync(CreateConnectivityTestRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConnectivityTestAsync(DeleteConnectivityTestRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConnectivityTestAsync(GetConnectivityTestRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConnectivityTestsAsync(ListConnectivityTestsRequest $request, array $optionalArgs = []) + * @method PromiseInterface rerunConnectivityTestAsync(RerunConnectivityTestRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConnectivityTestAsync(UpdateConnectivityTestRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class ReachabilityServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.networkmanagement.v1.ReachabilityService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'networkmanagement.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'networkmanagement.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/reachability_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/reachability_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/reachability_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/reachability_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * connectivity_test resource. + * + * @param string $project + * @param string $test + * + * @return string The formatted connectivity_test resource. + */ + public static function connectivityTestName(string $project, string $test): string + { + return self::getPathTemplate('connectivityTest')->render([ + 'project' => $project, + 'test' => $test, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a project + * resource. + * + * @param string $project + * + * @return string The formatted project resource. + */ + public static function projectName(string $project): string + { + return self::getPathTemplate('project')->render([ + 'project' => $project, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - connectivityTest: projects/{project}/locations/global/connectivityTests/{test} + * - project: projects/{project} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'networkmanagement.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\NetworkManagement\V1\ReachabilityServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ReachabilityServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a new Connectivity Test. + * After you create a test, the reachability analysis is performed as part + * of the long running operation, which completes when the analysis completes. + * + * If the endpoint specifications in `ConnectivityTest` are invalid + * (for example, containing non-existent resources in the network, or you + * don't have read permissions to the network configurations of listed + * projects), then the reachability result returns a value of `UNKNOWN`. + * + * If the endpoint specifications in `ConnectivityTest` are + * incomplete, the reachability result returns a value of + * AMBIGUOUS. For more information, + * see the Connectivity Test documentation. + * + * The async variant is + * {@see ReachabilityServiceClient::createConnectivityTestAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/create_connectivity_test.php + * + * @param CreateConnectivityTestRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createConnectivityTest(CreateConnectivityTestRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateConnectivityTest', $request, $callOptions)->wait(); + } + + /** + * Deletes a specific `ConnectivityTest`. + * + * The async variant is + * {@see ReachabilityServiceClient::deleteConnectivityTestAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/delete_connectivity_test.php + * + * @param DeleteConnectivityTestRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteConnectivityTest(DeleteConnectivityTestRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteConnectivityTest', $request, $callOptions)->wait(); + } + + /** + * Gets the details of a specific Connectivity Test. + * + * The async variant is + * {@see ReachabilityServiceClient::getConnectivityTestAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/get_connectivity_test.php + * + * @param GetConnectivityTestRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ConnectivityTest + * + * @throws ApiException Thrown if the API call fails. + */ + public function getConnectivityTest(GetConnectivityTestRequest $request, array $callOptions = []): ConnectivityTest + { + return $this->startApiCall('GetConnectivityTest', $request, $callOptions)->wait(); + } + + /** + * Lists all Connectivity Tests owned by a project. + * + * The async variant is + * {@see ReachabilityServiceClient::listConnectivityTestsAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/list_connectivity_tests.php + * + * @param ListConnectivityTestsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listConnectivityTests(ListConnectivityTestsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListConnectivityTests', $request, $callOptions); + } + + /** + * Rerun an existing `ConnectivityTest`. + * After the user triggers the rerun, the reachability analysis is performed + * as part of the long running operation, which completes when the analysis + * completes. + * + * Even though the test configuration remains the same, the reachability + * result may change due to underlying network configuration changes. + * + * If the endpoint specifications in `ConnectivityTest` become invalid (for + * example, specified resources are deleted in the network, or you lost + * read permissions to the network configurations of listed projects), then + * the reachability result returns a value of `UNKNOWN`. + * + * The async variant is + * {@see ReachabilityServiceClient::rerunConnectivityTestAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php + * + * @param RerunConnectivityTestRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function rerunConnectivityTest(RerunConnectivityTestRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('RerunConnectivityTest', $request, $callOptions)->wait(); + } + + /** + * Updates the configuration of an existing `ConnectivityTest`. + * After you update a test, the reachability analysis is performed as part + * of the long running operation, which completes when the analysis completes. + * The Reachability state in the test resource is updated with the new result. + * + * If the endpoint specifications in `ConnectivityTest` are invalid + * (for example, they contain non-existent resources in the network, or the + * user does not have read permissions to the network configurations of + * listed projects), then the reachability result returns a value of + * UNKNOWN. + * + * If the endpoint specifications in `ConnectivityTest` are incomplete, the + * reachability result returns a value of `AMBIGUOUS`. See the documentation + * in `ConnectivityTest` for more details. + * + * The async variant is + * {@see ReachabilityServiceClient::updateConnectivityTestAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/update_connectivity_test.php + * + * @param UpdateConnectivityTestRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateConnectivityTest(UpdateConnectivityTestRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateConnectivityTest', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see ReachabilityServiceClient::getLocationAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/get_location.php + * + * @param GetLocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + * + * The async variant is {@see ReachabilityServiceClient::listLocationsAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/list_locations.php + * + * @param ListLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see ReachabilityServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see ReachabilityServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/ReachabilityServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see ReachabilityServiceClient::testIamPermissionsAsync()} + * . + * + * @example samples/V1/ReachabilityServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/VpcFlowLogsServiceClient.php b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/VpcFlowLogsServiceClient.php new file mode 100644 index 000000000000..1f69568a70a9 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/VpcFlowLogsServiceClient.php @@ -0,0 +1,748 @@ + createVpcFlowLogsConfigAsync(CreateVpcFlowLogsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteVpcFlowLogsConfigAsync(DeleteVpcFlowLogsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVpcFlowLogsConfigAsync(GetVpcFlowLogsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface listVpcFlowLogsConfigsAsync(ListVpcFlowLogsConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryOrgVpcFlowLogsConfigsAsync(QueryOrgVpcFlowLogsConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface showEffectiveFlowLogsConfigsAsync(ShowEffectiveFlowLogsConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVpcFlowLogsConfigAsync(UpdateVpcFlowLogsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class VpcFlowLogsServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.networkmanagement.v1.VpcFlowLogsService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'networkmanagement.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'networkmanagement.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/vpc_flow_logs_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/vpc_flow_logs_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/vpc_flow_logs_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/vpc_flow_logs_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location resource. + * + * @param string $organization + * @param string $location + * + * @return string The formatted organization_location resource. + */ + public static function organizationLocationName(string $organization, string $location): string + { + return self::getPathTemplate('organizationLocation')->render([ + 'organization' => $organization, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_vpc_flow_logs_config resource. + * + * @param string $organization + * @param string $location + * @param string $vpcFlowLogsConfig + * + * @return string The formatted organization_location_vpc_flow_logs_config resource. + */ + public static function organizationLocationVpcFlowLogsConfigName(string $organization, string $location, string $vpcFlowLogsConfig): string + { + return self::getPathTemplate('organizationLocationVpcFlowLogsConfig')->render([ + 'organization' => $organization, + 'location' => $location, + 'vpc_flow_logs_config' => $vpcFlowLogsConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_vpc_flow_logs_config resource. + * + * @param string $project + * @param string $location + * @param string $vpcFlowLogsConfig + * + * @return string The formatted project_location_vpc_flow_logs_config resource. + */ + public static function projectLocationVpcFlowLogsConfigName(string $project, string $location, string $vpcFlowLogsConfig): string + { + return self::getPathTemplate('projectLocationVpcFlowLogsConfig')->render([ + 'project' => $project, + 'location' => $location, + 'vpc_flow_logs_config' => $vpcFlowLogsConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * vpc_flow_logs_config resource. + * + * @param string $project + * @param string $location + * @param string $vpcFlowLogsConfig + * + * @return string The formatted vpc_flow_logs_config resource. + */ + public static function vpcFlowLogsConfigName(string $project, string $location, string $vpcFlowLogsConfig): string + { + return self::getPathTemplate('vpcFlowLogsConfig')->render([ + 'project' => $project, + 'location' => $location, + 'vpc_flow_logs_config' => $vpcFlowLogsConfig, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - location: projects/{project}/locations/{location} + * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationVpcFlowLogsConfig: organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} + * - projectLocationVpcFlowLogsConfig: projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} + * - vpcFlowLogsConfig: projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'networkmanagement.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\NetworkManagement\V1\VpcFlowLogsServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new VpcFlowLogsServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a new `VpcFlowLogsConfig`. + * If a configuration with the exact same settings already exists (even if the + * ID is different), the creation fails. + * Notes: + * + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - creating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description + * + * The async variant is + * {@see VpcFlowLogsServiceClient::createVpcFlowLogsConfigAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php + * + * @param CreateVpcFlowLogsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateVpcFlowLogsConfig', $request, $callOptions)->wait(); + } + + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + * The async variant is + * {@see VpcFlowLogsServiceClient::deleteVpcFlowLogsConfigAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php + * + * @param DeleteVpcFlowLogsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteVpcFlowLogsConfig(DeleteVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteVpcFlowLogsConfig', $request, $callOptions)->wait(); + } + + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + * The async variant is + * {@see VpcFlowLogsServiceClient::getVpcFlowLogsConfigAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php + * + * @param GetVpcFlowLogsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return VpcFlowLogsConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest $request, array $callOptions = []): VpcFlowLogsConfig + { + return $this->startApiCall('GetVpcFlowLogsConfig', $request, $callOptions)->wait(); + } + + /** + * Lists all `VpcFlowLogsConfigs` in a given project. + * + * The async variant is + * {@see VpcFlowLogsServiceClient::listVpcFlowLogsConfigsAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php + * + * @param ListVpcFlowLogsConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListVpcFlowLogsConfigs', $request, $callOptions); + } + + /** + * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC + * Flow Logs configurations applicable to the specified project. + * + * The async variant is + * {@see VpcFlowLogsServiceClient::queryOrgVpcFlowLogsConfigsAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php + * + * @param QueryOrgVpcFlowLogsConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryOrgVpcFlowLogsConfigs(QueryOrgVpcFlowLogsConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryOrgVpcFlowLogsConfigs', $request, $callOptions); + } + + /** + * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs + * configurations applicable to a specified resource. + * + * The async variant is + * {@see VpcFlowLogsServiceClient::showEffectiveFlowLogsConfigsAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php + * + * @param ShowEffectiveFlowLogsConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function showEffectiveFlowLogsConfigs(ShowEffectiveFlowLogsConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ShowEffectiveFlowLogsConfigs', $request, $callOptions); + } + + /** + * Updates an existing `VpcFlowLogsConfig`. + * If a configuration with the exact same settings already exists (even if the + * ID is different), the creation fails. + * Notes: + * + * 1. Updating a configuration with `state=DISABLED` will fail. + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - updating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description + * + * The async variant is + * {@see VpcFlowLogsServiceClient::updateVpcFlowLogsConfigAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php + * + * @param UpdateVpcFlowLogsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateVpcFlowLogsConfig', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see VpcFlowLogsServiceClient::getLocationAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/get_location.php + * + * @param GetLocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + * + * The async variant is {@see VpcFlowLogsServiceClient::listLocationsAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/list_locations.php + * + * @param ListLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see VpcFlowLogsServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see VpcFlowLogsServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see VpcFlowLogsServiceClient::testIamPermissionsAsync()} + * . + * + * @example samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/gapic_metadata.json b/owl-bot-staging/NetworkManagement/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..d9f12f6ba6de --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/gapic_metadata.json @@ -0,0 +1,201 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.networkmanagement.v1", + "libraryPackage": "Google\\Cloud\\NetworkManagement\\V1", + "services": { + "ReachabilityService": { + "clients": { + "grpc": { + "libraryClient": "ReachabilityServiceGapicClient", + "rpcs": { + "CreateConnectivityTest": { + "methods": [ + "createConnectivityTest" + ] + }, + "DeleteConnectivityTest": { + "methods": [ + "deleteConnectivityTest" + ] + }, + "GetConnectivityTest": { + "methods": [ + "getConnectivityTest" + ] + }, + "ListConnectivityTests": { + "methods": [ + "listConnectivityTests" + ] + }, + "RerunConnectivityTest": { + "methods": [ + "rerunConnectivityTest" + ] + }, + "UpdateConnectivityTest": { + "methods": [ + "updateConnectivityTest" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "VpcFlowLogsService": { + "clients": { + "grpc": { + "libraryClient": "VpcFlowLogsServiceGapicClient", + "rpcs": { + "CreateVpcFlowLogsConfig": { + "methods": [ + "createVpcFlowLogsConfig" + ] + }, + "DeleteVpcFlowLogsConfig": { + "methods": [ + "deleteVpcFlowLogsConfig" + ] + }, + "GetVpcFlowLogsConfig": { + "methods": [ + "getVpcFlowLogsConfig" + ] + }, + "ListVpcFlowLogsConfigs": { + "methods": [ + "listVpcFlowLogsConfigs" + ] + }, + "QueryOrgVpcFlowLogsConfigs": { + "methods": [ + "queryOrgVpcFlowLogsConfigs" + ] + }, + "ShowEffectiveFlowLogsConfigs": { + "methods": [ + "showEffectiveFlowLogsConfigs" + ] + }, + "UpdateVpcFlowLogsConfig": { + "methods": [ + "updateVpcFlowLogsConfig" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "OrganizationVpcFlowLogsService": { + "clients": { + "grpc": { + "libraryClient": "OrganizationVpcFlowLogsServiceGapicClient", + "rpcs": { + "CreateVpcFlowLogsConfig": { + "methods": [ + "createVpcFlowLogsConfig" + ] + }, + "DeleteVpcFlowLogsConfig": { + "methods": [ + "deleteVpcFlowLogsConfig" + ] + }, + "GetVpcFlowLogsConfig": { + "methods": [ + "getVpcFlowLogsConfig" + ] + }, + "ListVpcFlowLogsConfigs": { + "methods": [ + "listVpcFlowLogsConfigs" + ] + }, + "UpdateVpcFlowLogsConfig": { + "methods": [ + "updateVpcFlowLogsConfig" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_client_config.json b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_client_config.json new file mode 100644 index 000000000000..97ea46fc0c69 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_client_config.json @@ -0,0 +1,72 @@ +{ + "interfaces": { + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "CreateVpcFlowLogsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteVpcFlowLogsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetVpcFlowLogsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListVpcFlowLogsConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateVpcFlowLogsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_descriptor_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_descriptor_config.php new file mode 100644 index 000000000000..3bc3a88e8176 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_descriptor_config.php @@ -0,0 +1,198 @@ + [ + 'google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService' => [ + 'CreateVpcFlowLogsConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteVpcFlowLogsConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateVpcFlowLogsConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'vpc_flow_logs_config.name', + 'fieldAccessors' => [ + 'getVpcFlowLogsConfig', + 'getName', + ], + ], + ], + ], + 'GetVpcFlowLogsConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListVpcFlowLogsConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getVpcFlowLogsConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\NetworkManagement\V1\ListVpcFlowLogsConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'location' => 'projects/{project}/locations/{location}', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationVpcFlowLogsConfig' => 'organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', + 'projectLocationVpcFlowLogsConfig' => 'projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', + 'vpcFlowLogsConfig' => 'projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', + ], + ], + ], +]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php new file mode 100644 index 000000000000..baa37ad6b86a --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php @@ -0,0 +1,238 @@ + [ + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*}/locations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService' => [ + 'CreateVpcFlowLogsConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs', + 'body' => 'vpc_flow_logs_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'vpc_flow_logs_config_id', + ], + ], + 'DeleteVpcFlowLogsConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetVpcFlowLogsConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListVpcFlowLogsConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateVpcFlowLogsConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{vpc_flow_logs_config.name=organizations/*/locations/*/vpcFlowLogsConfigs/*}', + 'body' => 'vpc_flow_logs_config', + 'placeholders' => [ + 'vpc_flow_logs_config.name' => [ + 'getters' => [ + 'getVpcFlowLogsConfig', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/global}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_client_config.json b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_client_config.json new file mode 100644 index 000000000000..a3be86836334 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_client_config.json @@ -0,0 +1,87 @@ +{ + "interfaces": { + "google.cloud.networkmanagement.v1.ReachabilityService": { + "retry_codes": { + "no_retry_codes": [], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateConnectivityTest": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteConnectivityTest": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetConnectivityTest": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListConnectivityTests": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "RerunConnectivityTest": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateConnectivityTest": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_descriptor_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_descriptor_config.php new file mode 100644 index 000000000000..b24b165a7f7e --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_descriptor_config.php @@ -0,0 +1,214 @@ + [ + 'google.cloud.networkmanagement.v1.ReachabilityService' => [ + 'CreateConnectivityTest' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\ConnectivityTest', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteConnectivityTest' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'RerunConnectivityTest' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\ConnectivityTest', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateConnectivityTest' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\ConnectivityTest', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'resource.name', + 'fieldAccessors' => [ + 'getResource', + 'getName', + ], + ], + ], + ], + 'GetConnectivityTest' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\NetworkManagement\V1\ConnectivityTest', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListConnectivityTests' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResources', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\NetworkManagement\V1\ListConnectivityTestsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'connectivityTest' => 'projects/{project}/locations/global/connectivityTests/{test}', + 'project' => 'projects/{project}', + ], + ], + ], +]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_rest_client_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_rest_client_config.php new file mode 100644 index 000000000000..3c3c26eec550 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_rest_client_config.php @@ -0,0 +1,250 @@ + [ + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*}/locations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.networkmanagement.v1.ReachabilityService' => [ + 'CreateConnectivityTest' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/global}/connectivityTests', + 'body' => 'resource', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'test_id', + ], + ], + 'DeleteConnectivityTest' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/connectivityTests/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConnectivityTest' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/connectivityTests/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListConnectivityTests' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/global}/connectivityTests', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RerunConnectivityTest' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/connectivityTests/*}:rerun', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateConnectivityTest' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{resource.name=projects/*/locations/global/connectivityTests/*}', + 'body' => 'resource', + 'placeholders' => [ + 'resource.name' => [ + 'getters' => [ + 'getResource', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/global}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_client_config.json b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_client_config.json new file mode 100644 index 000000000000..6f512eef56d7 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_client_config.json @@ -0,0 +1,82 @@ +{ + "interfaces": { + "google.cloud.networkmanagement.v1.VpcFlowLogsService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "CreateVpcFlowLogsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteVpcFlowLogsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetVpcFlowLogsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListVpcFlowLogsConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryOrgVpcFlowLogsConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ShowEffectiveFlowLogsConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateVpcFlowLogsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_descriptor_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_descriptor_config.php new file mode 100644 index 000000000000..0246ad2b5443 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_descriptor_config.php @@ -0,0 +1,238 @@ + [ + 'google.cloud.networkmanagement.v1.VpcFlowLogsService' => [ + 'CreateVpcFlowLogsConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteVpcFlowLogsConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateVpcFlowLogsConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', + 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'vpc_flow_logs_config.name', + 'fieldAccessors' => [ + 'getVpcFlowLogsConfig', + 'getName', + ], + ], + ], + ], + 'GetVpcFlowLogsConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListVpcFlowLogsConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getVpcFlowLogsConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\NetworkManagement\V1\ListVpcFlowLogsConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'QueryOrgVpcFlowLogsConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getVpcFlowLogsConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\NetworkManagement\V1\QueryOrgVpcFlowLogsConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ShowEffectiveFlowLogsConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEffectiveFlowLogsConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\NetworkManagement\V1\ShowEffectiveFlowLogsConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'location' => 'projects/{project}/locations/{location}', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationVpcFlowLogsConfig' => 'organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', + 'projectLocationVpcFlowLogsConfig' => 'projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', + 'vpcFlowLogsConfig' => 'projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', + ], + ], + ], +]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_rest_client_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_rest_client_config.php new file mode 100644 index 000000000000..7a3087528d3e --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_rest_client_config.php @@ -0,0 +1,260 @@ + [ + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*}/locations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.networkmanagement.v1.VpcFlowLogsService' => [ + 'CreateVpcFlowLogsConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs', + 'body' => 'vpc_flow_logs_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'vpc_flow_logs_config_id', + ], + ], + 'DeleteVpcFlowLogsConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetVpcFlowLogsConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListVpcFlowLogsConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'QueryOrgVpcFlowLogsConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ShowEffectiveFlowLogsConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateVpcFlowLogsConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{vpc_flow_logs_config.name=projects/*/locations/*/vpcFlowLogsConfigs/*}', + 'body' => 'vpc_flow_logs_config', + 'placeholders' => [ + 'vpc_flow_logs_config.name' => [ + 'getters' => [ + 'getVpcFlowLogsConfig', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions', + 'body' => '*', + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/global}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/OrganizationVpcFlowLogsServiceClientTest.php b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/OrganizationVpcFlowLogsServiceClientTest.php new file mode 100644 index 000000000000..c8719fd4880c --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/OrganizationVpcFlowLogsServiceClientTest.php @@ -0,0 +1,1039 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return OrganizationVpcFlowLogsServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new OrganizationVpcFlowLogsServiceClient($options); + } + + /** @test */ + public function createVpcFlowLogsConfigTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $flowSampling = -4027498; + $filterExpr = 'filterExpr-890367396'; + $network = 'network1843485230'; + $expectedResponse = new VpcFlowLogsConfig(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setFlowSampling($flowSampling); + $expectedResponse->setFilterExpr($filterExpr); + $expectedResponse->setNetwork($network); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createVpcFlowLogsConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new CreateVpcFlowLogsConfigRequest()) + ->setParent($formattedParent) + ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->createVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/CreateVpcFlowLogsConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfigId(); + $this->assertProtobufEquals($formattedVpcFlowLogsConfigId, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); + $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createVpcFlowLogsConfigExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new CreateVpcFlowLogsConfigRequest()) + ->setParent($formattedParent) + ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->createVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteVpcFlowLogsConfigTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteVpcFlowLogsConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $request = (new DeleteVpcFlowLogsConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/DeleteVpcFlowLogsConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteVpcFlowLogsConfigTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteVpcFlowLogsConfigExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $request = (new DeleteVpcFlowLogsConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteVpcFlowLogsConfigTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getVpcFlowLogsConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $flowSampling = -4027498; + $filterExpr = 'filterExpr-890367396'; + $network = 'network1843485230'; + $expectedResponse = new VpcFlowLogsConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setFlowSampling($flowSampling); + $expectedResponse->setFilterExpr($filterExpr); + $expectedResponse->setNetwork($network); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $request = (new GetVpcFlowLogsConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getVpcFlowLogsConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/GetVpcFlowLogsConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getVpcFlowLogsConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $request = (new GetVpcFlowLogsConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getVpcFlowLogsConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listVpcFlowLogsConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $vpcFlowLogsConfigsElement = new VpcFlowLogsConfig(); + $vpcFlowLogsConfigs = [ + $vpcFlowLogsConfigsElement, + ]; + $expectedResponse = new ListVpcFlowLogsConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setVpcFlowLogsConfigs($vpcFlowLogsConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListVpcFlowLogsConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listVpcFlowLogsConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getVpcFlowLogsConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/ListVpcFlowLogsConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listVpcFlowLogsConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListVpcFlowLogsConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listVpcFlowLogsConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVpcFlowLogsConfigTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $flowSampling = -4027498; + $filterExpr = 'filterExpr-890367396'; + $network = 'network1843485230'; + $expectedResponse = new VpcFlowLogsConfig(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setFlowSampling($flowSampling); + $expectedResponse->setFilterExpr($filterExpr); + $expectedResponse->setNetwork($network); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateVpcFlowLogsConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new UpdateVpcFlowLogsConfigRequest()) + ->setUpdateMask($updateMask) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->updateVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/UpdateVpcFlowLogsConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); + $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateVpcFlowLogsConfigTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateVpcFlowLogsConfigExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new UpdateVpcFlowLogsConfigRequest()) + ->setUpdateMask($updateMask) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->updateVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateVpcFlowLogsConfigTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createVpcFlowLogsConfigAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $flowSampling = -4027498; + $filterExpr = 'filterExpr-890367396'; + $network = 'network1843485230'; + $expectedResponse = new VpcFlowLogsConfig(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setFlowSampling($flowSampling); + $expectedResponse->setFilterExpr($filterExpr); + $expectedResponse->setNetwork($network); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createVpcFlowLogsConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new CreateVpcFlowLogsConfigRequest()) + ->setParent($formattedParent) + ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->createVpcFlowLogsConfigAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/CreateVpcFlowLogsConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfigId(); + $this->assertProtobufEquals($formattedVpcFlowLogsConfigId, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); + $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} diff --git a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/ReachabilityServiceClientTest.php b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/ReachabilityServiceClientTest.php new file mode 100644 index 000000000000..81d2cee56066 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/ReachabilityServiceClientTest.php @@ -0,0 +1,1202 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ReachabilityServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ReachabilityServiceClient($options); + } + + /** @test */ + public function createConnectivityTestTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $protocol = 'protocol-989163880'; + $displayName = 'displayName1615086568'; + $roundTrip = true; + $bypassFirewallChecks = false; + $expectedResponse = new ConnectivityTest(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setProtocol($protocol); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRoundTrip($roundTrip); + $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createConnectivityTestTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $testId = 'testId-1422455832'; + $resource = new ConnectivityTest(); + $resourceSource = new Endpoint(); + $resource->setSource($resourceSource); + $resourceDestination = new Endpoint(); + $resource->setDestination($resourceDestination); + $request = (new CreateConnectivityTestRequest()) + ->setParent($formattedParent) + ->setTestId($testId) + ->setResource($resource); + $response = $gapicClient->createConnectivityTest($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/CreateConnectivityTest', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getTestId(); + $this->assertProtobufEquals($testId, $actualValue); + $actualValue = $actualApiRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createConnectivityTestTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createConnectivityTestExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $testId = 'testId-1422455832'; + $resource = new ConnectivityTest(); + $resourceSource = new Endpoint(); + $resource->setSource($resourceSource); + $resourceDestination = new Endpoint(); + $resource->setDestination($resourceDestination); + $request = (new CreateConnectivityTestRequest()) + ->setParent($formattedParent) + ->setTestId($testId) + ->setResource($resource); + $response = $gapicClient->createConnectivityTest($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createConnectivityTestTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteConnectivityTestTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteConnectivityTestTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); + $request = (new DeleteConnectivityTestRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteConnectivityTest($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/DeleteConnectivityTest', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteConnectivityTestTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteConnectivityTestExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); + $request = (new DeleteConnectivityTestRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteConnectivityTest($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteConnectivityTestTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getConnectivityTestTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $protocol = 'protocol-989163880'; + $displayName = 'displayName1615086568'; + $roundTrip = true; + $bypassFirewallChecks = false; + $expectedResponse = new ConnectivityTest(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setProtocol($protocol); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRoundTrip($roundTrip); + $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); + $request = (new GetConnectivityTestRequest()) + ->setName($formattedName); + $response = $gapicClient->getConnectivityTest($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/GetConnectivityTest', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConnectivityTestExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); + $request = (new GetConnectivityTestRequest()) + ->setName($formattedName); + try { + $gapicClient->getConnectivityTest($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConnectivityTestsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $resourcesElement = new ConnectivityTest(); + $resources = [ + $resourcesElement, + ]; + $expectedResponse = new ListConnectivityTestsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResources($resources); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListConnectivityTestsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listConnectivityTests($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResources()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/ListConnectivityTests', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConnectivityTestsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListConnectivityTestsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listConnectivityTests($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rerunConnectivityTestTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/rerunConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $protocol = 'protocol-989163880'; + $displayName = 'displayName1615086568'; + $roundTrip = true; + $bypassFirewallChecks = false; + $expectedResponse = new ConnectivityTest(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setProtocol($protocol); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRoundTrip($roundTrip); + $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/rerunConnectivityTestTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); + $request = (new RerunConnectivityTestRequest()) + ->setName($formattedName); + $response = $gapicClient->rerunConnectivityTest($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/RerunConnectivityTest', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/rerunConnectivityTestTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function rerunConnectivityTestExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/rerunConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); + $request = (new RerunConnectivityTestRequest()) + ->setName($formattedName); + $response = $gapicClient->rerunConnectivityTest($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/rerunConnectivityTestTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateConnectivityTestTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $protocol = 'protocol-989163880'; + $displayName = 'displayName1615086568'; + $roundTrip = true; + $bypassFirewallChecks = false; + $expectedResponse = new ConnectivityTest(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setProtocol($protocol); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRoundTrip($roundTrip); + $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateConnectivityTestTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $resource = new ConnectivityTest(); + $resourceSource = new Endpoint(); + $resource->setSource($resourceSource); + $resourceDestination = new Endpoint(); + $resource->setDestination($resourceDestination); + $request = (new UpdateConnectivityTestRequest()) + ->setUpdateMask($updateMask) + ->setResource($resource); + $response = $gapicClient->updateConnectivityTest($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/UpdateConnectivityTest', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateConnectivityTestTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateConnectivityTestExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $resource = new ConnectivityTest(); + $resourceSource = new Endpoint(); + $resource->setSource($resourceSource); + $resourceDestination = new Endpoint(); + $resource->setDestination($resourceDestination); + $request = (new UpdateConnectivityTestRequest()) + ->setUpdateMask($updateMask) + ->setResource($resource); + $response = $gapicClient->updateConnectivityTest($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateConnectivityTestTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConnectivityTestAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createConnectivityTestTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $protocol = 'protocol-989163880'; + $displayName = 'displayName1615086568'; + $roundTrip = true; + $bypassFirewallChecks = false; + $expectedResponse = new ConnectivityTest(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setProtocol($protocol); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRoundTrip($roundTrip); + $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createConnectivityTestTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $testId = 'testId-1422455832'; + $resource = new ConnectivityTest(); + $resourceSource = new Endpoint(); + $resource->setSource($resourceSource); + $resourceDestination = new Endpoint(); + $resource->setDestination($resourceDestination); + $request = (new CreateConnectivityTestRequest()) + ->setParent($formattedParent) + ->setTestId($testId) + ->setResource($resource); + $response = $gapicClient->createConnectivityTestAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/CreateConnectivityTest', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getTestId(); + $this->assertProtobufEquals($testId, $actualValue); + $actualValue = $actualApiRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createConnectivityTestTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} diff --git a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/VpcFlowLogsServiceClientTest.php b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/VpcFlowLogsServiceClientTest.php new file mode 100644 index 000000000000..b7f09bf2c475 --- /dev/null +++ b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/VpcFlowLogsServiceClientTest.php @@ -0,0 +1,1194 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return VpcFlowLogsServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new VpcFlowLogsServiceClient($options); + } + + /** @test */ + public function createVpcFlowLogsConfigTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $flowSampling = -4027498; + $filterExpr = 'filterExpr-890367396'; + $network = 'network1843485230'; + $expectedResponse = new VpcFlowLogsConfig(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setFlowSampling($flowSampling); + $expectedResponse->setFilterExpr($filterExpr); + $expectedResponse->setNetwork($network); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createVpcFlowLogsConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new CreateVpcFlowLogsConfigRequest()) + ->setParent($formattedParent) + ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->createVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/CreateVpcFlowLogsConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfigId(); + $this->assertProtobufEquals($formattedVpcFlowLogsConfigId, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); + $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createVpcFlowLogsConfigExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new CreateVpcFlowLogsConfigRequest()) + ->setParent($formattedParent) + ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->createVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteVpcFlowLogsConfigTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteVpcFlowLogsConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $request = (new DeleteVpcFlowLogsConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/DeleteVpcFlowLogsConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteVpcFlowLogsConfigTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteVpcFlowLogsConfigExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $request = (new DeleteVpcFlowLogsConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteVpcFlowLogsConfigTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getVpcFlowLogsConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $flowSampling = -4027498; + $filterExpr = 'filterExpr-890367396'; + $network = 'network1843485230'; + $expectedResponse = new VpcFlowLogsConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setFlowSampling($flowSampling); + $expectedResponse->setFilterExpr($filterExpr); + $expectedResponse->setNetwork($network); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $request = (new GetVpcFlowLogsConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getVpcFlowLogsConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/GetVpcFlowLogsConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getVpcFlowLogsConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $request = (new GetVpcFlowLogsConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getVpcFlowLogsConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listVpcFlowLogsConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $vpcFlowLogsConfigsElement = new VpcFlowLogsConfig(); + $vpcFlowLogsConfigs = [ + $vpcFlowLogsConfigsElement, + ]; + $expectedResponse = new ListVpcFlowLogsConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setVpcFlowLogsConfigs($vpcFlowLogsConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListVpcFlowLogsConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listVpcFlowLogsConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getVpcFlowLogsConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/ListVpcFlowLogsConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listVpcFlowLogsConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListVpcFlowLogsConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listVpcFlowLogsConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryOrgVpcFlowLogsConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $vpcFlowLogsConfigsElement = new VpcFlowLogsConfig(); + $vpcFlowLogsConfigs = [ + $vpcFlowLogsConfigsElement, + ]; + $expectedResponse = new QueryOrgVpcFlowLogsConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setVpcFlowLogsConfigs($vpcFlowLogsConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new QueryOrgVpcFlowLogsConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->queryOrgVpcFlowLogsConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getVpcFlowLogsConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/QueryOrgVpcFlowLogsConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryOrgVpcFlowLogsConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new QueryOrgVpcFlowLogsConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->queryOrgVpcFlowLogsConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function showEffectiveFlowLogsConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $effectiveFlowLogsConfigsElement = new EffectiveVpcFlowLogsConfig(); + $effectiveFlowLogsConfigs = [ + $effectiveFlowLogsConfigsElement, + ]; + $expectedResponse = new ShowEffectiveFlowLogsConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEffectiveFlowLogsConfigs($effectiveFlowLogsConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $resource = 'resource-341064690'; + $request = (new ShowEffectiveFlowLogsConfigsRequest()) + ->setParent($formattedParent) + ->setResource($resource); + $response = $gapicClient->showEffectiveFlowLogsConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEffectiveFlowLogsConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/ShowEffectiveFlowLogsConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function showEffectiveFlowLogsConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $resource = 'resource-341064690'; + $request = (new ShowEffectiveFlowLogsConfigsRequest()) + ->setParent($formattedParent) + ->setResource($resource); + try { + $gapicClient->showEffectiveFlowLogsConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVpcFlowLogsConfigTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $flowSampling = -4027498; + $filterExpr = 'filterExpr-890367396'; + $network = 'network1843485230'; + $expectedResponse = new VpcFlowLogsConfig(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setFlowSampling($flowSampling); + $expectedResponse->setFilterExpr($filterExpr); + $expectedResponse->setNetwork($network); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateVpcFlowLogsConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new UpdateVpcFlowLogsConfigRequest()) + ->setUpdateMask($updateMask) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->updateVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/UpdateVpcFlowLogsConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); + $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateVpcFlowLogsConfigTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateVpcFlowLogsConfigExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new UpdateVpcFlowLogsConfigRequest()) + ->setUpdateMask($updateMask) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->updateVpcFlowLogsConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateVpcFlowLogsConfigTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createVpcFlowLogsConfigAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $flowSampling = -4027498; + $filterExpr = 'filterExpr-890367396'; + $network = 'network1843485230'; + $expectedResponse = new VpcFlowLogsConfig(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setFlowSampling($flowSampling); + $expectedResponse->setFilterExpr($filterExpr); + $expectedResponse->setNetwork($network); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createVpcFlowLogsConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); + $vpcFlowLogsConfig = new VpcFlowLogsConfig(); + $request = (new CreateVpcFlowLogsConfigRequest()) + ->setParent($formattedParent) + ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) + ->setVpcFlowLogsConfig($vpcFlowLogsConfig); + $response = $gapicClient->createVpcFlowLogsConfigAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/CreateVpcFlowLogsConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfigId(); + $this->assertProtobufEquals($formattedVpcFlowLogsConfigId, $actualValue); + $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); + $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} From 64272bddc0037a95e260cdc45f5175d639f52a74 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 22 Jan 2026 18:28:31 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../metadata/V1/ConnectivityTest.php | Bin 5459 -> 5490 bytes NetworkManagement/metadata/V1/Trace.php | Bin 20496 -> 21949 bytes .../list_vpc_flow_logs_configs.php | 2 +- .../list_vpc_flow_logs_configs.php | 2 +- NetworkManagement/src/V1/AbortInfo/Cause.php | 47 +- .../src/V1/DeliverInfo/Target.php | 7 + NetworkManagement/src/V1/DropInfo/Cause.php | 33 +- NetworkManagement/src/V1/Endpoint.php | 122 +- .../src/V1/Endpoint/NetworkType.php | 37 +- .../src/V1/FirewallInfo/FirewallRuleType.php | 18 +- .../src}/V1/GkePodInfo.php | 0 .../src}/V1/IpMasqueradingSkippedInfo.php | 0 .../V1/IpMasqueradingSkippedInfo/Reason.php | 2 - .../src/V1/ListVpcFlowLogsConfigsRequest.php | 10 +- NetworkManagement/src/V1/NatInfo.php | 34 + .../src}/V1/NatInfo/CloudNatGatewayType.php | 2 - NetworkManagement/src/V1/Step.php | 69 + NetworkManagement/src/V1/Step/State.php | 16 + ...c_flow_logs_service_rest_client_config.php | 8 +- ...eachability_service_rest_client_config.php | 8 +- ...c_flow_logs_service_rest_client_config.php | 8 +- .../Networkmanagement/V1/ConnectivityTest.php | Bin 5490 -> 0 bytes .../Networkmanagement/V1/Reachability.php | 84 -- .../Cloud/Networkmanagement/V1/Trace.php | Bin 21949 -> 0 bytes .../Networkmanagement/V1/VpcFlowLogs.php | 102 -- .../V1/VpcFlowLogsConfig.php | Bin 4363 -> 0 bytes .../Cloud/NetworkManagement/V1/AbortInfo.php | 173 --- .../NetworkManagement/V1/AbortInfo/Cause.php | 394 ----- .../V1/AppEngineVersionInfo.php | 169 --- .../V1/CloudFunctionInfo.php | 169 --- .../V1/CloudRunRevisionInfo.php | 169 --- .../V1/CloudSQLInstanceInfo.php | 241 --- .../NetworkManagement/V1/ConnectivityTest.php | 701 --------- .../V1/CreateConnectivityTestRequest.php | 199 --- .../V1/CreateVpcFlowLogsConfigRequest.php | 186 --- .../V1/DeleteConnectivityTestRequest.php | 86 -- .../V1/DeleteVpcFlowLogsConfigRequest.php | 108 -- .../NetworkManagement/V1/DeliverInfo.php | 245 ---- .../V1/DeliverInfo/GoogleServiceType.php | 95 -- .../V1/DeliverInfo/Target.php | 179 --- .../V1/DirectVpcEgressConnectionInfo.php | 204 --- .../Cloud/NetworkManagement/V1/DropInfo.php | 271 ---- .../NetworkManagement/V1/DropInfo/Cause.php | 863 ----------- .../V1/EffectiveVpcFlowLogsConfig.php | 641 -------- .../V1/EffectiveVpcFlowLogsConfig/Scope.php | 93 -- .../Cloud/NetworkManagement/V1/Endpoint.php | 839 ----------- .../V1/Endpoint/AppEngineVersionEndpoint.php | 78 - .../V1/Endpoint/CloudFunctionEndpoint.php | 70 - .../V1/Endpoint/CloudRunRevisionEndpoint.php | 124 -- .../V1/Endpoint/ForwardingRuleTarget.php | 79 - .../V1/Endpoint/NetworkType.php | 88 -- .../NetworkManagement/V1/EndpointInfo.php | 307 ---- .../NetworkManagement/V1/FirewallInfo.php | 516 ------- .../V1/FirewallInfo/FirewallRuleType.php | 147 -- .../V1/FirewallInfo/TargetType.php | 65 - .../NetworkManagement/V1/ForwardInfo.php | 135 -- .../V1/ForwardInfo/Target.php | 120 -- .../V1/ForwardingRuleInfo.php | 415 ------ .../NetworkManagement/V1/GKEMasterInfo.php | 204 --- .../V1/GetConnectivityTestRequest.php | 86 -- .../V1/GetVpcFlowLogsConfigRequest.php | 108 -- .../V1/GoogleServiceInfo.php | 105 -- .../GoogleServiceInfo/GoogleServiceType.php | 109 -- .../NetworkManagement/V1/HybridSubnetInfo.php | 135 -- .../NetworkManagement/V1/InstanceInfo.php | 425 ------ .../V1/InstanceInfo/Status.php | 65 - .../V1/InterconnectAttachmentInfo.php | 279 ---- .../V1/InterconnectAttachmentInfo/Type.php | 78 - .../V1/LatencyDistribution.php | 67 - .../V1/LatencyPercentile.php | 109 -- .../V1/ListConnectivityTestsRequest.php | 282 ---- .../V1/ListConnectivityTestsResponse.php | 135 -- .../V1/ListVpcFlowLogsConfigsRequest.php | 251 ---- .../V1/ListVpcFlowLogsConfigsResponse.php | 135 -- .../V1/LoadBalancerBackend.php | 203 --- .../HealthCheckFirewallState.php | 69 - .../V1/LoadBalancerBackendInfo.php | 409 ------ .../HealthCheckFirewallsConfigState.php | 86 -- .../NetworkManagement/V1/LoadBalancerInfo.php | 218 --- .../V1/LoadBalancerInfo/BackendType.php | 71 - .../V1/LoadBalancerInfo/LoadBalancerType.php | 85 -- .../NetworkManagement/V1/LoadBalancerType.php | 120 -- .../Cloud/NetworkManagement/V1/NatInfo.php | 517 ------- .../NetworkManagement/V1/NatInfo/Type.php | 85 -- .../NetworkManagement/V1/NetworkInfo.php | 203 --- .../V1/OperationMetadata.php | 295 ---- .../NetworkManagement/V1/ProbingDetails.php | 485 ------ .../V1/ProbingDetails/EdgeLocation.php | 71 - .../V1/ProbingDetails/ProbingAbortCause.php | 65 - .../V1/ProbingDetails/ProbingResult.php | 82 -- .../V1/ProbingDetails/SingleEdgeResponse.php | 288 ---- .../V1/ProxyConnectionInfo.php | 419 ------ .../V1/QueryOrgVpcFlowLogsConfigsRequest.php | 185 --- .../V1/QueryOrgVpcFlowLogsConfigsResponse.php | 135 -- .../V1/ReachabilityDetails.php | 197 --- .../V1/ReachabilityDetails/Result.php | 94 -- .../NetworkManagement/V1/RedisClusterInfo.php | 249 ---- .../V1/RedisInstanceInfo.php | 237 --- .../V1/RerunConnectivityTestRequest.php | 71 - .../Cloud/NetworkManagement/V1/RouteInfo.php | 978 ------------- .../V1/RouteInfo/NextHopType.php | 150 -- .../V1/RouteInfo/RouteScope.php | 64 - .../V1/RouteInfo/RouteType.php | 112 -- .../V1/ServerlessExternalConnectionInfo.php | 67 - .../V1/ServerlessNegInfo.php | 68 - .../ShowEffectiveFlowLogsConfigsRequest.php | 235 --- .../ShowEffectiveFlowLogsConfigsResponse.php | 135 -- .../Cloud/NetworkManagement/V1/Step.php | 1295 ----------------- .../Cloud/NetworkManagement/V1/Step/State.php | 352 ----- .../V1/StorageBucketInfo.php | 67 - .../Cloud/NetworkManagement/V1/Trace.php | 190 --- .../V1/UpdateConnectivityTestRequest.php | 141 -- .../V1/UpdateVpcFlowLogsConfigRequest.php | 171 --- .../NetworkManagement/V1/VpcConnectorInfo.php | 135 -- .../V1/VpcFlowLogsConfig.php | 810 ----------- .../VpcFlowLogsConfig/AggregationInterval.php | 92 -- .../CrossProjectMetadata.php | 67 - .../V1/VpcFlowLogsConfig/Metadata.php | 71 - .../V1/VpcFlowLogsConfig/State.php | 64 - .../VpcFlowLogsConfig/TargetResourceState.php | 65 - .../NetworkManagement/V1/VpnGatewayInfo.php | 245 ---- .../NetworkManagement/V1/VpnTunnelInfo.php | 339 ----- .../V1/VpnTunnelInfo/RoutingType.php | 72 - .../create_vpc_flow_logs_config.php | 118 -- .../delete_vpc_flow_logs_config.php | 91 -- .../get_iam_policy.php | 72 - .../get_location.php | 57 - .../get_vpc_flow_logs_config.php | 82 -- .../list_locations.php | 62 - .../list_vpc_flow_logs_configs.php | 85 -- .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 -- .../update_vpc_flow_logs_config.php | 88 -- .../create_connectivity_test.php | 113 -- .../delete_connectivity_test.php | 81 -- .../get_connectivity_test.php | 72 - .../get_iam_policy.php | 72 - .../get_location.php | 57 - .../list_connectivity_tests.php | 77 - .../list_locations.php | 62 - .../rerun_connectivity_test.php | 95 -- .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 -- .../update_connectivity_test.php | 92 -- .../create_vpc_flow_logs_config.php | 118 -- .../delete_vpc_flow_logs_config.php | 91 -- .../get_iam_policy.php | 72 - .../VpcFlowLogsServiceClient/get_location.php | 57 - .../get_vpc_flow_logs_config.php | 82 -- .../list_locations.php | 62 - .../list_vpc_flow_logs_configs.php | 85 -- .../query_org_vpc_flow_logs_configs.php | 81 -- .../set_iam_policy.php | 77 - .../show_effective_flow_logs_configs.php | 87 -- .../test_iam_permissions.php | 84 -- .../update_vpc_flow_logs_config.php | 88 -- .../OrganizationVpcFlowLogsServiceClient.php | 693 --------- .../V1/Client/ReachabilityServiceClient.php | 668 --------- .../V1/Client/VpcFlowLogsServiceClient.php | 748 ---------- .../v1/src/V1/gapic_metadata.json | 201 --- ...n_vpc_flow_logs_service_client_config.json | 72 - ...pc_flow_logs_service_descriptor_config.php | 198 --- ...c_flow_logs_service_rest_client_config.php | 238 --- .../reachability_service_client_config.json | 87 -- ...reachability_service_descriptor_config.php | 214 --- ...eachability_service_rest_client_config.php | 250 ---- .../vpc_flow_logs_service_client_config.json | 82 -- ...pc_flow_logs_service_descriptor_config.php | 238 --- ...c_flow_logs_service_rest_client_config.php | 260 ---- ...ganizationVpcFlowLogsServiceClientTest.php | 1039 ------------- .../Client/ReachabilityServiceClientTest.php | 1202 --------------- .../Client/VpcFlowLogsServiceClientTest.php | 1194 --------------- 172 files changed, 335 insertions(+), 32008 deletions(-) rename {owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement => NetworkManagement/src}/V1/GkePodInfo.php (100%) rename {owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement => NetworkManagement/src}/V1/IpMasqueradingSkippedInfo.php (100%) rename {owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement => NetworkManagement/src}/V1/IpMasqueradingSkippedInfo/Reason.php (95%) rename {owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement => NetworkManagement/src}/V1/NatInfo/CloudNatGatewayType.php (92%) delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/ConnectivityTest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Reachability.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Trace.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogs.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogsConfig.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo/Cause.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AppEngineVersionInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudFunctionInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudRunRevisionInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudSQLInstanceInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ConnectivityTest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateConnectivityTestRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateVpcFlowLogsConfigRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteConnectivityTestRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteVpcFlowLogsConfigRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/GoogleServiceType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/Target.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DirectVpcEgressConnectionInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo/Cause.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig/Scope.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/AppEngineVersionEndpoint.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudFunctionEndpoint.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudRunRevisionEndpoint.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/ForwardingRuleTarget.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/NetworkType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EndpointInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/FirewallRuleType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/TargetType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo/Target.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardingRuleInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GKEMasterInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetConnectivityTestRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetVpcFlowLogsConfigRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo/GoogleServiceType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/HybridSubnetInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo/Status.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo/Type.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyDistribution.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyPercentile.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsResponse.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsResponse.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend/HealthCheckFirewallState.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo/HealthCheckFirewallsConfigState.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/BackendType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/LoadBalancerType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/Type.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NetworkInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/EdgeLocation.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingAbortCause.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingResult.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/SingleEdgeResponse.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProxyConnectionInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsResponse.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails/Result.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisClusterInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisInstanceInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RerunConnectivityTestRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/NextHopType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteScope.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessExternalConnectionInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessNegInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsResponse.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step/State.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/StorageBucketInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Trace.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateConnectivityTestRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateVpcFlowLogsConfigRequest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcConnectorInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/AggregationInterval.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/CrossProjectMetadata.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/Metadata.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/State.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/TargetResourceState.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnGatewayInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo/RoutingType.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/create_connectivity_test.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/delete_connectivity_test.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_connectivity_test.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_location.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_connectivity_tests.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_locations.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/update_connectivity_test.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_location.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_locations.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/Client/OrganizationVpcFlowLogsServiceClient.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/Client/ReachabilityServiceClient.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/Client/VpcFlowLogsServiceClient.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_client_config.json delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_descriptor_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_client_config.json delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_descriptor_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_rest_client_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_client_config.json delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_descriptor_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_rest_client_config.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/OrganizationVpcFlowLogsServiceClientTest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/ReachabilityServiceClientTest.php delete mode 100644 owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/VpcFlowLogsServiceClientTest.php diff --git a/NetworkManagement/metadata/V1/ConnectivityTest.php b/NetworkManagement/metadata/V1/ConnectivityTest.php index 4b2fba6a9855ab3b6e74287720c55bdd88d0bc72..ea954ffbe505e4944ef94386627a2745adcc50d2 100644 GIT binary patch delta 66 zcmV-I0KNayD)K6@DFXrhvnm6X1Oku>v%v?r0Spfc2WM+#UvO_^7!|X02`d5tUz4B< YQ4SIe3J6I~R7FxwMN|+2v+)aJ3C3p=j{pDw delta 38 ucmeyQby;hJCNtx`&05S;S(rX@Za&DqgK={gry3Ju;N*?mftv+*k~jew`VANW diff --git a/NetworkManagement/metadata/V1/Trace.php b/NetworkManagement/metadata/V1/Trace.php index 8e6f2cf9cd766dc4f620e322c370492ceccb4ac6..5f4282bf8c7bfefbb47306b7416b4e3f8e27367e 100644 GIT binary patch delta 1497 zcmZ`(OKcle6zz-?+j(x1$#d+wY0@N4(|nqQCOGLPP{uRQlTqw9(|I!q5fx8XJw$FA z+p!(B5sR>(5(tEfW(5)w2!xQRC}_4I5Gyu_4N@gwfshbliICXB9p{TMJI{URp8GlH z`oX)x7at3sZiwQmANtRUNkM%3qTdL;7{R}d_1>%~&JvdJ4;qUtA>q)s!_}+hOVnh&M4tdopqyA5mYeFxMp~z8h@$^G) zZ|I)?aQbUOyx;BBWC`3`kev|C;C>|ObWP6dDwi$IDG=(HpLk!Go40wFqOop0;i!2Xz_aNR97s+AUD&w>(oegA*)b5;usb^9yT%E{5Vyk4wqx(6MkKM_&* z5C}(L5t)G(KpvAQdQJy<&frBfuM%eKup01A;C`JRuWlc97ue_cAPBc)su4-R3ux}Y zc`C`tPCnROn;a3EO`XmG5R(g_ilGuIgwLbIQ9grixT>>#Ih%(rJAzEm{(Ch*&HUmZHS}gFP z9RO{>dEczOGxMH+;%(l7qdmBxV0aDex-M^cJB9vz37s{aY+hFa|7J3<{C`E3GLnen zsP~k~IaL(cC}@5h($ delta 203 zcmV;+05t!-s{xRp0kByD0^XXlTLKmV0=*owa|3$@vylpf0|Bp-77ov|{to^EvmO#- z0u0m!3JgYRa%Fd6Y;2QpN+`3n6m0_X3l)EFrTN zDpmorc`G~u0>%rIw=JjwoC>pHE5 diff --git a/NetworkManagement/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php b/NetworkManagement/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php index 3d09793ba7d2..efe715bfc710 100644 --- a/NetworkManagement/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php +++ b/NetworkManagement/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php @@ -35,7 +35,7 @@ * @param string $formattedParent The parent resource of the VpcFlowLogsConfig, * in one of the following formats: * - * - For project-level resourcs: `projects/{project_id}/locations/global` + * - For project-level resources: `projects/{project_id}/locations/global` * * - For organization-level resources: * `organizations/{organization_id}/locations/global` diff --git a/NetworkManagement/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php b/NetworkManagement/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php index e2599eaeddea..22655d8be0a0 100644 --- a/NetworkManagement/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php +++ b/NetworkManagement/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php @@ -35,7 +35,7 @@ * @param string $formattedParent The parent resource of the VpcFlowLogsConfig, * in one of the following formats: * - * - For project-level resourcs: `projects/{project_id}/locations/global` + * - For project-level resources: `projects/{project_id}/locations/global` * * - For organization-level resources: * `organizations/{organization_id}/locations/global` diff --git a/NetworkManagement/src/V1/AbortInfo/Cause.php b/NetworkManagement/src/V1/AbortInfo/Cause.php index f28f6cb1bdee..e91197eea8e6 100644 --- a/NetworkManagement/src/V1/AbortInfo/Cause.php +++ b/NetworkManagement/src/V1/AbortInfo/Cause.php @@ -125,12 +125,34 @@ class Cause */ const PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; /** - * Aborted because no valid source or destination endpoint is derived from - * the input test request. + * Aborted because no valid source or destination endpoint can be derived + * from the test request. * * Generated from protobuf enum NO_SOURCE_LOCATION = 5; */ const NO_SOURCE_LOCATION = 5; + /** + * Aborted because the source IP address is not contained within the subnet + * ranges of the provided VPC network. + * + * Generated from protobuf enum NO_SOURCE_GCP_NETWORK_LOCATION = 42; + */ + const NO_SOURCE_GCP_NETWORK_LOCATION = 42; + /** + * Aborted because the source IP address is not contained within the + * destination ranges of the routes towards non-GCP networks in the provided + * VPC network. + * + * Generated from protobuf enum NO_SOURCE_NON_GCP_NETWORK_LOCATION = 43; + */ + const NO_SOURCE_NON_GCP_NETWORK_LOCATION = 43; + /** + * Aborted because the source IP address can't be resolved as an Internet + * IP address. + * + * Generated from protobuf enum NO_SOURCE_INTERNET_LOCATION = 44; + */ + const NO_SOURCE_INTERNET_LOCATION = 44; /** * Aborted because the source or destination endpoint specified in * the request is invalid. Some examples: @@ -228,6 +250,14 @@ class Cause * Generated from protobuf enum SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; */ const SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; + /** + * Aborted because tests with the external database as a source are not + * supported. In such replication scenarios, the connection is initiated by + * the Cloud SQL replica instance. + * + * Generated from protobuf enum SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED = 45; + */ + const SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED = 45; /** * Aborted because tests with a Redis Cluster as a source are not supported. * @@ -282,6 +312,14 @@ class Cause * Generated from protobuf enum IP_VERSION_PROTOCOL_MISMATCH = 40; */ const IP_VERSION_PROTOCOL_MISMATCH = 40; + /** + * Aborted because selected GKE Pod endpoint location is unknown. This is + * often the case for "Pending" Pods, which don't have assigned IP addresses + * yet. + * + * Generated from protobuf enum GKE_POD_UNKNOWN_ENDPOINT_LOCATION = 41; + */ + const GKE_POD_UNKNOWN_ENDPOINT_LOCATION = 41; private static $valueToName = [ self::CAUSE_UNSPECIFIED => 'CAUSE_UNSPECIFIED', @@ -301,6 +339,9 @@ class Cause self::PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS => 'PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS', self::PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS => 'PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS', self::NO_SOURCE_LOCATION => 'NO_SOURCE_LOCATION', + self::NO_SOURCE_GCP_NETWORK_LOCATION => 'NO_SOURCE_GCP_NETWORK_LOCATION', + self::NO_SOURCE_NON_GCP_NETWORK_LOCATION => 'NO_SOURCE_NON_GCP_NETWORK_LOCATION', + self::NO_SOURCE_INTERNET_LOCATION => 'NO_SOURCE_INTERNET_LOCATION', self::INVALID_ARGUMENT => 'INVALID_ARGUMENT', self::TRACE_TOO_LONG => 'TRACE_TOO_LONG', self::INTERNAL_ERROR => 'INTERNAL_ERROR', @@ -315,6 +356,7 @@ class Cause self::GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT => 'GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT', self::GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT => 'GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT', self::SOURCE_PSC_CLOUD_SQL_UNSUPPORTED => 'SOURCE_PSC_CLOUD_SQL_UNSUPPORTED', + self::SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED => 'SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED', self::SOURCE_REDIS_CLUSTER_UNSUPPORTED => 'SOURCE_REDIS_CLUSTER_UNSUPPORTED', self::SOURCE_REDIS_INSTANCE_UNSUPPORTED => 'SOURCE_REDIS_INSTANCE_UNSUPPORTED', self::SOURCE_FORWARDING_RULE_UNSUPPORTED => 'SOURCE_FORWARDING_RULE_UNSUPPORTED', @@ -323,6 +365,7 @@ class Cause self::UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG => 'UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG', self::NO_SERVERLESS_IP_RANGES => 'NO_SERVERLESS_IP_RANGES', self::IP_VERSION_PROTOCOL_MISMATCH => 'IP_VERSION_PROTOCOL_MISMATCH', + self::GKE_POD_UNKNOWN_ENDPOINT_LOCATION => 'GKE_POD_UNKNOWN_ENDPOINT_LOCATION', ]; public static function name($value) diff --git a/NetworkManagement/src/V1/DeliverInfo/Target.php b/NetworkManagement/src/V1/DeliverInfo/Target.php index 5b7310f647e0..27f795b4538b 100644 --- a/NetworkManagement/src/V1/DeliverInfo/Target.php +++ b/NetworkManagement/src/V1/DeliverInfo/Target.php @@ -124,6 +124,12 @@ class Target * Generated from protobuf enum REDIS_CLUSTER = 17; */ const REDIS_CLUSTER = 17; + /** + * Target is a GKE Pod. + * + * Generated from protobuf enum GKE_POD = 19; + */ + const GKE_POD = 19; private static $valueToName = [ self::TARGET_UNSPECIFIED => 'TARGET_UNSPECIFIED', @@ -144,6 +150,7 @@ class Target self::GOOGLE_MANAGED_SERVICE => 'GOOGLE_MANAGED_SERVICE', self::REDIS_INSTANCE => 'REDIS_INSTANCE', self::REDIS_CLUSTER => 'REDIS_CLUSTER', + self::GKE_POD => 'GKE_POD', ]; public static function name($value) diff --git a/NetworkManagement/src/V1/DropInfo/Cause.php b/NetworkManagement/src/V1/DropInfo/Cause.php index 6c7bf1e70934..9209105a0da5 100644 --- a/NetworkManagement/src/V1/DropInfo/Cause.php +++ b/NetworkManagement/src/V1/DropInfo/Cause.php @@ -106,12 +106,17 @@ class Cause */ const ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID = 53; /** - * Packet is sent from the Internet or Google service to the private IPv6 - * address. + * Packet is sent from the Internet to the private IPv6 address. * * Generated from protobuf enum NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; */ const NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; + /** + * Packet is sent from the Internet to the private IPv4 address. + * + * Generated from protobuf enum NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS = 109; + */ + const NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS = 109; /** * Packet is sent from the external IPv6 source address of an instance to * the private IPv6 address of an instance. @@ -211,6 +216,12 @@ class Cause * Generated from protobuf enum GKE_CLUSTER_NOT_RUNNING = 27; */ const GKE_CLUSTER_NOT_RUNNING = 27; + /** + * Packet sent from or to a GKE Pod that is not in running state. + * + * Generated from protobuf enum GKE_POD_NOT_RUNNING = 103; + */ + const GKE_POD_NOT_RUNNING = 103; /** * Packet sent from or to a Cloud SQL instance that is not in running state. * @@ -648,6 +659,13 @@ class Cause * Generated from protobuf enum NO_MATCHING_NAT64_GATEWAY = 90; */ const NO_MATCHING_NAT64_GATEWAY = 90; + /** + * Packet is dropped due to matching a Private NAT64 gateway with no rules + * for source IPv6 addresses. + * + * Generated from protobuf enum NO_CONFIGURED_PRIVATE_NAT64_RULE = 107; + */ + const NO_CONFIGURED_PRIVATE_NAT64_RULE = 107; /** * Packet is dropped due to being sent to a backend of a passthrough load * balancer that doesn't use the same IP version as the frontend. @@ -705,6 +723,13 @@ class Cause * Generated from protobuf enum HYBRID_SUBNET_REGION_MISMATCH = 105; */ const HYBRID_SUBNET_REGION_MISMATCH = 105; + /** + * Packet is dropped because no matching route was found in the hybrid + * subnet. + * + * Generated from protobuf enum HYBRID_SUBNET_NO_ROUTE = 106; + */ + const HYBRID_SUBNET_NO_ROUTE = 106; private static $valueToName = [ self::CAUSE_UNSPECIFIED => 'CAUSE_UNSPECIFIED', @@ -722,6 +747,7 @@ class Cause self::ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED => 'ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED', self::ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID => 'ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID', self::NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS => 'NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS', + self::NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS => 'NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS', self::NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS => 'NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS', self::VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH => 'VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH', self::VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH => 'VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH', @@ -736,6 +762,7 @@ class Cause self::INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS => 'INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS', self::INSTANCE_NOT_RUNNING => 'INSTANCE_NOT_RUNNING', self::GKE_CLUSTER_NOT_RUNNING => 'GKE_CLUSTER_NOT_RUNNING', + self::GKE_POD_NOT_RUNNING => 'GKE_POD_NOT_RUNNING', self::CLOUD_SQL_INSTANCE_NOT_RUNNING => 'CLOUD_SQL_INSTANCE_NOT_RUNNING', self::REDIS_INSTANCE_NOT_RUNNING => 'REDIS_INSTANCE_NOT_RUNNING', self::REDIS_CLUSTER_NOT_RUNNING => 'REDIS_CLUSTER_NOT_RUNNING', @@ -798,6 +825,7 @@ class Cause self::UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION => 'UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION', self::TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED => 'TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED', self::NO_MATCHING_NAT64_GATEWAY => 'NO_MATCHING_NAT64_GATEWAY', + self::NO_CONFIGURED_PRIVATE_NAT64_RULE => 'NO_CONFIGURED_PRIVATE_NAT64_RULE', self::LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH => 'LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH', self::NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION => 'NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION', self::CLOUD_NAT_PROTOCOL_UNSUPPORTED => 'CLOUD_NAT_PROTOCOL_UNSUPPORTED', @@ -806,6 +834,7 @@ class Cause self::L2_INTERCONNECT_DESTINATION_IP_MISMATCH => 'L2_INTERCONNECT_DESTINATION_IP_MISMATCH', self::NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED => 'NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED', self::HYBRID_SUBNET_REGION_MISMATCH => 'HYBRID_SUBNET_REGION_MISMATCH', + self::HYBRID_SUBNET_NO_ROUTE => 'HYBRID_SUBNET_NO_ROUTE', ]; public static function name($value) diff --git a/NetworkManagement/src/V1/Endpoint.php b/NetworkManagement/src/V1/Endpoint.php index 27df4ac7187c..1d3ed4f56a53 100644 --- a/NetworkManagement/src/V1/Endpoint.php +++ b/NetworkManagement/src/V1/Endpoint.php @@ -101,6 +101,13 @@ class Endpoint extends \Google\Protobuf\Internal\Message * Generated from protobuf field string redis_cluster = 18; */ protected $redis_cluster = ''; + /** + * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + * URI. + * + * Generated from protobuf field string gke_pod = 21; + */ + protected $gke_pod = ''; /** * A [Cloud Function](https://cloud.google.com/functions). Applicable only to * source endpoint. @@ -125,29 +132,24 @@ class Endpoint extends \Google\Protobuf\Internal\Message */ protected $cloud_run_revision = null; /** - * A VPC network URI. + * A VPC network URI. For source endpoints, used according to the + * `network_type`. For destination endpoints, used only when the source is an + * external IP address endpoint, and the destination is an internal IP address + * endpoint. * * Generated from protobuf field string network = 4; */ protected $network = ''; /** - * Type of the network where the endpoint is located. - * Applicable only to source endpoint, as destination network type can be - * inferred from the source. + * For source endpoints, type of the network where the endpoint is located. + * Not relevant for destination endpoints. * * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; */ protected $network_type = 0; /** - * Project ID where the endpoint is located. - * The project ID can be derived from the URI if you provide a endpoint or - * network URI. - * The following are two cases where you may need to provide the project ID: - * 1. Only the IP address is specified, and the IP address is within a Google - * Cloud project. - * 2. When you are using Shared VPC and the IP address that you provide is - * from the service project. In this case, the network that the IP address - * resides in is defined in the host project. + * For source endpoints, endpoint project ID. Used according to the + * `network_type`. Not relevant for destination endpoints. * * Generated from protobuf field string project_id = 6; */ @@ -197,6 +199,9 @@ class Endpoint extends \Google\Protobuf\Internal\Message * @type string $redis_cluster * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. * Applicable only to destination endpoint. + * @type string $gke_pod + * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + * URI. * @type \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint $cloud_function * A [Cloud Function](https://cloud.google.com/functions). Applicable only to * source endpoint. @@ -209,21 +214,16 @@ class Endpoint extends \Google\Protobuf\Internal\Message * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * Applicable only to source endpoint. * @type string $network - * A VPC network URI. + * A VPC network URI. For source endpoints, used according to the + * `network_type`. For destination endpoints, used only when the source is an + * external IP address endpoint, and the destination is an internal IP address + * endpoint. * @type int $network_type - * Type of the network where the endpoint is located. - * Applicable only to source endpoint, as destination network type can be - * inferred from the source. + * For source endpoints, type of the network where the endpoint is located. + * Not relevant for destination endpoints. * @type string $project_id - * Project ID where the endpoint is located. - * The project ID can be derived from the URI if you provide a endpoint or - * network URI. - * The following are two cases where you may need to provide the project ID: - * 1. Only the IP address is specified, and the IP address is within a Google - * Cloud project. - * 2. When you are using Shared VPC and the IP address that you provide is - * from the service project. In this case, the network that the IP address - * resides in is defined in the host project. + * For source endpoints, endpoint project ID. Used according to the + * `network_type`. Not relevant for destination endpoints. * } */ public function __construct($data = NULL) { @@ -601,6 +601,34 @@ public function setRedisCluster($var) return $this; } + /** + * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + * URI. + * + * Generated from protobuf field string gke_pod = 21; + * @return string + */ + public function getGkePod() + { + return $this->gke_pod; + } + + /** + * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + * URI. + * + * Generated from protobuf field string gke_pod = 21; + * @param string $var + * @return $this + */ + public function setGkePod($var) + { + GPBUtil::checkString($var, True); + $this->gke_pod = $var; + + return $this; + } + /** * A [Cloud Function](https://cloud.google.com/functions). Applicable only to * source endpoint. @@ -720,7 +748,10 @@ public function setCloudRunRevision($var) } /** - * A VPC network URI. + * A VPC network URI. For source endpoints, used according to the + * `network_type`. For destination endpoints, used only when the source is an + * external IP address endpoint, and the destination is an internal IP address + * endpoint. * * Generated from protobuf field string network = 4; * @return string @@ -731,7 +762,10 @@ public function getNetwork() } /** - * A VPC network URI. + * A VPC network URI. For source endpoints, used according to the + * `network_type`. For destination endpoints, used only when the source is an + * external IP address endpoint, and the destination is an internal IP address + * endpoint. * * Generated from protobuf field string network = 4; * @param string $var @@ -746,9 +780,8 @@ public function setNetwork($var) } /** - * Type of the network where the endpoint is located. - * Applicable only to source endpoint, as destination network type can be - * inferred from the source. + * For source endpoints, type of the network where the endpoint is located. + * Not relevant for destination endpoints. * * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; * @return int @@ -759,9 +792,8 @@ public function getNetworkType() } /** - * Type of the network where the endpoint is located. - * Applicable only to source endpoint, as destination network type can be - * inferred from the source. + * For source endpoints, type of the network where the endpoint is located. + * Not relevant for destination endpoints. * * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; * @param int $var @@ -776,15 +808,8 @@ public function setNetworkType($var) } /** - * Project ID where the endpoint is located. - * The project ID can be derived from the URI if you provide a endpoint or - * network URI. - * The following are two cases where you may need to provide the project ID: - * 1. Only the IP address is specified, and the IP address is within a Google - * Cloud project. - * 2. When you are using Shared VPC and the IP address that you provide is - * from the service project. In this case, the network that the IP address - * resides in is defined in the host project. + * For source endpoints, endpoint project ID. Used according to the + * `network_type`. Not relevant for destination endpoints. * * Generated from protobuf field string project_id = 6; * @return string @@ -795,15 +820,8 @@ public function getProjectId() } /** - * Project ID where the endpoint is located. - * The project ID can be derived from the URI if you provide a endpoint or - * network URI. - * The following are two cases where you may need to provide the project ID: - * 1. Only the IP address is specified, and the IP address is within a Google - * Cloud project. - * 2. When you are using Shared VPC and the IP address that you provide is - * from the service project. In this case, the network that the IP address - * resides in is defined in the host project. + * For source endpoints, endpoint project ID. Used according to the + * `network_type`. Not relevant for destination endpoints. * * Generated from protobuf field string project_id = 6; * @param string $var diff --git a/NetworkManagement/src/V1/Endpoint/NetworkType.php b/NetworkManagement/src/V1/Endpoint/NetworkType.php index f599e1d7a469..58d09c972bad 100644 --- a/NetworkManagement/src/V1/Endpoint/NetworkType.php +++ b/NetworkManagement/src/V1/Endpoint/NetworkType.php @@ -7,40 +7,59 @@ use UnexpectedValueException; /** - * The type definition of an endpoint's network. Use one of the - * following choices: + * The type of the network of the IP address endpoint. Relevant for the source + * IP address endpoints. * * Protobuf type google.cloud.networkmanagement.v1.Endpoint.NetworkType */ class NetworkType { /** - * Default type if unspecified. + * Unspecified. The test will analyze all possible IP address locations. + * This might take longer and produce inaccurate or ambiguous results, so + * prefer specifying an explicit network type. + * The `project_id` field should be set to the project where the GCP + * endpoint is located, or where the non-GCP endpoint should be reachable + * from (via routes to non-GCP networks). The project might also be inferred + * from the Connectivity Test project or other projects referenced in the + * request. * * Generated from protobuf enum NETWORK_TYPE_UNSPECIFIED = 0; */ const NETWORK_TYPE_UNSPECIFIED = 0; /** - * A network hosted within Google Cloud. - * To receive more detailed output, specify the URI for the source or - * destination network. + * A VPC network. Should be used for internal IP addresses in VPC networks. + * The `network` field should be set to the URI of this network. Only + * endpoints within this network will be considered. * * Generated from protobuf enum GCP_NETWORK = 1; */ const GCP_NETWORK = 1; /** - * A network hosted outside of Google Cloud. - * This can be an on-premises network, an internet resource or a network - * hosted by another cloud provider. + * A non-GCP network (for example, an on-premises network or another cloud + * provider network). Should be used for internal IP addresses outside of + * Google Cloud. The `network` field should be set to the URI of the VPC + * network containing a corresponding Cloud VPN tunnel, Cloud Interconnect + * VLAN attachment, or a router appliance instance. Only endpoints reachable + * from the provided VPC network via the routes to non-GCP networks will be + * considered. * * Generated from protobuf enum NON_GCP_NETWORK = 2; */ const NON_GCP_NETWORK = 2; + /** + * Internet. Should be used for internet-routable external IP addresses or + * IP addresses for global Google APIs and services. + * + * Generated from protobuf enum INTERNET = 3; + */ + const INTERNET = 3; private static $valueToName = [ self::NETWORK_TYPE_UNSPECIFIED => 'NETWORK_TYPE_UNSPECIFIED', self::GCP_NETWORK => 'GCP_NETWORK', self::NON_GCP_NETWORK => 'NON_GCP_NETWORK', + self::INTERNET => 'INTERNET', ]; public static function name($value) diff --git a/NetworkManagement/src/V1/FirewallInfo/FirewallRuleType.php b/NetworkManagement/src/V1/FirewallInfo/FirewallRuleType.php index 18e07221342e..ee46bec5f778 100644 --- a/NetworkManagement/src/V1/FirewallInfo/FirewallRuleType.php +++ b/NetworkManagement/src/V1/FirewallInfo/FirewallRuleType.php @@ -53,7 +53,7 @@ class FirewallRuleType */ const SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4; /** - * Global network firewall policy rule. + * User-defined global network firewall policy rule. * For details, see [Network firewall * policies](https://cloud.google.com/vpc/docs/network-firewall-policies). * @@ -61,13 +61,25 @@ class FirewallRuleType */ const NETWORK_FIREWALL_POLICY_RULE = 5; /** - * Regional network firewall policy rule. + * User-defined regional network firewall policy rule. * For details, see [Regional network firewall * policies](https://cloud.google.com/firewall/docs/regional-firewall-policies). * * Generated from protobuf enum NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6; */ const NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6; + /** + * System-defined global network firewall policy rule. + * + * Generated from protobuf enum SYSTEM_NETWORK_FIREWALL_POLICY_RULE = 7; + */ + const SYSTEM_NETWORK_FIREWALL_POLICY_RULE = 7; + /** + * System-defined regional network firewall policy rule. + * + * Generated from protobuf enum SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE = 8; + */ + const SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE = 8; /** * Firewall policy rule containing attributes not yet supported in * Connectivity tests. Firewall analysis is skipped if such a rule can @@ -102,6 +114,8 @@ class FirewallRuleType self::SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE => 'SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE', self::NETWORK_FIREWALL_POLICY_RULE => 'NETWORK_FIREWALL_POLICY_RULE', self::NETWORK_REGIONAL_FIREWALL_POLICY_RULE => 'NETWORK_REGIONAL_FIREWALL_POLICY_RULE', + self::SYSTEM_NETWORK_FIREWALL_POLICY_RULE => 'SYSTEM_NETWORK_FIREWALL_POLICY_RULE', + self::SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE => 'SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE', self::UNSUPPORTED_FIREWALL_POLICY_RULE => 'UNSUPPORTED_FIREWALL_POLICY_RULE', self::TRACKING_STATE => 'TRACKING_STATE', self::ANALYSIS_SKIPPED => 'ANALYSIS_SKIPPED', diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GkePodInfo.php b/NetworkManagement/src/V1/GkePodInfo.php similarity index 100% rename from owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GkePodInfo.php rename to NetworkManagement/src/V1/GkePodInfo.php diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo.php b/NetworkManagement/src/V1/IpMasqueradingSkippedInfo.php similarity index 100% rename from owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo.php rename to NetworkManagement/src/V1/IpMasqueradingSkippedInfo.php diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo/Reason.php b/NetworkManagement/src/V1/IpMasqueradingSkippedInfo/Reason.php similarity index 95% rename from owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo/Reason.php rename to NetworkManagement/src/V1/IpMasqueradingSkippedInfo/Reason.php index 8596e42b47d9..062c715f8dc4 100644 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/IpMasqueradingSkippedInfo/Reason.php +++ b/NetworkManagement/src/V1/IpMasqueradingSkippedInfo/Reason.php @@ -98,6 +98,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Reason::class, \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo_Reason::class); diff --git a/NetworkManagement/src/V1/ListVpcFlowLogsConfigsRequest.php b/NetworkManagement/src/V1/ListVpcFlowLogsConfigsRequest.php index 71327dcf6722..34a42ff012ba 100644 --- a/NetworkManagement/src/V1/ListVpcFlowLogsConfigsRequest.php +++ b/NetworkManagement/src/V1/ListVpcFlowLogsConfigsRequest.php @@ -18,7 +18,7 @@ class ListVpcFlowLogsConfigsRequest extends \Google\Protobuf\Internal\Message /** * Required. The parent resource of the VpcFlowLogsConfig, * in one of the following formats: - * - For project-level resourcs: `projects/{project_id}/locations/global` + * - For project-level resources: `projects/{project_id}/locations/global` * - For organization-level resources: * `organizations/{organization_id}/locations/global` * @@ -57,7 +57,7 @@ class ListVpcFlowLogsConfigsRequest extends \Google\Protobuf\Internal\Message * @param string $parent Required. The parent resource of the VpcFlowLogsConfig, * in one of the following formats: * - * - For project-level resourcs: `projects/{project_id}/locations/global` + * - For project-level resources: `projects/{project_id}/locations/global` * * - For organization-level resources: * `organizations/{organization_id}/locations/global` @@ -82,7 +82,7 @@ public static function build(string $parent): self * @type string $parent * Required. The parent resource of the VpcFlowLogsConfig, * in one of the following formats: - * - For project-level resourcs: `projects/{project_id}/locations/global` + * - For project-level resources: `projects/{project_id}/locations/global` * - For organization-level resources: * `organizations/{organization_id}/locations/global` * @type int $page_size @@ -106,7 +106,7 @@ public function __construct($data = NULL) { /** * Required. The parent resource of the VpcFlowLogsConfig, * in one of the following formats: - * - For project-level resourcs: `projects/{project_id}/locations/global` + * - For project-level resources: `projects/{project_id}/locations/global` * - For organization-level resources: * `organizations/{organization_id}/locations/global` * @@ -121,7 +121,7 @@ public function getParent() /** * Required. The parent resource of the VpcFlowLogsConfig, * in one of the following formats: - * - For project-level resourcs: `projects/{project_id}/locations/global` + * - For project-level resources: `projects/{project_id}/locations/global` * - For organization-level resources: * `organizations/{organization_id}/locations/global` * diff --git a/NetworkManagement/src/V1/NatInfo.php b/NetworkManagement/src/V1/NatInfo.php index 0b290c387878..c87c0106c1da 100644 --- a/NetworkManagement/src/V1/NatInfo.php +++ b/NetworkManagement/src/V1/NatInfo.php @@ -95,6 +95,12 @@ class NatInfo extends \Google\Protobuf\Internal\Message * Generated from protobuf field string nat_gateway_name = 13; */ protected $nat_gateway_name = ''; + /** + * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; + */ + protected $cloud_nat_gateway_type = 0; /** * Constructor. @@ -130,6 +136,8 @@ class NatInfo extends \Google\Protobuf\Internal\Message * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. * @type string $nat_gateway_name * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. + * @type int $cloud_nat_gateway_type + * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. * } */ public function __construct($data = NULL) { @@ -479,5 +487,31 @@ public function setNatGatewayName($var) return $this; } + /** + * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; + * @return int + */ + public function getCloudNatGatewayType() + { + return $this->cloud_nat_gateway_type; + } + + /** + * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; + * @param int $var + * @return $this + */ + public function setCloudNatGatewayType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\NatInfo\CloudNatGatewayType::class); + $this->cloud_nat_gateway_type = $var; + + return $this; + } + } diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/CloudNatGatewayType.php b/NetworkManagement/src/V1/NatInfo/CloudNatGatewayType.php similarity index 92% rename from owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/CloudNatGatewayType.php rename to NetworkManagement/src/V1/NatInfo/CloudNatGatewayType.php index 531cbec699ca..f8181b2012ef 100644 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/CloudNatGatewayType.php +++ b/NetworkManagement/src/V1/NatInfo/CloudNatGatewayType.php @@ -80,6 +80,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CloudNatGatewayType::class, \Google\Cloud\NetworkManagement\V1\NatInfo_CloudNatGatewayType::class); diff --git a/NetworkManagement/src/V1/Step.php b/NetworkManagement/src/V1/Step.php index 2f9ac6db3e39..0df8d7a4b492 100644 --- a/NetworkManagement/src/V1/Step.php +++ b/NetworkManagement/src/V1/Step.php @@ -100,6 +100,11 @@ class Step extends \Google\Protobuf\Internal\Message * Display information of a Google Cloud network. * @type \Google\Cloud\NetworkManagement\V1\GKEMasterInfo $gke_master * Display information of a Google Kubernetes Engine cluster master. + * @type \Google\Cloud\NetworkManagement\V1\GkePodInfo $gke_pod + * Display information of a Google Kubernetes Engine Pod. + * @type \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo $ip_masquerading_skipped + * Display information of the reason why GKE Pod IP masquerading was + * skipped. * @type \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo $cloud_sql_instance * Display information of a Cloud SQL instance. * @type \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo $redis_instance @@ -871,6 +876,70 @@ public function setGkeMaster($var) return $this; } + /** + * Display information of a Google Kubernetes Engine Pod. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GkePodInfo gke_pod = 37; + * @return \Google\Cloud\NetworkManagement\V1\GkePodInfo|null + */ + public function getGkePod() + { + return $this->readOneof(37); + } + + public function hasGkePod() + { + return $this->hasOneof(37); + } + + /** + * Display information of a Google Kubernetes Engine Pod. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.GkePodInfo gke_pod = 37; + * @param \Google\Cloud\NetworkManagement\V1\GkePodInfo $var + * @return $this + */ + public function setGkePod($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\GkePodInfo::class); + $this->writeOneof(37, $var); + + return $this; + } + + /** + * Display information of the reason why GKE Pod IP masquerading was + * skipped. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo ip_masquerading_skipped = 38; + * @return \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo|null + */ + public function getIpMasqueradingSkipped() + { + return $this->readOneof(38); + } + + public function hasIpMasqueradingSkipped() + { + return $this->hasOneof(38); + } + + /** + * Display information of the reason why GKE Pod IP masquerading was + * skipped. + * + * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo ip_masquerading_skipped = 38; + * @param \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo $var + * @return $this + */ + public function setIpMasqueradingSkipped($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo::class); + $this->writeOneof(38, $var); + + return $this; + } + /** * Display information of a Cloud SQL instance. * diff --git a/NetworkManagement/src/V1/Step/State.php b/NetworkManagement/src/V1/Step/State.php index 57023ce6b99e..40bf8cd52b4d 100644 --- a/NetworkManagement/src/V1/Step/State.php +++ b/NetworkManagement/src/V1/Step/State.php @@ -64,6 +64,13 @@ class State * Generated from protobuf enum START_FROM_CLOUD_SQL_INSTANCE = 22; */ const START_FROM_CLOUD_SQL_INSTANCE = 22; + /** + * Initial state: packet originating from a Google Kubernetes Engine Pod. + * A GkePodInfo is populated with starting Pod information. + * + * Generated from protobuf enum START_FROM_GKE_POD = 39; + */ + const START_FROM_GKE_POD = 39; /** * Initial state: packet originating from a Redis instance. * A RedisInstanceInfo is populated with starting instance information. @@ -229,6 +236,13 @@ class State * Generated from protobuf enum NAT = 14; */ const NAT = 14; + /** + * Transition state: GKE Pod IP masquerading is skipped. The + * `ip_masquerading_skipped` field is populated with the reason. + * + * Generated from protobuf enum SKIP_GKE_POD_IP_MASQUERADING = 40; + */ + const SKIP_GKE_POD_IP_MASQUERADING = 40; /** * Transition state: original connection is terminated and a new proxied * connection is initiated. @@ -277,6 +291,7 @@ class State self::START_FROM_PRIVATE_NETWORK => 'START_FROM_PRIVATE_NETWORK', self::START_FROM_GKE_MASTER => 'START_FROM_GKE_MASTER', self::START_FROM_CLOUD_SQL_INSTANCE => 'START_FROM_CLOUD_SQL_INSTANCE', + self::START_FROM_GKE_POD => 'START_FROM_GKE_POD', self::START_FROM_REDIS_INSTANCE => 'START_FROM_REDIS_INSTANCE', self::START_FROM_REDIS_CLUSTER => 'START_FROM_REDIS_CLUSTER', self::START_FROM_CLOUD_FUNCTION => 'START_FROM_CLOUD_FUNCTION', @@ -302,6 +317,7 @@ class State self::DIRECT_VPC_EGRESS_CONNECTION => 'DIRECT_VPC_EGRESS_CONNECTION', self::SERVERLESS_EXTERNAL_CONNECTION => 'SERVERLESS_EXTERNAL_CONNECTION', self::NAT => 'NAT', + self::SKIP_GKE_POD_IP_MASQUERADING => 'SKIP_GKE_POD_IP_MASQUERADING', self::PROXY_CONNECTION => 'PROXY_CONNECTION', self::DELIVER => 'DELIVER', self::DROP => 'DROP', diff --git a/NetworkManagement/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php b/NetworkManagement/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php index 24c88457f0a3..6228a202a6f6 100644 --- a/NetworkManagement/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php +++ b/NetworkManagement/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php @@ -169,7 +169,7 @@ 'additionalBindings' => [ [ 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', 'body' => '*', ], ], @@ -187,7 +187,7 @@ 'additionalBindings' => [ [ 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', ], ], 'placeholders' => [ @@ -204,7 +204,7 @@ 'additionalBindings' => [ [ 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', ], ], 'placeholders' => [ @@ -221,7 +221,7 @@ 'additionalBindings' => [ [ 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', ], ], 'placeholders' => [ diff --git a/NetworkManagement/src/V1/resources/reachability_service_rest_client_config.php b/NetworkManagement/src/V1/resources/reachability_service_rest_client_config.php index 1ebffa3c5a35..33c79e4c81a5 100644 --- a/NetworkManagement/src/V1/resources/reachability_service_rest_client_config.php +++ b/NetworkManagement/src/V1/resources/reachability_service_rest_client_config.php @@ -181,7 +181,7 @@ 'additionalBindings' => [ [ 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', 'body' => '*', ], ], @@ -199,7 +199,7 @@ 'additionalBindings' => [ [ 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', ], ], 'placeholders' => [ @@ -216,7 +216,7 @@ 'additionalBindings' => [ [ 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', ], ], 'placeholders' => [ @@ -233,7 +233,7 @@ 'additionalBindings' => [ [ 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', ], ], 'placeholders' => [ diff --git a/NetworkManagement/src/V1/resources/vpc_flow_logs_service_rest_client_config.php b/NetworkManagement/src/V1/resources/vpc_flow_logs_service_rest_client_config.php index f19e9ce8414a..afcf1fe55919 100644 --- a/NetworkManagement/src/V1/resources/vpc_flow_logs_service_rest_client_config.php +++ b/NetworkManagement/src/V1/resources/vpc_flow_logs_service_rest_client_config.php @@ -191,7 +191,7 @@ 'additionalBindings' => [ [ 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', 'body' => '*', ], ], @@ -209,7 +209,7 @@ 'additionalBindings' => [ [ 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', ], ], 'placeholders' => [ @@ -226,7 +226,7 @@ 'additionalBindings' => [ [ 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', ], ], 'placeholders' => [ @@ -243,7 +243,7 @@ 'additionalBindings' => [ [ 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', ], ], 'placeholders' => [ diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/ConnectivityTest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/ConnectivityTest.php deleted file mode 100644 index ea954ffbe505e4944ef94386627a2745adcc50d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5490 zcmcIoTXWmS6%MKUp+r$oWJ5}uz_e4#)0!MHnKq^EBp?aNoKhr9QgYSd%oYTe6k-T~ zagm4hXr_;S?C(si6%YDM>Z_(l5#*+9Kd{hF+mhIZhNaQ{M^cE%WFI&-I_8-aTi9g2LO*q@mQP(v zHM)DK+i3AdX8 zT#f$f&hVe?7~MmIntF+ztCxoD7K_)Xx(2yzYl}t!o_p8r0qb^L4D$T?M~>|nm>|A- z;mp6cLgbp#$_eVZu9)1Yl--qA7cZLi1!mT-89Jw3C zk-I$D+l|mw$H=>p&%^rId;G(SedgFm{F6wW7Z;{w-jBT(3EYhYTt~~Z#0$LeL-t=Q zkeRL}VG9;neToSwvA$>4N zraC12kSk1{S+gKCVA)iA)bzwv6ipSrn&Ujv&db#}f@1mZQ1~2DnoH3N!U7@!Ki*!9 z8b>QP%Jt9;+!Z+352IbF`F5Sbhp0+BS9^xZx~+~))xe{y^X1)+AiFQu4m!7!AEZBPtsqx^YVBsYlhD9K3z|y5^1~kn4V)Bbb(f?L{1qU}P zJFEdLYA=T)G(Vjn!qYe*^KYWRuJWd>@e1(r1JmxQ=EUG+^Uce@VdL{E`wxKCxP}Du zqu~%$*Rg$gk)`Xf=-95$4P6qjG7JkV9tRpP(ly~OZ1!#Uwd(3Do^D`LaRZOPCVT^T zrall~b#ab~EZFJ7*K-6rwk&rzQqe*U9gf43>G=nLPb7paWK3Jt2_BW1<`P5aX%H6T z^8}MQ17T9eA39WId5|uAHis=WR8WfWJGeDepJdQ`APinoa-n)Sy@_T9?6=4}fq?$& zztSynn>z(1dBqU#m5E#;^5iQ2b_dcf#a?o~&hltY*ny33Jq8x|@+Pb>rH-wOJAB~` z(jj)tJ)#C7&vCesqsxpd9Y*9OUd3V(RL3FI8W--u z9a!;1^~bVrnT2HU0qo3nC^mz@HNq0x>pleWR>w?8${^l)zHvc8gp^0!OGBfC>EZL0 zCv28LYTW8yfLK>LFB+{skj`0CAt&{AQz=&ut4byFfv^dwqjHl(5}5?f?ag|lPR19L znBuF|dPixYSY{zRgb!y`tMDtx9yVGpqzNL>Evkbj$AJ*sBjB5 zY7MzUN^*^@v@%I%)M*oKkUPo?`7E;_tiVFEUCu0)cHu6W-E&IYutg@z-_T1tusyZN z5+VEFBy7(ZUYIb;*cb!T=W$CHp3RXeGjMP)G7upTDXb);k2e`M%~_06g||#|;T|ke z*R|b<9tp8}WMR3Gs0v@eGAD8#@)kxp_G1}dTr+uNj#KKa3d@mQcR*+|DA!*;a0Vt6>{djaEk!XIHf7LRZc zl?^X;{Lkk&{tc6|{{cu((hNrBCPF_Cm79dfMgRVc!T%Ga)E>@iqN#yLd6!EU%5%72 zwxu$|Dl;f-Cm9dp#kg;e5)HYQ&x!GpfF#HZG!6MeKQJf0vktf<9Kr^TC_2uyzRjm% zs*s<FvdH0M0CQ)r;Za31Hs4g z>fR$*pD<+?wl1je+K!EMUbTpdv^bhS-z7nqf&P={{H!cuUGHsK#BPF1v!Wl~?S7`{ zGb)fO{MhJYc*au3cl5_Y3*T&-0*XQWy$ zH|p(byQ9=`EZ=Cyi`fBeMHY-z`hEB$wn8p7S{+iBPukP8UuCJpAMGJBS5CjQ(G2Uq+MfES>F zJ>zW?8xzmGx$1>gM`7nMzyq4(sYDdpLR%`c3#MH};6f-cbx~#seOg44>Jq;0oaX DmZkDz diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Reachability.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Reachability.php deleted file mode 100644 index 20446620128e..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Reachability.php +++ /dev/null @@ -1,84 +0,0 @@ -internalAddGeneratedFile( - ' -à -4google/cloud/networkmanagement/v1/reachability.proto!google.cloud.networkmanagement.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto9google/cloud/networkmanagement/v1/connectivity_test.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"¬ -ListConnectivityTestsRequestC -parent ( B3àAúA- -+cloudresourcemanager.googleapis.com/Project - page_size ( - -page_token (  -filter (  -order_by ( "• -ListConnectivityTestsResponseF - resources ( 23.google.cloud.networkmanagement.v1.ConnectivityTest -next_page_token (  - unreachable ( "e -GetConnectivityTestRequestG -name ( B9àAúA3 -1networkmanagement.googleapis.com/ConnectivityTest"Æ -CreateConnectivityTestRequestC -parent ( B3àAúA- -+cloudresourcemanager.googleapis.com/Project -test_id ( BàAJ -resource ( 23.google.cloud.networkmanagement.v1.ConnectivityTestBàA"¡ -UpdateConnectivityTestRequest4 - update_mask ( 2.google.protobuf.FieldMaskBàAJ -resource ( 23.google.cloud.networkmanagement.v1.ConnectivityTestBàA"h -DeleteConnectivityTestRequestG -name ( B9àAúA3 -1networkmanagement.googleapis.com/ConnectivityTest"g -RerunConnectivityTestRequestG -name ( B9àAúA3 -1networkmanagement.googleapis.com/ConnectivityTest"Ö -OperationMetadata/ - create_time ( 2.google.protobuf.Timestamp, -end_time ( 2.google.protobuf.Timestamp -target (  -verb (  - status_detail (  -cancel_requested ( - api_version ( 2– -ReachabilityServiceç -ListConnectivityTests?.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest@.google.cloud.networkmanagement.v1.ListConnectivityTestsResponse"KÚAparent‚Óä“<:/v1/{parent=projects/*/locations/global}/connectivityTestsÔ -GetConnectivityTest=.google.cloud.networkmanagement.v1.GetConnectivityTestRequest3.google.cloud.networkmanagement.v1.ConnectivityTest"IÚAname‚Óä“<:/v1/{name=projects/*/locations/global/connectivityTests/*}¬ -CreateConnectivityTest@.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest.google.longrunning.Operation"°ÊAG -2google.cloud.networkmanagement.v1.ConnectivityTestOperationMetadataÚAparent,test_id,resource‚Óä“F":/v1/{parent=projects/*/locations/global}/connectivityTests:resource² -UpdateConnectivityTest@.google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest.google.longrunning.Operation"¶ÊAG -2google.cloud.networkmanagement.v1.ConnectivityTestOperationMetadataÚAupdate_mask,resource‚Óä“O2C/v1/{resource.name=projects/*/locations/global/connectivityTests/*}:resource -RerunConnectivityTest?.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest.google.longrunning.Operation"•ÊAG -2google.cloud.networkmanagement.v1.ConnectivityTestOperationMetadata‚Óä“E"@/v1/{name=projects/*/locations/global/connectivityTests/*}:rerun:*ñ -DeleteConnectivityTest@.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest.google.longrunning.Operation"vÊA* -google.protobuf.EmptyOperationMetadataÚAname‚Óä“<*:/v1/{name=projects/*/locations/global/connectivityTests/*}TÊA networkmanagement.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB‡ -%com.google.cloud.networkmanagement.v1BReachabilityServiceProtoPZScloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpbª!Google.Cloud.NetworkManagement.V1Ê!Google\\Cloud\\NetworkManagement\\V1ê$Google::Cloud::NetworkManagement::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Trace.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/Trace.php deleted file mode 100644 index 5f4282bf8c7bfefbb47306b7416b4e3f8e27367e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21949 zcmc&+-H#htR$uqGZ+AMCN+$8-YaAytllkgQda|>-Js&&%sP6X0ZF~ID*$fRej$PgH zrek|;cV+|H2PBYor4B&+gutjyqj%gE0#+=sfi%BRt6N)C+swwA1TMI|n}^To*47M>A7rQF6VF^dn;m=8lkwm^rkfD_(EsZoX4CSc z{=s(NJMI;{$DL>W;dpB+c&h-(=T0pT4u|p6crV`iu&>@c-|P7=x(&v-?UP1?zAAqF zdnxhOmtqO~h6LYW4%(REpp9pDFJDm@JEQ)cLwZ#l^x;slRPJ|DVv)JR-WF%PL2on! zu?&z&WmC6TH}7nG;R+j$nnxR9zbh6eQ*SiM%w^{>|KQaG2%4B+XM}Y)9Dmjs_grRr zx8KVwfQH4~Z(kP+402wq_7wAg|CqwG{XQ)SF~owY+v}TeC0uW#Nt0}#>~>Bj-o)*V zhoj6qaIDz25Rkag#R-cUq?h#n#v(EF3U|e?-;MyMzcH|_5X=ESg&-4Km1V~vYD-3xbL9m0*MqO785677o67S&t zs9ThD4aW-GV{x?yJ_e5Y$R z3GWBe?3ioic&%cBwTMe4B1hqwSuQV@d){#$V3{?>yO98INzPCd1BK%L%$dX}6xS;h zPzs$#!|^n;&Ipnyg*?Hl>FgIL=s%C5fn2 zFt4Dd5w^lyCI$6^4N7`^Q^zm7t=!mP6FZ}k>kW?j1J8vtPe?0WOuUKt z(a7Ps`*Lc4R+2eB8MtHbS)b8fN{p6CZJZ1mYN|r}EipgnOfxSsp4StcakZmGy&)_( zH$Ql8D#Xi-=iLN&;LiWx`HT+yR9p^e0H}iQ6L=ZYlf1&%w-R7C)j>g`2#$M#hyjt2 z`{)F?r5|<-`KdGw}Jk-5q#GnQO`M`4g+&k;Iq#=M}LiJ<1ovxn?Wha@=;c zS$B%%?Xpv{zGhz%=kd7FaVsP2zBO;ZC|)qeq1N2Jd=tp67wjA2nlV(Y)Y>H%@*hxj z(Y`2b1B7PRYbER8)d*D$M6}IdUe>-UGR8bPT&%Qt;Tw_3a^dZEwb&}xs@A0lUHN+5 zb*ek%s^jiEjV6J-7y*$O8ttmvaQ4d#ayha{vsG*4cO19SF5btsUbAnBtU+PDS#;~| zLZ#f?b+8F)cdtj0;JMSNIL#(Dc*lCleo0&bd6kEF^_>Pi-Yz$s2l-0HZL}+nwLqsM z0i3w;MfmegoZ-0nR&Yvb8eZCd%_?w(U^Sufk6h4<@4S3%Vp7VN&bTEfv_4vnb8PyobHH|?Cb zPRFi}*MCI==9axI=BxRZwNB`o_sexx351J3Aypr@okpHc%(`t~5Ei!oyAL%Lw8&X| zRVl{5+$8FhmS}f)ZwMNT2Pu#a(b{^n}>rP{@+$7F+`G2f& zp|C2_FrXvWuDSo36KkfW1qEv`zN6#LbC(iEDokD#^C#mz2gzysoJe!m$Gm9@ zgq6$X5*$U|{E*?0wsHF-j(ho`?^NR<#j$BxR8OCFjwXmr=kfH4I7_ZL;zPI7?G8^6 zoKVP_CN~coe|a?NLicjo%LrhY01E$Ttz{U_0emKoxmI}MwpfBgGCi4a__V&6#BP~8 z#G(JmB=@0MB9(nIQQEH6Zbpjr+}fc0Nm;Gk;ezWzL_L4G&f~K|Dc>e3wU5?&q@+p|1~LK zTeNGz8_{|cf~{{RaaZ&bbo?7F-V|CX_ows1(qsPe&@&+;;kF*uqfP=e-fkJXq*2^0 z7om~;3H4f~Tzn`ELW;CKX)}M6Z4NsO<-K|Z{st?%@bJ8SN4#MuIzo^y7Rh$)!Mf~V zQh34wDLds(1Vbhvi}q{cWew4AcA%tAqj||bcvakNK7=2zr+t)oq|5f(;!OqUg|ojS1gG#MgOf^3rp0^=8~hiu zbxoWZKp(r0ha-uOH0S!}Hxszq0lF$M><&kaur5|5ag**4;y?+7_01%4WPpzUYSMI8 z*a<9BpyMcRO@qbHAk~Zft5$_lXI&60`emioV*C-?CH1MP&Pa1D63)Jgj!oSK>L%lE zuo5NrSRFF~BP2;hR_N}8m1Q#5u*YmO>o{myG0(F;Ae(NP2gUCTxgn zGZXYaF)Zaj*y`@i6FggM#WS=vh0baC?ic(?+A7m1<^9s|NnU_$Ky-|P5#?wprOdb~ zMo!zWi0iY%AwPtI-ZVVHb9zSt6qGzp=l(FIWQ5u9vbe~;ah%i%SZ?WBrjV;&B55uc z5i*gR^{|@X!;g8A_qyXWSllJ>Lg<;CL{{#shSQUmY)h;u?NP`#p%j*3!9>0U2d-77 z-(K!#b7cMlv4PK4h4<+0*6ML2llP#9%XO#@(EmBnJ4;fDN61m%<0quw{lhf&sNF@f9r-wO~@P`W(=+WI8BAqntl>fX8T_-|_ z_y`*mlT^wa@UDj5rCKbyyX^wP016zPV!PqE51fK4U1+`dnOsqbK&OyKmaNe%)@E!d zctG!4iWovKF;`d@Yp&)!@HI$X=ij~z7G4%N-5EiW#acu13R!V|7R(nNpw9htPMn*m zbCBDukil=J`dZrViu2(@iqzql6yb*XfEnnjupWDz@n4Xlf-G}A}RxDx5b*yC-OVcL9B0n`>VWzLdoRAYtU%P%CXmw z`}I_KD;W~5dpPkDxMDp$s&iQ!xGD!0DWVFb6j17c_Fb*{+<(rA^KrYMK&+jw&K41ROR}N!#Ten6?r);+!~xM2_)j zF6RgLr-kn~Lsp<;hJS#`q=>) zGCT2abK(rh2#VE7r~q3UItg9Ph zjT}>A4c0a?oJvxo3%xZ*Xh1>=B=>V-mE0HglYAZWU&u3!(IoH`rFSDe&(w@B8uoK@ z|1u{opI*pMvimTLoaXDQUIJ2wa{q(FmHQ4zRn8*!U&bMl4eDZnw~KaqeY222*iWZ< zgSGCa$R2N+X+a}BrdgBCZDHk~e)2bezcRP7ko#0D@LXu)n4N`YEummhMC?zZ2A``nFsq;z3JJkb{-1qbG zZnR{^B&kD_{8Qu(y z#wG_@RckT#<9V@abm@F0u`=fWAH*v6KdCQdV3-}92EkiEJ>r2`shcBZ7|JqGibWWO z+tvHk+Jmajq+2Q8Ib%TY+&m9J zsa9*QU)n_aX_=p27Z=+oZnaQDM%ujOG~tpUlZJ}r3Xk7F2STmgC^``NQoRO9mnvY} zwKj^*vg!*ExU+lt77_ud_eyA;e_3NJ$P5~&<4~Q^a0V)KipICjaL}gu{qZJqR3?ts zGVsLZHUTValiRN7L)A84DskPO-ltrR5`KxY5=QB@nT6i?ai zNCYU1IE@Bs^MVwNQMN&q9BS6!0Gtxit=!aM5y_-!?#l*%@_xDXP)5iUZt2PoD(XmL z;#?&g%FQxZ)~1rye$aiR4$FYZkQ&iDHZ%W4Lhna=GsBn3;7MIKGj_$kE8aSVP4jyN zgoia$pUHe{Q9~O5IOq$f_~7Wxq1G1p>VzoJu;vzBprW0E@-;#{=vxNDkX;V#d5#27 zAq-pe5ZFyRLIoCSaS6e_K-pd5N!rMK0WD8~v|1NgihZ$eHrp5m`^w%Z?PO@>cbzuS zc=uD_6c?bYhgaq%Ak__mr5pL`j?+Y&30NoKNaDR#tyn{qPia52evl%PjZ%0csd@D2 z1VZy#?x#1zN=bFk+8>22QIeK&J@<1BQ7F~y$I@niU}iK`vQqle2qcu#e&h|2B|*Ih zK}>hp^Hdmp3$5HncrydV;YRL1Uitz%21)a`NjDZLwG8hAx&UnAly|Dc0O&G9b5-pD zl<*w6iM|kW>3g31ZD=Z%J!omT5K;_-It5omQOx-gVv9C}SRIexjT^63g}d zceS~--b_5_oS+Arr3$LU_Ukb=C! zwLQa~(=x*@u$Cy_*y>S1mMwao{=2V|dW()?&o$dNQK9>$xaW&q0h`E;6ydzM&OMvy zQ8e;xiFc9fVt>oW(8}*{x0SZtZs8%MJkqIWwW(gIiIBpm+OO70Ta&s~-KC+yE3`*i z7n5M>rmZ9Lj{<8Ki}@-wZ$>PciK8T)3~GFhTiYR$eWsuuAKomekF&HmQ6(F3ajN-t zYq!=Ye*)K8vIn{Yp^jn*jDtN#gio3*+?#D$UZ0JVlX|2YmcI6zmM zFA!l7L#t3=>%*SQE5vKO{f0l|_b=WevI07cGcXh{x|EeUg)7x+z|hvw^y;9`m)eX1 zp}lUuBkphmFOng|4IyYlB^dDpEIl@E7Fz2V1PkEUSPHd&Psx15L5(1&QYUWRV4
mWS5!vrCJAT&fY+o(SP;-~K5j#7O4hfDEhU6*sb-nTqq}m&S9MlwV|p zOFpgg|G@%8Jqb;nlDU^Td@{LB$`hRu_1hB{<8K{EzD7ink4&)`T)9%4+NphK4UDi; zsiDnUOXb_lWl{Jj)qCwqt6Yc2O4*O5^)5AT2S=utGaOQDi^#@m6gbL;7Ic#1PzhEG zm(lC|E!ry@!zM!9ajp~w(MI4M>UnCHC|Mt&XZx1wzoyqCFGBUTs6>p4)~#>QE<_-u zag2xmX264HqK^q^IQh~;bk|dxUqt1YFQfMw{xrlpY&>@J=&mQffx4$vdk=yd#8h$< zX_GLn3>tj$+mw+akA(^;l^Qy#-y_c}vV6SGvOXlxFag?n>5x`)OP*Ap9@NKzE+a4$ zoix9H$wBWucE2EZAV{USFcaFw(;MiJ!Yanl8nHTREo+<3Ju+sn5mRC9u>TgikKv08 z_D70AyI$5CXzh|O7Qu@Bl`bIkl%X+w!6_3@&(1OYG3z_L0}+@IwJLP7s>G?0(~|SF zUDX?KpDbs1D1;HGU{#1a!!URold?T>1j7&^ESjzwoi}ruZubf{g)$|^##nU)tJRwC zEMfzrupirB7k7bIhK6#VW3&@_lI9W(4th-T(RbDp*4McEk_=HsKDRS;7m;!&|Qx%}hoDsE= z>BLavfI5LwNfHhPCQ}2(Mp<3r^~$DvPqn+ITkp@Zdh}YK3rXDWF;hgr47MRf^4@XUMpA>T#1ZTnct?%W2IVH}(!3u8DA|_u|_dbI@ zA-M48^+U5>DNBBs!By!*mrr^FT=iDpq2LcAq;qu?C;WT3NH#9x4ll1Q8^gkNNZGgK z7m|rwlOoQbBMN;Kj_D zBd6b-1E401B%n(UO6hPv_53D@2?fGP?@?AA6IslIi&U&iD7Z&Pn|z*H$weWA`~$=| zS`5hqH|t0=BZ&iVA`V5vX|)^3qR>S-)RA&ON{I`6r8aWinaVj|)I1nri7(5fK`VvK zkNqZ!nKRdq@pE4csP8}$iON4XvlkkXxxRoXZX(G28QR~Xm#x1t zO?SjK>}hw1PWBL0;l?7PK86Vs4^1e&$ZPl$m}p}H8Y*;xQr(Th9inr5z~=StByV7% zl3R-6rn&~MzXCIl{u0SPksH}xb^)Jvbk}Flfau~nWXx6aBr8D0;j-Mck2`9PoERc-7pFu%e&mNP>K3e{#Q{64yTWTO3g(D)laPc<`rH=wnxgEx3ukE$K=m2%@H4^Rvb}JU}gRi)5OjEAc3`Ec0k|Egq$-ev8yNz_&kS z2N_+%;~O`)TcR8N4L0ptwXXZF}o5{;bA10{Z>z!xifFJ6sJk%|g`>oXH zwvBNLQr&!p>!(8sSV@fNUqSviPc61+H}IoY7(e7HwF9pMNaX~={Ha7H898#=%=^TP z^o6eTF*H*s<1e6ZX~cCCB1Bf{F&N!@_ds;$$-DPtKd`2bEHfNMkPL^yd?;N#P>bq| z@f`CPbH9t$;ri@{A+S==?ZTY z(oa(2W@t#aZ}aD&4*U384tJ5$L9K6ol0ei?+2goQ@(Dg=f+e`2yfFWd`T5*mr^HJ! zt=}df1;L@5rY>rrAi%Mxyj~h{#GxyqaH=I70edh)O{itmI{5i~u_et`=w zed}P<3_BNcFsn1)KcU;$>MJTNmbqI1^6jJgs0l?(_$~^w0Yklx8v>zgCfsQY;=|E( zOy4aMGj!phiPY0RT>>j1TW5U70y+uh8VL~|n3Fjjb+b4QVxA!UVpkjl>sS9mMP%hg zQojD>i^$*-MdCj0)1a0qve6+)nEVwYuHx+EadkT$B2B3Sbu&ceK#+9~V-bb_PKlTC zG0`t({es|+IYJjthxODaO}3i;wBge`N5h!UjN(2KzBH;dMDY31(WCcbp8dhx4cQ;N z!B%ObD!+iR=YO?yWB=}7YM2A{RZ{&~(g5lJ-zELo+%1V}Ym0GhZOtIt+Sjj%lc diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogs.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogs.php deleted file mode 100644 index 4fa1b0a5cbd0..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogs.php +++ /dev/null @@ -1,102 +0,0 @@ -internalAddGeneratedFile( - ' -µ/ -5google/cloud/networkmanagement/v1/vpc_flow_logs.proto!google.cloud.networkmanagement.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto4google/cloud/networkmanagement/v1/reachability.proto.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest4.google.cloud.networkmanagement.v1.VpcFlowLogsConfig"EÚAname‚Óä“86/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}Ó -CreateVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.google.longrunning.Operation"ÕÊAH -VpcFlowLogsConfig3google.cloud.networkmanagement.v1.OperationMetadataÚA3parent,vpc_flow_logs_config,vpc_flow_logs_config_id‚Óä“N"6/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:vpc_flow_logs_configÕ -UpdateVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.google.longrunning.Operation"×ÊAH -VpcFlowLogsConfig3google.cloud.networkmanagement.v1.OperationMetadataÚA vpc_flow_logs_config,update_mask‚Óä“c2K/v1/{vpc_flow_logs_config.name=projects/*/locations/*/vpcFlowLogsConfigs/*}:vpc_flow_logs_config’ -DeleteVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.google.longrunning.Operation"”ÊAL -google.protobuf.Empty3google.cloud.networkmanagement.v1.OperationMetadataÚAname‚Óä“8*6/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}„ -QueryOrgVpcFlowLogsConfigsD.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequestE.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse"Y‚Óä“SQ/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigsŒ -ShowEffectiveFlowLogsConfigsF.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequestG.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse"[‚Óä“US/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigsTÊA networkmanagement.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platform2‘ -OrganizationVpcFlowLogsServiceë -ListVpcFlowLogsConfigs@.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequestA.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse"LÚAparent‚Óä“=;/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigsØ -GetVpcFlowLogsConfig>.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest4.google.cloud.networkmanagement.v1.VpcFlowLogsConfig"JÚAname‚Óä“=;/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}Ø -CreateVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.google.longrunning.Operation"ÚÊAH -VpcFlowLogsConfig3google.cloud.networkmanagement.v1.OperationMetadataÚA3parent,vpc_flow_logs_config,vpc_flow_logs_config_id‚Óä“S";/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs:vpc_flow_logs_configÚ -UpdateVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.google.longrunning.Operation"ÜÊAH -VpcFlowLogsConfig3google.cloud.networkmanagement.v1.OperationMetadataÚA vpc_flow_logs_config,update_mask‚Óä“h2P/v1/{vpc_flow_logs_config.name=organizations/*/locations/*/vpcFlowLogsConfigs/*}:vpc_flow_logs_config— -DeleteVpcFlowLogsConfigA.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.google.longrunning.Operation"™ÊAL -google.protobuf.Empty3google.cloud.networkmanagement.v1.OperationMetadataÚAname‚Óä“=*;/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}TÊA networkmanagement.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBÿ -%com.google.cloud.networkmanagement.v1BVpcFlowLogsProtoPZScloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpbª!Google.Cloud.NetworkManagement.V1Ê!Google\\Cloud\\NetworkManagement\\V1ê$Google::Cloud::NetworkManagement::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogsConfig.php b/owl-bot-staging/NetworkManagement/v1/proto/src/GPBMetadata/Google/Cloud/Networkmanagement/V1/VpcFlowLogsConfig.php deleted file mode 100644 index 6f08b074bfb939687f855025494c40fc1ecce722..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4363 zcmcgvQFGfw5XN@mr0XPQ#!P_H(?O2|rS%$FN?{oPh5$@;pSZTF z5usSmZ4*!JsGiy`GR$_KVz#TJnC+eQy8xP@x~{NeYg-6iLF7CGhUXyQpWWXzbWLzQ z)x&>Rbyv|%-P2V=e};$M6uPS65=0r-?e8A#|}$ z8nwDtCuPK-{D?5PL3TX={T7m;B1R2H}u(yjM@% zwkeD22@+m zIKjdFEM2)AEU}!$%g%V=>3oIM?@3q~%S3Jgrf7Qe5h1d6CKvlhoaNqwL?_4(Offzh zu0%?apCS>i3DYzi2p_|R`HgJ)rEaIk%%+AIMYY#+NDoWFGO-RYQ4dsu zpJFyjr?Md)0kXtLJl|rBTD%NrS-rb>|Aub%_-Qm1^%bV5!Z$FxAJjS@XKrks%8jsL z_|Vf7`VyQAp_ML8eV3mRVt)K1H2z)PzyK)Zd)wh>(Kfr8NGVP?yRf7=mg_2b(~pSe zDIpYpmU&q|m6v%6iIqVSk9#~rjeZ9gJk`NAp@eCt_(?FwY@Y6dWQG_P@E|2(rCDln z0cL_4;5#$~rFXa_#NGZbN_i4UR$-at3N~z$#zOTxRokOYo$m%JivS0HA({rA(>*YR%gys;;ZH1N}e+I23HdaFHur||!&O>*_ z=&rtvq!R3cSK7656B0xAxdg->lc#di(!iKIS-X%=Gc0xUFTQI?ce zwON<)<*l+*NWO#nXQZl_tKdh3n}gXxx#@pJQ-4O_{Df-au7V&Iiw&tL%H>*BDOY8w zu_IPSfH{~StlUwWQXcWo!?}U%_AMria>I)2%67S$j2)BRVX~=Xo7ZnK;q-B#uNhD6 z!)%z$91n}zk}MWPSsZZ?SIX6VrB#p=u~Jb&Ep!uCqz4mLqSRcz)s$=7N9wWEj}cg$ zR7l(hkjgh|&8AXs)V`GR@?g`5Cn6b1AK?6i>f)}!sw_5&lB_hO zX06r8OUk5FSb?QcHR(aQDK{}B=;G*Fp(ZsI9J>^zl#FJ7jlK|nj>5(`hxuHA^yQ{; zYRilf1NU{%)!fYU;MZZsurx*sC<}ic(t+*xP=%`~8yn&dxo<6}r<(e+5M%iBb-_R6 z#{Jk>7?b4|;M_?6%+14`GQ_jFS%~{RHMa~Glu2xuOTxT=zL2zX2{<$8{|s@6IdT_a zS(!`~IUbgj5r=%^slR7nMZ&Qf=gR}KGa6)U3`6q*SAAo%fInM2emi4;KXa^1oB&E} zI*{Km`Ip#8v3vsWW1ktP{1O`#%(uq&{&eyGvhID%7tOK>?~e`nkQh%MdDAE7V!BD8 zN_0L+{SrZTqo0i3^0oRXy8*=;-!i)!K{xHINS z5SRfc)rQ!j5-<<9K1>?OG{c{hIb=7^roG$O2hYTh{HOBJ%bJeRx;Eie%{2YD?;#ul F{0Gofd8hyY diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo.php deleted file mode 100644 index 6c89077243d9..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.networkmanagement.v1.AbortInfo - */ -class AbortInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Causes that the analysis is aborted. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo.Cause cause = 1; - */ - protected $cause = 0; - /** - * URI of the resource that caused the abort. - * - * Generated from protobuf field string resource_uri = 2; - */ - protected $resource_uri = ''; - /** - * IP address that caused the abort. - * - * Generated from protobuf field string ip_address = 4 [(.google.api.field_info) = { - */ - protected $ip_address = ''; - /** - * List of project IDs the user specified in the request but lacks access to. - * In this case, analysis is aborted with the PERMISSION_DENIED cause. - * - * Generated from protobuf field repeated string projects_missing_permission = 3; - */ - private $projects_missing_permission; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cause - * Causes that the analysis is aborted. - * @type string $resource_uri - * URI of the resource that caused the abort. - * @type string $ip_address - * IP address that caused the abort. - * @type array|\Google\Protobuf\Internal\RepeatedField $projects_missing_permission - * List of project IDs the user specified in the request but lacks access to. - * In this case, analysis is aborted with the PERMISSION_DENIED cause. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Causes that the analysis is aborted. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo.Cause cause = 1; - * @return int - */ - public function getCause() - { - return $this->cause; - } - - /** - * Causes that the analysis is aborted. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo.Cause cause = 1; - * @param int $var - * @return $this - */ - public function setCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\AbortInfo\Cause::class); - $this->cause = $var; - - return $this; - } - - /** - * URI of the resource that caused the abort. - * - * Generated from protobuf field string resource_uri = 2; - * @return string - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * URI of the resource that caused the abort. - * - * Generated from protobuf field string resource_uri = 2; - * @param string $var - * @return $this - */ - public function setResourceUri($var) - { - GPBUtil::checkString($var, True); - $this->resource_uri = $var; - - return $this; - } - - /** - * IP address that caused the abort. - * - * Generated from protobuf field string ip_address = 4 [(.google.api.field_info) = { - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * IP address that caused the abort. - * - * Generated from protobuf field string ip_address = 4 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - - /** - * List of project IDs the user specified in the request but lacks access to. - * In this case, analysis is aborted with the PERMISSION_DENIED cause. - * - * Generated from protobuf field repeated string projects_missing_permission = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProjectsMissingPermission() - { - return $this->projects_missing_permission; - } - - /** - * List of project IDs the user specified in the request but lacks access to. - * In this case, analysis is aborted with the PERMISSION_DENIED cause. - * - * Generated from protobuf field repeated string projects_missing_permission = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProjectsMissingPermission($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->projects_missing_permission = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo/Cause.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo/Cause.php deleted file mode 100644 index 7acb19950721..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AbortInfo/Cause.php +++ /dev/null @@ -1,394 +0,0 @@ -google.cloud.networkmanagement.v1.AbortInfo.Cause - */ -class Cause -{ - /** - * Cause is unspecified. - * - * Generated from protobuf enum CAUSE_UNSPECIFIED = 0; - */ - const CAUSE_UNSPECIFIED = 0; - /** - * Aborted due to unknown network. Deprecated, not used in the new tests. - * - * Generated from protobuf enum UNKNOWN_NETWORK = 1 [deprecated = true]; - */ - const UNKNOWN_NETWORK = 1; - /** - * Aborted because no project information can be derived from the test - * input. Deprecated, not used in the new tests. - * - * Generated from protobuf enum UNKNOWN_PROJECT = 3 [deprecated = true]; - */ - const UNKNOWN_PROJECT = 3; - /** - * Aborted because traffic is sent from a public IP to an instance without - * an external IP. Deprecated, not used in the new tests. - * - * Generated from protobuf enum NO_EXTERNAL_IP = 7 [deprecated = true]; - */ - const NO_EXTERNAL_IP = 7; - /** - * Aborted because none of the traces matches destination information - * specified in the input test request. Deprecated, not used in the new - * tests. - * - * Generated from protobuf enum UNINTENDED_DESTINATION = 8 [deprecated = true]; - */ - const UNINTENDED_DESTINATION = 8; - /** - * Aborted because the source endpoint could not be found. Deprecated, not - * used in the new tests. - * - * Generated from protobuf enum SOURCE_ENDPOINT_NOT_FOUND = 11 [deprecated = true]; - */ - const SOURCE_ENDPOINT_NOT_FOUND = 11; - /** - * Aborted because the source network does not match the source endpoint. - * Deprecated, not used in the new tests. - * - * Generated from protobuf enum MISMATCHED_SOURCE_NETWORK = 12 [deprecated = true]; - */ - const MISMATCHED_SOURCE_NETWORK = 12; - /** - * Aborted because the destination endpoint could not be found. Deprecated, - * not used in the new tests. - * - * Generated from protobuf enum DESTINATION_ENDPOINT_NOT_FOUND = 13 [deprecated = true]; - */ - const DESTINATION_ENDPOINT_NOT_FOUND = 13; - /** - * Aborted because the destination network does not match the destination - * endpoint. Deprecated, not used in the new tests. - * - * Generated from protobuf enum MISMATCHED_DESTINATION_NETWORK = 14 [deprecated = true]; - */ - const MISMATCHED_DESTINATION_NETWORK = 14; - /** - * Aborted because no endpoint with the packet's destination IP address is - * found. - * - * Generated from protobuf enum UNKNOWN_IP = 2; - */ - const UNKNOWN_IP = 2; - /** - * Aborted because no endpoint with the packet's destination IP is found in - * the Google-managed project. - * - * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; - */ - const GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; - /** - * Aborted because the source IP address doesn't belong to any of the - * subnets of the source VPC network. - * - * Generated from protobuf enum SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK = 23; - */ - const SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK = 23; - /** - * Aborted because user lacks permission to access all or part of the - * network configurations required to run the test. - * - * Generated from protobuf enum PERMISSION_DENIED = 4; - */ - const PERMISSION_DENIED = 4; - /** - * Aborted because user lacks permission to access Cloud NAT configs - * required to run the test. - * - * Generated from protobuf enum PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS = 28; - */ - const PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS = 28; - /** - * Aborted because user lacks permission to access Network endpoint group - * endpoint configs required to run the test. - * - * Generated from protobuf enum PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; - */ - const PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; - /** - * Aborted because user lacks permission to access Cloud Router configs - * required to run the test. - * - * Generated from protobuf enum PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; - */ - const PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; - /** - * Aborted because no valid source or destination endpoint can be derived - * from the test request. - * - * Generated from protobuf enum NO_SOURCE_LOCATION = 5; - */ - const NO_SOURCE_LOCATION = 5; - /** - * Aborted because the source IP address is not contained within the subnet - * ranges of the provided VPC network. - * - * Generated from protobuf enum NO_SOURCE_GCP_NETWORK_LOCATION = 42; - */ - const NO_SOURCE_GCP_NETWORK_LOCATION = 42; - /** - * Aborted because the source IP address is not contained within the - * destination ranges of the routes towards non-GCP networks in the provided - * VPC network. - * - * Generated from protobuf enum NO_SOURCE_NON_GCP_NETWORK_LOCATION = 43; - */ - const NO_SOURCE_NON_GCP_NETWORK_LOCATION = 43; - /** - * Aborted because the source IP address can't be resolved as an Internet - * IP address. - * - * Generated from protobuf enum NO_SOURCE_INTERNET_LOCATION = 44; - */ - const NO_SOURCE_INTERNET_LOCATION = 44; - /** - * Aborted because the source or destination endpoint specified in - * the request is invalid. Some examples: - * - The request might contain malformed resource URI, project ID, or IP - * address. - * - The request might contain inconsistent information (for example, the - * request might include both the instance and the network, but the instance - * might not have a NIC in that network). - * - * Generated from protobuf enum INVALID_ARGUMENT = 6; - */ - const INVALID_ARGUMENT = 6; - /** - * Aborted because the number of steps in the trace exceeds a certain - * limit. It might be caused by a routing loop. - * - * Generated from protobuf enum TRACE_TOO_LONG = 9; - */ - const TRACE_TOO_LONG = 9; - /** - * Aborted due to internal server error. - * - * Generated from protobuf enum INTERNAL_ERROR = 10; - */ - const INTERNAL_ERROR = 10; - /** - * Aborted because the test scenario is not supported. - * - * Generated from protobuf enum UNSUPPORTED = 15; - */ - const UNSUPPORTED = 15; - /** - * Aborted because the source and destination resources have no common IP - * version. - * - * Generated from protobuf enum MISMATCHED_IP_VERSION = 16; - */ - const MISMATCHED_IP_VERSION = 16; - /** - * Aborted because the connection between the control plane and the node of - * the source cluster is initiated by the node and managed by the - * Konnectivity proxy. - * - * Generated from protobuf enum GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17; - */ - const GKE_KONNECTIVITY_PROXY_UNSUPPORTED = 17; - /** - * Aborted because expected resource configuration was missing. - * - * Generated from protobuf enum RESOURCE_CONFIG_NOT_FOUND = 18; - */ - const RESOURCE_CONFIG_NOT_FOUND = 18; - /** - * Aborted because expected VM instance configuration was missing. - * - * Generated from protobuf enum VM_INSTANCE_CONFIG_NOT_FOUND = 24; - */ - const VM_INSTANCE_CONFIG_NOT_FOUND = 24; - /** - * Aborted because expected network configuration was missing. - * - * Generated from protobuf enum NETWORK_CONFIG_NOT_FOUND = 25; - */ - const NETWORK_CONFIG_NOT_FOUND = 25; - /** - * Aborted because expected firewall configuration was missing. - * - * Generated from protobuf enum FIREWALL_CONFIG_NOT_FOUND = 26; - */ - const FIREWALL_CONFIG_NOT_FOUND = 26; - /** - * Aborted because expected route configuration was missing. - * - * Generated from protobuf enum ROUTE_CONFIG_NOT_FOUND = 27; - */ - const ROUTE_CONFIG_NOT_FOUND = 27; - /** - * Aborted because PSC endpoint selection for the Google-managed service - * is ambiguous (several PSC endpoints satisfy test input). - * - * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19; - */ - const GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19; - /** - * Aborted because endpoint selection for the Google-managed service is - * ambiguous (several endpoints satisfy test input). - * - * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; - */ - const GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; - /** - * Aborted because tests with a PSC-based Cloud SQL instance as a source are - * not supported. - * - * Generated from protobuf enum SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; - */ - const SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; - /** - * Aborted because tests with the external database as a source are not - * supported. In such replication scenarios, the connection is initiated by - * the Cloud SQL replica instance. - * - * Generated from protobuf enum SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED = 45; - */ - const SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED = 45; - /** - * Aborted because tests with a Redis Cluster as a source are not supported. - * - * Generated from protobuf enum SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; - */ - const SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; - /** - * Aborted because tests with a Redis Instance as a source are not - * supported. - * - * Generated from protobuf enum SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; - */ - const SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; - /** - * Aborted because tests with a forwarding rule as a source are not - * supported. - * - * Generated from protobuf enum SOURCE_FORWARDING_RULE_UNSUPPORTED = 21; - */ - const SOURCE_FORWARDING_RULE_UNSUPPORTED = 21; - /** - * Aborted because one of the endpoints is a non-routable IP address - * (loopback, link-local, etc). - * - * Generated from protobuf enum NON_ROUTABLE_IP_ADDRESS = 22; - */ - const NON_ROUTABLE_IP_ADDRESS = 22; - /** - * Aborted due to an unknown issue in the Google-managed project. - * - * Generated from protobuf enum UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT = 30; - */ - const UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT = 30; - /** - * Aborted due to an unsupported configuration of the Google-managed - * project. - * - * Generated from protobuf enum UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG = 31; - */ - const UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG = 31; - /** - * Aborted because the source endpoint is a Cloud Run revision with direct - * VPC access enabled, but there are no reserved serverless IP ranges. - * - * Generated from protobuf enum NO_SERVERLESS_IP_RANGES = 37; - */ - const NO_SERVERLESS_IP_RANGES = 37; - /** - * Aborted because the used protocol is not supported for the used IP - * version. - * - * Generated from protobuf enum IP_VERSION_PROTOCOL_MISMATCH = 40; - */ - const IP_VERSION_PROTOCOL_MISMATCH = 40; - /** - * Aborted because selected GKE Pod endpoint location is unknown. This is - * often the case for "Pending" Pods, which don't have assigned IP addresses - * yet. - * - * Generated from protobuf enum GKE_POD_UNKNOWN_ENDPOINT_LOCATION = 41; - */ - const GKE_POD_UNKNOWN_ENDPOINT_LOCATION = 41; - - private static $valueToName = [ - self::CAUSE_UNSPECIFIED => 'CAUSE_UNSPECIFIED', - self::UNKNOWN_NETWORK => 'UNKNOWN_NETWORK', - self::UNKNOWN_PROJECT => 'UNKNOWN_PROJECT', - self::NO_EXTERNAL_IP => 'NO_EXTERNAL_IP', - self::UNINTENDED_DESTINATION => 'UNINTENDED_DESTINATION', - self::SOURCE_ENDPOINT_NOT_FOUND => 'SOURCE_ENDPOINT_NOT_FOUND', - self::MISMATCHED_SOURCE_NETWORK => 'MISMATCHED_SOURCE_NETWORK', - self::DESTINATION_ENDPOINT_NOT_FOUND => 'DESTINATION_ENDPOINT_NOT_FOUND', - self::MISMATCHED_DESTINATION_NETWORK => 'MISMATCHED_DESTINATION_NETWORK', - self::UNKNOWN_IP => 'UNKNOWN_IP', - self::GOOGLE_MANAGED_SERVICE_UNKNOWN_IP => 'GOOGLE_MANAGED_SERVICE_UNKNOWN_IP', - self::SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK => 'SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK', - self::PERMISSION_DENIED => 'PERMISSION_DENIED', - self::PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS => 'PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS', - self::PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS => 'PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS', - self::PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS => 'PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS', - self::NO_SOURCE_LOCATION => 'NO_SOURCE_LOCATION', - self::NO_SOURCE_GCP_NETWORK_LOCATION => 'NO_SOURCE_GCP_NETWORK_LOCATION', - self::NO_SOURCE_NON_GCP_NETWORK_LOCATION => 'NO_SOURCE_NON_GCP_NETWORK_LOCATION', - self::NO_SOURCE_INTERNET_LOCATION => 'NO_SOURCE_INTERNET_LOCATION', - self::INVALID_ARGUMENT => 'INVALID_ARGUMENT', - self::TRACE_TOO_LONG => 'TRACE_TOO_LONG', - self::INTERNAL_ERROR => 'INTERNAL_ERROR', - self::UNSUPPORTED => 'UNSUPPORTED', - self::MISMATCHED_IP_VERSION => 'MISMATCHED_IP_VERSION', - self::GKE_KONNECTIVITY_PROXY_UNSUPPORTED => 'GKE_KONNECTIVITY_PROXY_UNSUPPORTED', - self::RESOURCE_CONFIG_NOT_FOUND => 'RESOURCE_CONFIG_NOT_FOUND', - self::VM_INSTANCE_CONFIG_NOT_FOUND => 'VM_INSTANCE_CONFIG_NOT_FOUND', - self::NETWORK_CONFIG_NOT_FOUND => 'NETWORK_CONFIG_NOT_FOUND', - self::FIREWALL_CONFIG_NOT_FOUND => 'FIREWALL_CONFIG_NOT_FOUND', - self::ROUTE_CONFIG_NOT_FOUND => 'ROUTE_CONFIG_NOT_FOUND', - self::GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT => 'GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT', - self::GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT => 'GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT', - self::SOURCE_PSC_CLOUD_SQL_UNSUPPORTED => 'SOURCE_PSC_CLOUD_SQL_UNSUPPORTED', - self::SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED => 'SOURCE_EXTERNAL_CLOUD_SQL_UNSUPPORTED', - self::SOURCE_REDIS_CLUSTER_UNSUPPORTED => 'SOURCE_REDIS_CLUSTER_UNSUPPORTED', - self::SOURCE_REDIS_INSTANCE_UNSUPPORTED => 'SOURCE_REDIS_INSTANCE_UNSUPPORTED', - self::SOURCE_FORWARDING_RULE_UNSUPPORTED => 'SOURCE_FORWARDING_RULE_UNSUPPORTED', - self::NON_ROUTABLE_IP_ADDRESS => 'NON_ROUTABLE_IP_ADDRESS', - self::UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT => 'UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT', - self::UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG => 'UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG', - self::NO_SERVERLESS_IP_RANGES => 'NO_SERVERLESS_IP_RANGES', - self::IP_VERSION_PROTOCOL_MISMATCH => 'IP_VERSION_PROTOCOL_MISMATCH', - self::GKE_POD_UNKNOWN_ENDPOINT_LOCATION => 'GKE_POD_UNKNOWN_ENDPOINT_LOCATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Cause::class, \Google\Cloud\NetworkManagement\V1\AbortInfo_Cause::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AppEngineVersionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AppEngineVersionInfo.php deleted file mode 100644 index 070e54ea76de..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/AppEngineVersionInfo.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.networkmanagement.v1.AppEngineVersionInfo - */ -class AppEngineVersionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of an App Engine version. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of an App Engine version. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Runtime of the App Engine version. - * - * Generated from protobuf field string runtime = 3; - */ - protected $runtime = ''; - /** - * App Engine execution environment for a version. - * - * Generated from protobuf field string environment = 4; - */ - protected $environment = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of an App Engine version. - * @type string $uri - * URI of an App Engine version. - * @type string $runtime - * Runtime of the App Engine version. - * @type string $environment - * App Engine execution environment for a version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of an App Engine version. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of an App Engine version. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of an App Engine version. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of an App Engine version. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Runtime of the App Engine version. - * - * Generated from protobuf field string runtime = 3; - * @return string - */ - public function getRuntime() - { - return $this->runtime; - } - - /** - * Runtime of the App Engine version. - * - * Generated from protobuf field string runtime = 3; - * @param string $var - * @return $this - */ - public function setRuntime($var) - { - GPBUtil::checkString($var, True); - $this->runtime = $var; - - return $this; - } - - /** - * App Engine execution environment for a version. - * - * Generated from protobuf field string environment = 4; - * @return string - */ - public function getEnvironment() - { - return $this->environment; - } - - /** - * App Engine execution environment for a version. - * - * Generated from protobuf field string environment = 4; - * @param string $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkString($var, True); - $this->environment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudFunctionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudFunctionInfo.php deleted file mode 100644 index 0706272a11a9..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudFunctionInfo.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.networkmanagement.v1.CloudFunctionInfo - */ -class CloudFunctionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a Cloud Function. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a Cloud Function. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Location in which the Cloud Function is deployed. - * - * Generated from protobuf field string location = 3; - */ - protected $location = ''; - /** - * Latest successfully deployed version id of the Cloud Function. - * - * Generated from protobuf field int64 version_id = 4; - */ - protected $version_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a Cloud Function. - * @type string $uri - * URI of a Cloud Function. - * @type string $location - * Location in which the Cloud Function is deployed. - * @type int|string $version_id - * Latest successfully deployed version id of the Cloud Function. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a Cloud Function. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a Cloud Function. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a Cloud Function. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a Cloud Function. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Location in which the Cloud Function is deployed. - * - * Generated from protobuf field string location = 3; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location in which the Cloud Function is deployed. - * - * Generated from protobuf field string location = 3; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Latest successfully deployed version id of the Cloud Function. - * - * Generated from protobuf field int64 version_id = 4; - * @return int|string - */ - public function getVersionId() - { - return $this->version_id; - } - - /** - * Latest successfully deployed version id of the Cloud Function. - * - * Generated from protobuf field int64 version_id = 4; - * @param int|string $var - * @return $this - */ - public function setVersionId($var) - { - GPBUtil::checkInt64($var); - $this->version_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudRunRevisionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudRunRevisionInfo.php deleted file mode 100644 index 4848d1718d60..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudRunRevisionInfo.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.networkmanagement.v1.CloudRunRevisionInfo - */ -class CloudRunRevisionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a Cloud Run revision. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a Cloud Run revision. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Location in which this revision is deployed. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - /** - * URI of Cloud Run service this revision belongs to. - * - * Generated from protobuf field string service_uri = 5; - */ - protected $service_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a Cloud Run revision. - * @type string $uri - * URI of a Cloud Run revision. - * @type string $location - * Location in which this revision is deployed. - * @type string $service_uri - * URI of Cloud Run service this revision belongs to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a Cloud Run revision. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a Cloud Run revision. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a Cloud Run revision. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a Cloud Run revision. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Location in which this revision is deployed. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location in which this revision is deployed. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * URI of Cloud Run service this revision belongs to. - * - * Generated from protobuf field string service_uri = 5; - * @return string - */ - public function getServiceUri() - { - return $this->service_uri; - } - - /** - * URI of Cloud Run service this revision belongs to. - * - * Generated from protobuf field string service_uri = 5; - * @param string $var - * @return $this - */ - public function setServiceUri($var) - { - GPBUtil::checkString($var, True); - $this->service_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudSQLInstanceInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudSQLInstanceInfo.php deleted file mode 100644 index 6dc47236ce8f..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CloudSQLInstanceInfo.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.networkmanagement.v1.CloudSQLInstanceInfo - */ -class CloudSQLInstanceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a Cloud SQL instance. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a Cloud SQL instance. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * URI of a Cloud SQL instance network or empty string if the instance does - * not have one. - * - * Generated from protobuf field string network_uri = 4; - */ - protected $network_uri = ''; - /** - * Internal IP address of a Cloud SQL instance. - * - * Generated from protobuf field string internal_ip = 5; - */ - protected $internal_ip = ''; - /** - * External IP address of a Cloud SQL instance. - * - * Generated from protobuf field string external_ip = 6; - */ - protected $external_ip = ''; - /** - * Region in which the Cloud SQL instance is running. - * - * Generated from protobuf field string region = 7; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a Cloud SQL instance. - * @type string $uri - * URI of a Cloud SQL instance. - * @type string $network_uri - * URI of a Cloud SQL instance network or empty string if the instance does - * not have one. - * @type string $internal_ip - * Internal IP address of a Cloud SQL instance. - * @type string $external_ip - * External IP address of a Cloud SQL instance. - * @type string $region - * Region in which the Cloud SQL instance is running. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a Cloud SQL instance. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a Cloud SQL instance. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a Cloud SQL instance. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a Cloud SQL instance. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * URI of a Cloud SQL instance network or empty string if the instance does - * not have one. - * - * Generated from protobuf field string network_uri = 4; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of a Cloud SQL instance network or empty string if the instance does - * not have one. - * - * Generated from protobuf field string network_uri = 4; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * Internal IP address of a Cloud SQL instance. - * - * Generated from protobuf field string internal_ip = 5; - * @return string - */ - public function getInternalIp() - { - return $this->internal_ip; - } - - /** - * Internal IP address of a Cloud SQL instance. - * - * Generated from protobuf field string internal_ip = 5; - * @param string $var - * @return $this - */ - public function setInternalIp($var) - { - GPBUtil::checkString($var, True); - $this->internal_ip = $var; - - return $this; - } - - /** - * External IP address of a Cloud SQL instance. - * - * Generated from protobuf field string external_ip = 6; - * @return string - */ - public function getExternalIp() - { - return $this->external_ip; - } - - /** - * External IP address of a Cloud SQL instance. - * - * Generated from protobuf field string external_ip = 6; - * @param string $var - * @return $this - */ - public function setExternalIp($var) - { - GPBUtil::checkString($var, True); - $this->external_ip = $var; - - return $this; - } - - /** - * Region in which the Cloud SQL instance is running. - * - * Generated from protobuf field string region = 7; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region in which the Cloud SQL instance is running. - * - * Generated from protobuf field string region = 7; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ConnectivityTest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ConnectivityTest.php deleted file mode 100644 index a8522c9df26e..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ConnectivityTest.php +++ /dev/null @@ -1,701 +0,0 @@ -google.cloud.networkmanagement.v1.ConnectivityTest - */ -class ConnectivityTest extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The user-supplied description of the Connectivity Test. - * Maximum of 512 characters. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Required. Source specification of the Connectivity Test. - * You can use a combination of source IP address, URI of a supported - * endpoint, project ID, or VPC network to identify the source location. - * Reachability analysis might proceed even if the source location is - * ambiguous. However, the test result might include endpoints or use a source - * that you don't intend to test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $source = null; - /** - * Required. Destination specification of the Connectivity Test. - * You can use a combination of destination IP address, URI of a supported - * endpoint, project ID, or VPC network to identify the destination location. - * Reachability analysis proceeds even if the destination location is - * ambiguous. However, the test result might include endpoints or use a - * destination that you don't intend to test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination = null; - /** - * IP Protocol of the test. When not provided, "TCP" is assumed. - * - * Generated from protobuf field string protocol = 5; - */ - protected $protocol = ''; - /** - * Other projects that may be relevant for reachability analysis. - * This is applicable to scenarios where a test can cross project boundaries. - * - * Generated from protobuf field repeated string related_projects = 6; - */ - private $related_projects; - /** - * Output only. The display name of a Connectivity Test. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Resource labels to represent user-provided metadata. - * - * Generated from protobuf field map labels = 8; - */ - private $labels; - /** - * Output only. The time the test was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the test's configuration was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The reachability details of this test from the latest run. - * The details are updated when creating a new test, updating an - * existing test, or triggering a one-time rerun of an existing test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reachability_details = null; - /** - * Output only. The probing details of this test from the latest run, present - * for applicable tests only. The details are updated when creating a new - * test, updating an existing test, or triggering a one-time rerun of an - * existing test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $probing_details = null; - /** - * Whether run analysis for the return path from destination to source. - * Default value is false. - * - * Generated from protobuf field bool round_trip = 15; - */ - protected $round_trip = false; - /** - * Output only. The reachability details of this test from the latest run for - * the return path. The details are updated when creating a new test, - * updating an existing test, or triggering a one-time rerun of an existing - * test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails return_reachability_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $return_reachability_details = null; - /** - * Whether the analysis should skip firewall checking. Default value is false. - * - * Generated from protobuf field bool bypass_firewall_checks = 17; - */ - protected $bypass_firewall_checks = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * @type string $description - * The user-supplied description of the Connectivity Test. - * Maximum of 512 characters. - * @type \Google\Cloud\NetworkManagement\V1\Endpoint $source - * Required. Source specification of the Connectivity Test. - * You can use a combination of source IP address, URI of a supported - * endpoint, project ID, or VPC network to identify the source location. - * Reachability analysis might proceed even if the source location is - * ambiguous. However, the test result might include endpoints or use a source - * that you don't intend to test. - * @type \Google\Cloud\NetworkManagement\V1\Endpoint $destination - * Required. Destination specification of the Connectivity Test. - * You can use a combination of destination IP address, URI of a supported - * endpoint, project ID, or VPC network to identify the destination location. - * Reachability analysis proceeds even if the destination location is - * ambiguous. However, the test result might include endpoints or use a - * destination that you don't intend to test. - * @type string $protocol - * IP Protocol of the test. When not provided, "TCP" is assumed. - * @type array|\Google\Protobuf\Internal\RepeatedField $related_projects - * Other projects that may be relevant for reachability analysis. - * This is applicable to scenarios where a test can cross project boundaries. - * @type string $display_name - * Output only. The display name of a Connectivity Test. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Resource labels to represent user-provided metadata. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the test was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time the test's configuration was updated. - * @type \Google\Cloud\NetworkManagement\V1\ReachabilityDetails $reachability_details - * Output only. The reachability details of this test from the latest run. - * The details are updated when creating a new test, updating an - * existing test, or triggering a one-time rerun of an existing test. - * @type \Google\Cloud\NetworkManagement\V1\ProbingDetails $probing_details - * Output only. The probing details of this test from the latest run, present - * for applicable tests only. The details are updated when creating a new - * test, updating an existing test, or triggering a one-time rerun of an - * existing test. - * @type bool $round_trip - * Whether run analysis for the return path from destination to source. - * Default value is false. - * @type \Google\Cloud\NetworkManagement\V1\ReachabilityDetails $return_reachability_details - * Output only. The reachability details of this test from the latest run for - * the return path. The details are updated when creating a new test, - * updating an existing test, or triggering a one-time rerun of an existing - * test. - * @type bool $bypass_firewall_checks - * Whether the analysis should skip firewall checking. Default value is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Unique name of the resource using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The user-supplied description of the Connectivity Test. - * Maximum of 512 characters. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The user-supplied description of the Connectivity Test. - * Maximum of 512 characters. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Source specification of the Connectivity Test. - * You can use a combination of source IP address, URI of a supported - * endpoint, project ID, or VPC network to identify the source location. - * Reachability analysis might proceed even if the source location is - * ambiguous. However, the test result might include endpoints or use a source - * that you don't intend to test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\NetworkManagement\V1\Endpoint|null - */ - public function getSource() - { - return $this->source; - } - - public function hasSource() - { - return isset($this->source); - } - - public function clearSource() - { - unset($this->source); - } - - /** - * Required. Source specification of the Connectivity Test. - * You can use a combination of source IP address, URI of a supported - * endpoint, project ID, or VPC network to identify the source location. - * Reachability analysis might proceed even if the source location is - * ambiguous. However, the test result might include endpoints or use a source - * that you don't intend to test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint source = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\NetworkManagement\V1\Endpoint $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint::class); - $this->source = $var; - - return $this; - } - - /** - * Required. Destination specification of the Connectivity Test. - * You can use a combination of destination IP address, URI of a supported - * endpoint, project ID, or VPC network to identify the destination location. - * Reachability analysis proceeds even if the destination location is - * ambiguous. However, the test result might include endpoints or use a - * destination that you don't intend to test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\NetworkManagement\V1\Endpoint|null - */ - public function getDestination() - { - return $this->destination; - } - - public function hasDestination() - { - return isset($this->destination); - } - - public function clearDestination() - { - unset($this->destination); - } - - /** - * Required. Destination specification of the Connectivity Test. - * You can use a combination of destination IP address, URI of a supported - * endpoint, project ID, or VPC network to identify the destination location. - * Reachability analysis proceeds even if the destination location is - * ambiguous. However, the test result might include endpoints or use a - * destination that you don't intend to test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint destination = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\NetworkManagement\V1\Endpoint $var - * @return $this - */ - public function setDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint::class); - $this->destination = $var; - - return $this; - } - - /** - * IP Protocol of the test. When not provided, "TCP" is assumed. - * - * Generated from protobuf field string protocol = 5; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * IP Protocol of the test. When not provided, "TCP" is assumed. - * - * Generated from protobuf field string protocol = 5; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * Other projects that may be relevant for reachability analysis. - * This is applicable to scenarios where a test can cross project boundaries. - * - * Generated from protobuf field repeated string related_projects = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedProjects() - { - return $this->related_projects; - } - - /** - * Other projects that may be relevant for reachability analysis. - * This is applicable to scenarios where a test can cross project boundaries. - * - * Generated from protobuf field repeated string related_projects = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedProjects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->related_projects = $arr; - - return $this; - } - - /** - * Output only. The display name of a Connectivity Test. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The display name of a Connectivity Test. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Resource labels to represent user-provided metadata. - * - * Generated from protobuf field map labels = 8; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Resource labels to represent user-provided metadata. - * - * Generated from protobuf field map labels = 8; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The time the test was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the test was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the test's configuration was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time the test's configuration was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The reachability details of this test from the latest run. - * The details are updated when creating a new test, updating an - * existing test, or triggering a one-time rerun of an existing test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\NetworkManagement\V1\ReachabilityDetails|null - */ - public function getReachabilityDetails() - { - return $this->reachability_details; - } - - public function hasReachabilityDetails() - { - return isset($this->reachability_details); - } - - public function clearReachabilityDetails() - { - unset($this->reachability_details); - } - - /** - * Output only. The reachability details of this test from the latest run. - * The details are updated when creating a new test, updating an - * existing test, or triggering a one-time rerun of an existing test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\NetworkManagement\V1\ReachabilityDetails $var - * @return $this - */ - public function setReachabilityDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ReachabilityDetails::class); - $this->reachability_details = $var; - - return $this; - } - - /** - * Output only. The probing details of this test from the latest run, present - * for applicable tests only. The details are updated when creating a new - * test, updating an existing test, or triggering a one-time rerun of an - * existing test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\NetworkManagement\V1\ProbingDetails|null - */ - public function getProbingDetails() - { - return $this->probing_details; - } - - public function hasProbingDetails() - { - return isset($this->probing_details); - } - - public function clearProbingDetails() - { - unset($this->probing_details); - } - - /** - * Output only. The probing details of this test from the latest run, present - * for applicable tests only. The details are updated when creating a new - * test, updating an existing test, or triggering a one-time rerun of an - * existing test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails probing_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\NetworkManagement\V1\ProbingDetails $var - * @return $this - */ - public function setProbingDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails::class); - $this->probing_details = $var; - - return $this; - } - - /** - * Whether run analysis for the return path from destination to source. - * Default value is false. - * - * Generated from protobuf field bool round_trip = 15; - * @return bool - */ - public function getRoundTrip() - { - return $this->round_trip; - } - - /** - * Whether run analysis for the return path from destination to source. - * Default value is false. - * - * Generated from protobuf field bool round_trip = 15; - * @param bool $var - * @return $this - */ - public function setRoundTrip($var) - { - GPBUtil::checkBool($var); - $this->round_trip = $var; - - return $this; - } - - /** - * Output only. The reachability details of this test from the latest run for - * the return path. The details are updated when creating a new test, - * updating an existing test, or triggering a one-time rerun of an existing - * test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails return_reachability_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\NetworkManagement\V1\ReachabilityDetails|null - */ - public function getReturnReachabilityDetails() - { - return $this->return_reachability_details; - } - - public function hasReturnReachabilityDetails() - { - return isset($this->return_reachability_details); - } - - public function clearReturnReachabilityDetails() - { - unset($this->return_reachability_details); - } - - /** - * Output only. The reachability details of this test from the latest run for - * the return path. The details are updated when creating a new test, - * updating an existing test, or triggering a one-time rerun of an existing - * test. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails return_reachability_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\NetworkManagement\V1\ReachabilityDetails $var - * @return $this - */ - public function setReturnReachabilityDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ReachabilityDetails::class); - $this->return_reachability_details = $var; - - return $this; - } - - /** - * Whether the analysis should skip firewall checking. Default value is false. - * - * Generated from protobuf field bool bypass_firewall_checks = 17; - * @return bool - */ - public function getBypassFirewallChecks() - { - return $this->bypass_firewall_checks; - } - - /** - * Whether the analysis should skip firewall checking. Default value is false. - * - * Generated from protobuf field bool bypass_firewall_checks = 17; - * @param bool $var - * @return $this - */ - public function setBypassFirewallChecks($var) - { - GPBUtil::checkBool($var); - $this->bypass_firewall_checks = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateConnectivityTestRequest.php deleted file mode 100644 index 1fdd275480d8..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateConnectivityTestRequest.php +++ /dev/null @@ -1,199 +0,0 @@ -google.cloud.networkmanagement.v1.CreateConnectivityTestRequest - */ -class CreateConnectivityTestRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the Connectivity Test to create: - * `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The logical name of the Connectivity Test in your project - * with the following restrictions: - * * Must contain only lowercase letters, numbers, and hyphens. - * * Must start with a letter. - * * Must be between 1-40 characters. - * * Must end with a number or a letter. - * * Must be unique within the customer project - * - * Generated from protobuf field string test_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $test_id = ''; - /** - * Required. A `ConnectivityTest` resource - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource = null; - - /** - * @param string $parent Required. The parent resource of the Connectivity Test to create: - * `projects/{project_id}/locations/global` - * Please see {@see ReachabilityServiceClient::projectName()} for help formatting this field. - * @param string $testId Required. The logical name of the Connectivity Test in your project - * with the following restrictions: - * - * * Must contain only lowercase letters, numbers, and hyphens. - * * Must start with a letter. - * * Must be between 1-40 characters. - * * Must end with a number or a letter. - * * Must be unique within the customer project - * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource Required. A `ConnectivityTest` resource - * - * @return \Google\Cloud\NetworkManagement\V1\CreateConnectivityTestRequest - * - * @experimental - */ - public static function build(string $parent, string $testId, \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource): self - { - return (new self()) - ->setParent($parent) - ->setTestId($testId) - ->setResource($resource); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the Connectivity Test to create: - * `projects/{project_id}/locations/global` - * @type string $test_id - * Required. The logical name of the Connectivity Test in your project - * with the following restrictions: - * * Must contain only lowercase letters, numbers, and hyphens. - * * Must start with a letter. - * * Must be between 1-40 characters. - * * Must end with a number or a letter. - * * Must be unique within the customer project - * @type \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource - * Required. A `ConnectivityTest` resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the Connectivity Test to create: - * `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource of the Connectivity Test to create: - * `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The logical name of the Connectivity Test in your project - * with the following restrictions: - * * Must contain only lowercase letters, numbers, and hyphens. - * * Must start with a letter. - * * Must be between 1-40 characters. - * * Must end with a number or a letter. - * * Must be unique within the customer project - * - * Generated from protobuf field string test_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTestId() - { - return $this->test_id; - } - - /** - * Required. The logical name of the Connectivity Test in your project - * with the following restrictions: - * * Must contain only lowercase letters, numbers, and hyphens. - * * Must start with a letter. - * * Must be between 1-40 characters. - * * Must end with a number or a letter. - * * Must be unique within the customer project - * - * Generated from protobuf field string test_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTestId($var) - { - GPBUtil::checkString($var, True); - $this->test_id = $var; - - return $this; - } - - /** - * Required. A `ConnectivityTest` resource - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\NetworkManagement\V1\ConnectivityTest|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Required. A `ConnectivityTest` resource - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ConnectivityTest::class); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateVpcFlowLogsConfigRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateVpcFlowLogsConfigRequest.php deleted file mode 100644 index 3e67c2fe16df..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/CreateVpcFlowLogsConfigRequest.php +++ /dev/null @@ -1,186 +0,0 @@ -google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest - */ -class CreateVpcFlowLogsConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the VpcFlowLogsConfig to create, - * in one of the following formats: - * - For project-level resources: `projects/{project_id}/locations/global` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the `VpcFlowLogsConfig`. - * - * Generated from protobuf field string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $vpc_flow_logs_config_id = ''; - /** - * Required. A `VpcFlowLogsConfig` resource - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vpc_flow_logs_config = null; - - /** - * @param string $parent Required. The parent resource of the VpcFlowLogsConfig to create, - * in one of the following formats: - * - * - For project-level resources: `projects/{project_id}/locations/global` - * - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * Please see {@see VpcFlowLogsServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource - * @param string $vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. Please see - * {@see VpcFlowLogsServiceClient::vpcFlowLogsConfigName()} for help formatting this field. - * - * @return \Google\Cloud\NetworkManagement\V1\CreateVpcFlowLogsConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpcFlowLogsConfig, string $vpcFlowLogsConfigId): self - { - return (new self()) - ->setParent($parent) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig) - ->setVpcFlowLogsConfigId($vpcFlowLogsConfigId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the VpcFlowLogsConfig to create, - * in one of the following formats: - * - For project-level resources: `projects/{project_id}/locations/global` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * @type string $vpc_flow_logs_config_id - * Required. ID of the `VpcFlowLogsConfig`. - * @type \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpc_flow_logs_config - * Required. A `VpcFlowLogsConfig` resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the VpcFlowLogsConfig to create, - * in one of the following formats: - * - For project-level resources: `projects/{project_id}/locations/global` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource of the VpcFlowLogsConfig to create, - * in one of the following formats: - * - For project-level resources: `projects/{project_id}/locations/global` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. ID of the `VpcFlowLogsConfig`. - * - * Generated from protobuf field string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getVpcFlowLogsConfigId() - { - return $this->vpc_flow_logs_config_id; - } - - /** - * Required. ID of the `VpcFlowLogsConfig`. - * - * Generated from protobuf field string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setVpcFlowLogsConfigId($var) - { - GPBUtil::checkString($var, True); - $this->vpc_flow_logs_config_id = $var; - - return $this; - } - - /** - * Required. A `VpcFlowLogsConfig` resource - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig|null - */ - public function getVpcFlowLogsConfig() - { - return $this->vpc_flow_logs_config; - } - - public function hasVpcFlowLogsConfig() - { - return isset($this->vpc_flow_logs_config); - } - - public function clearVpcFlowLogsConfig() - { - unset($this->vpc_flow_logs_config); - } - - /** - * Required. A `VpcFlowLogsConfig` resource - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $var - * @return $this - */ - public function setVpcFlowLogsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig::class); - $this->vpc_flow_logs_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteConnectivityTestRequest.php deleted file mode 100644 index 32c0612f03aa..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteConnectivityTestRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest - */ -class DeleteConnectivityTestRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * Please see {@see ReachabilityServiceClient::connectivityTestName()} for help formatting this field. - * - * @return \Google\Cloud\NetworkManagement\V1\DeleteConnectivityTestRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); - parent::__construct($data); - } - - /** - * Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteVpcFlowLogsConfigRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteVpcFlowLogsConfigRequest.php deleted file mode 100644 index e25e5e6350cb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeleteVpcFlowLogsConfigRequest.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest - */ -class DeleteVpcFlowLogsConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - For a project-level resource: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For an organization-level resource: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - * - For a project-level resource: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * - For an organization-level resource: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * Please see {@see VpcFlowLogsServiceClient::vpcFlowLogsConfigName()} for help formatting this field. - * - * @return \Google\Cloud\NetworkManagement\V1\DeleteVpcFlowLogsConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - For a project-level resource: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For an organization-level resource: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - For a project-level resource: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For an organization-level resource: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - For a project-level resource: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For an organization-level resource: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo.php deleted file mode 100644 index 1b654aa9bdab..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo.php +++ /dev/null @@ -1,245 +0,0 @@ -google.cloud.networkmanagement.v1.DeliverInfo - */ -class DeliverInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Target type where the packet is delivered to. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.Target target = 1; - */ - protected $target = 0; - /** - * URI of the resource that the packet is delivered to. - * - * Generated from protobuf field string resource_uri = 2; - */ - protected $resource_uri = ''; - /** - * IP address of the target (if applicable). - * - * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { - */ - protected $ip_address = ''; - /** - * Name of the Cloud Storage Bucket the packet is delivered to (if - * applicable). - * - * Generated from protobuf field string storage_bucket = 4; - */ - protected $storage_bucket = ''; - /** - * PSC Google API target the packet is delivered to (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 5; - */ - protected $psc_google_api_target = ''; - /** - * Recognized type of a Google Service the packet is delivered to (if - * applicable). - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; - */ - protected $google_service_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $target - * Target type where the packet is delivered to. - * @type string $resource_uri - * URI of the resource that the packet is delivered to. - * @type string $ip_address - * IP address of the target (if applicable). - * @type string $storage_bucket - * Name of the Cloud Storage Bucket the packet is delivered to (if - * applicable). - * @type string $psc_google_api_target - * PSC Google API target the packet is delivered to (if applicable). - * @type int $google_service_type - * Recognized type of a Google Service the packet is delivered to (if - * applicable). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Target type where the packet is delivered to. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.Target target = 1; - * @return int - */ - public function getTarget() - { - return $this->target; - } - - /** - * Target type where the packet is delivered to. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.Target target = 1; - * @param int $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\DeliverInfo\Target::class); - $this->target = $var; - - return $this; - } - - /** - * URI of the resource that the packet is delivered to. - * - * Generated from protobuf field string resource_uri = 2; - * @return string - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * URI of the resource that the packet is delivered to. - * - * Generated from protobuf field string resource_uri = 2; - * @param string $var - * @return $this - */ - public function setResourceUri($var) - { - GPBUtil::checkString($var, True); - $this->resource_uri = $var; - - return $this; - } - - /** - * IP address of the target (if applicable). - * - * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * IP address of the target (if applicable). - * - * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - - /** - * Name of the Cloud Storage Bucket the packet is delivered to (if - * applicable). - * - * Generated from protobuf field string storage_bucket = 4; - * @return string - */ - public function getStorageBucket() - { - return $this->storage_bucket; - } - - /** - * Name of the Cloud Storage Bucket the packet is delivered to (if - * applicable). - * - * Generated from protobuf field string storage_bucket = 4; - * @param string $var - * @return $this - */ - public function setStorageBucket($var) - { - GPBUtil::checkString($var, True); - $this->storage_bucket = $var; - - return $this; - } - - /** - * PSC Google API target the packet is delivered to (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 5; - * @return string - */ - public function getPscGoogleApiTarget() - { - return $this->psc_google_api_target; - } - - /** - * PSC Google API target the packet is delivered to (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 5; - * @param string $var - * @return $this - */ - public function setPscGoogleApiTarget($var) - { - GPBUtil::checkString($var, True); - $this->psc_google_api_target = $var; - - return $this; - } - - /** - * Recognized type of a Google Service the packet is delivered to (if - * applicable). - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; - * @return int - */ - public function getGoogleServiceType() - { - return $this->google_service_type; - } - - /** - * Recognized type of a Google Service the packet is delivered to (if - * applicable). - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; - * @param int $var - * @return $this - */ - public function setGoogleServiceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\DeliverInfo\GoogleServiceType::class); - $this->google_service_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/GoogleServiceType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/GoogleServiceType.php deleted file mode 100644 index 22c2d14f18ec..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/GoogleServiceType.php +++ /dev/null @@ -1,95 +0,0 @@ -google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType - */ -class GoogleServiceType -{ - /** - * Unspecified Google Service. - * - * Generated from protobuf enum GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; - */ - const GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; - /** - * Identity aware proxy. - * https://cloud.google.com/iap/docs/using-tcp-forwarding - * - * Generated from protobuf enum IAP = 1; - */ - const IAP = 1; - /** - * One of two services sharing IP ranges: - * * Load Balancer proxy - * * Centralized Health Check prober - * https://cloud.google.com/load-balancing/docs/firewall-rules - * - * Generated from protobuf enum GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; - */ - const GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; - /** - * Connectivity from Cloud DNS to forwarding targets or alternate name - * servers that use private routing. - * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules - * https://cloud.google.com/dns/docs/policies#firewall-rules - * - * Generated from protobuf enum CLOUD_DNS = 3; - */ - const CLOUD_DNS = 3; - /** - * private.googleapis.com and restricted.googleapis.com - * - * Generated from protobuf enum PRIVATE_GOOGLE_ACCESS = 4; - */ - const PRIVATE_GOOGLE_ACCESS = 4; - /** - * Google API via Private Service Connect. - * https://cloud.google.com/vpc/docs/configure-private-service-connect-apis - * Google API via Serverless VPC Access. - * https://cloud.google.com/vpc/docs/serverless-vpc-access - * - * Generated from protobuf enum SERVERLESS_VPC_ACCESS = 5; - */ - const SERVERLESS_VPC_ACCESS = 5; - - private static $valueToName = [ - self::GOOGLE_SERVICE_TYPE_UNSPECIFIED => 'GOOGLE_SERVICE_TYPE_UNSPECIFIED', - self::IAP => 'IAP', - self::GFE_PROXY_OR_HEALTH_CHECK_PROBER => 'GFE_PROXY_OR_HEALTH_CHECK_PROBER', - self::CLOUD_DNS => 'CLOUD_DNS', - self::PRIVATE_GOOGLE_ACCESS => 'PRIVATE_GOOGLE_ACCESS', - self::SERVERLESS_VPC_ACCESS => 'SERVERLESS_VPC_ACCESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GoogleServiceType::class, \Google\Cloud\NetworkManagement\V1\DeliverInfo_GoogleServiceType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/Target.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/Target.php deleted file mode 100644 index 9ce02ea67e90..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DeliverInfo/Target.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.networkmanagement.v1.DeliverInfo.Target - */ -class Target -{ - /** - * Target not specified. - * - * Generated from protobuf enum TARGET_UNSPECIFIED = 0; - */ - const TARGET_UNSPECIFIED = 0; - /** - * Target is a Compute Engine instance. - * - * Generated from protobuf enum INSTANCE = 1; - */ - const INSTANCE = 1; - /** - * Target is the internet. - * - * Generated from protobuf enum INTERNET = 2; - */ - const INTERNET = 2; - /** - * Target is a Google API. - * - * Generated from protobuf enum GOOGLE_API = 3; - */ - const GOOGLE_API = 3; - /** - * Target is a Google Kubernetes Engine cluster master. - * - * Generated from protobuf enum GKE_MASTER = 4; - */ - const GKE_MASTER = 4; - /** - * Target is a Cloud SQL instance. - * - * Generated from protobuf enum CLOUD_SQL_INSTANCE = 5; - */ - const CLOUD_SQL_INSTANCE = 5; - /** - * Target is a published service that uses [Private Service - * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). - * - * Generated from protobuf enum PSC_PUBLISHED_SERVICE = 6; - */ - const PSC_PUBLISHED_SERVICE = 6; - /** - * Target is Google APIs that use [Private Service - * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). - * - * Generated from protobuf enum PSC_GOOGLE_API = 7; - */ - const PSC_GOOGLE_API = 7; - /** - * Target is a VPC-SC that uses [Private Service - * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). - * - * Generated from protobuf enum PSC_VPC_SC = 8; - */ - const PSC_VPC_SC = 8; - /** - * Target is a serverless network endpoint group. - * - * Generated from protobuf enum SERVERLESS_NEG = 9; - */ - const SERVERLESS_NEG = 9; - /** - * Target is a Cloud Storage bucket. - * - * Generated from protobuf enum STORAGE_BUCKET = 10; - */ - const STORAGE_BUCKET = 10; - /** - * Target is a private network. Used only for return traces. - * - * Generated from protobuf enum PRIVATE_NETWORK = 11; - */ - const PRIVATE_NETWORK = 11; - /** - * Target is a Cloud Function. Used only for return traces. - * - * Generated from protobuf enum CLOUD_FUNCTION = 12; - */ - const CLOUD_FUNCTION = 12; - /** - * Target is a App Engine service version. Used only for return traces. - * - * Generated from protobuf enum APP_ENGINE_VERSION = 13; - */ - const APP_ENGINE_VERSION = 13; - /** - * Target is a Cloud Run revision. Used only for return traces. - * - * Generated from protobuf enum CLOUD_RUN_REVISION = 14; - */ - const CLOUD_RUN_REVISION = 14; - /** - * Target is a Google-managed service. Used only for return traces. - * - * Generated from protobuf enum GOOGLE_MANAGED_SERVICE = 15; - */ - const GOOGLE_MANAGED_SERVICE = 15; - /** - * Target is a Redis Instance. - * - * Generated from protobuf enum REDIS_INSTANCE = 16; - */ - const REDIS_INSTANCE = 16; - /** - * Target is a Redis Cluster. - * - * Generated from protobuf enum REDIS_CLUSTER = 17; - */ - const REDIS_CLUSTER = 17; - /** - * Target is a GKE Pod. - * - * Generated from protobuf enum GKE_POD = 19; - */ - const GKE_POD = 19; - - private static $valueToName = [ - self::TARGET_UNSPECIFIED => 'TARGET_UNSPECIFIED', - self::INSTANCE => 'INSTANCE', - self::INTERNET => 'INTERNET', - self::GOOGLE_API => 'GOOGLE_API', - self::GKE_MASTER => 'GKE_MASTER', - self::CLOUD_SQL_INSTANCE => 'CLOUD_SQL_INSTANCE', - self::PSC_PUBLISHED_SERVICE => 'PSC_PUBLISHED_SERVICE', - self::PSC_GOOGLE_API => 'PSC_GOOGLE_API', - self::PSC_VPC_SC => 'PSC_VPC_SC', - self::SERVERLESS_NEG => 'SERVERLESS_NEG', - self::STORAGE_BUCKET => 'STORAGE_BUCKET', - self::PRIVATE_NETWORK => 'PRIVATE_NETWORK', - self::CLOUD_FUNCTION => 'CLOUD_FUNCTION', - self::APP_ENGINE_VERSION => 'APP_ENGINE_VERSION', - self::CLOUD_RUN_REVISION => 'CLOUD_RUN_REVISION', - self::GOOGLE_MANAGED_SERVICE => 'GOOGLE_MANAGED_SERVICE', - self::REDIS_INSTANCE => 'REDIS_INSTANCE', - self::REDIS_CLUSTER => 'REDIS_CLUSTER', - self::GKE_POD => 'GKE_POD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Target::class, \Google\Cloud\NetworkManagement\V1\DeliverInfo_Target::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DirectVpcEgressConnectionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DirectVpcEgressConnectionInfo.php deleted file mode 100644 index e81e09d700eb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DirectVpcEgressConnectionInfo.php +++ /dev/null @@ -1,204 +0,0 @@ -google.cloud.networkmanagement.v1.DirectVpcEgressConnectionInfo - */ -class DirectVpcEgressConnectionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * URI of direct access network. - * - * Generated from protobuf field string network_uri = 1; - */ - protected $network_uri = ''; - /** - * URI of direct access subnetwork. - * - * Generated from protobuf field string subnetwork_uri = 2; - */ - protected $subnetwork_uri = ''; - /** - * Selected IP range. - * - * Generated from protobuf field string selected_ip_range = 3 [(.google.api.field_info) = { - */ - protected $selected_ip_range = ''; - /** - * Selected starting IP address, from the selected IP range. - * - * Generated from protobuf field string selected_ip_address = 4 [(.google.api.field_info) = { - */ - protected $selected_ip_address = ''; - /** - * Region in which the Direct VPC egress is deployed. - * - * Generated from protobuf field string region = 5; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network_uri - * URI of direct access network. - * @type string $subnetwork_uri - * URI of direct access subnetwork. - * @type string $selected_ip_range - * Selected IP range. - * @type string $selected_ip_address - * Selected starting IP address, from the selected IP range. - * @type string $region - * Region in which the Direct VPC egress is deployed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * URI of direct access network. - * - * Generated from protobuf field string network_uri = 1; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of direct access network. - * - * Generated from protobuf field string network_uri = 1; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * URI of direct access subnetwork. - * - * Generated from protobuf field string subnetwork_uri = 2; - * @return string - */ - public function getSubnetworkUri() - { - return $this->subnetwork_uri; - } - - /** - * URI of direct access subnetwork. - * - * Generated from protobuf field string subnetwork_uri = 2; - * @param string $var - * @return $this - */ - public function setSubnetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork_uri = $var; - - return $this; - } - - /** - * Selected IP range. - * - * Generated from protobuf field string selected_ip_range = 3 [(.google.api.field_info) = { - * @return string - */ - public function getSelectedIpRange() - { - return $this->selected_ip_range; - } - - /** - * Selected IP range. - * - * Generated from protobuf field string selected_ip_range = 3 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setSelectedIpRange($var) - { - GPBUtil::checkString($var, True); - $this->selected_ip_range = $var; - - return $this; - } - - /** - * Selected starting IP address, from the selected IP range. - * - * Generated from protobuf field string selected_ip_address = 4 [(.google.api.field_info) = { - * @return string - */ - public function getSelectedIpAddress() - { - return $this->selected_ip_address; - } - - /** - * Selected starting IP address, from the selected IP range. - * - * Generated from protobuf field string selected_ip_address = 4 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setSelectedIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->selected_ip_address = $var; - - return $this; - } - - /** - * Region in which the Direct VPC egress is deployed. - * - * Generated from protobuf field string region = 5; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region in which the Direct VPC egress is deployed. - * - * Generated from protobuf field string region = 5; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo.php deleted file mode 100644 index 84dc23eb8903..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.networkmanagement.v1.DropInfo - */ -class DropInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Cause that the packet is dropped. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1; - */ - protected $cause = 0; - /** - * URI of the resource that caused the drop. - * - * Generated from protobuf field string resource_uri = 2; - */ - protected $resource_uri = ''; - /** - * Source IP address of the dropped packet (if relevant). - * - * Generated from protobuf field string source_ip = 3; - */ - protected $source_ip = ''; - /** - * Destination IP address of the dropped packet (if relevant). - * - * Generated from protobuf field string destination_ip = 4; - */ - protected $destination_ip = ''; - /** - * Region of the dropped packet (if relevant). - * - * Generated from protobuf field string region = 5; - */ - protected $region = ''; - /** - * Geolocation (region code) of the source IP address (if relevant). - * - * Generated from protobuf field string source_geolocation_code = 6; - */ - protected $source_geolocation_code = ''; - /** - * Geolocation (region code) of the destination IP address (if relevant). - * - * Generated from protobuf field string destination_geolocation_code = 7; - */ - protected $destination_geolocation_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cause - * Cause that the packet is dropped. - * @type string $resource_uri - * URI of the resource that caused the drop. - * @type string $source_ip - * Source IP address of the dropped packet (if relevant). - * @type string $destination_ip - * Destination IP address of the dropped packet (if relevant). - * @type string $region - * Region of the dropped packet (if relevant). - * @type string $source_geolocation_code - * Geolocation (region code) of the source IP address (if relevant). - * @type string $destination_geolocation_code - * Geolocation (region code) of the destination IP address (if relevant). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Cause that the packet is dropped. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1; - * @return int - */ - public function getCause() - { - return $this->cause; - } - - /** - * Cause that the packet is dropped. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo.Cause cause = 1; - * @param int $var - * @return $this - */ - public function setCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\DropInfo\Cause::class); - $this->cause = $var; - - return $this; - } - - /** - * URI of the resource that caused the drop. - * - * Generated from protobuf field string resource_uri = 2; - * @return string - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * URI of the resource that caused the drop. - * - * Generated from protobuf field string resource_uri = 2; - * @param string $var - * @return $this - */ - public function setResourceUri($var) - { - GPBUtil::checkString($var, True); - $this->resource_uri = $var; - - return $this; - } - - /** - * Source IP address of the dropped packet (if relevant). - * - * Generated from protobuf field string source_ip = 3; - * @return string - */ - public function getSourceIp() - { - return $this->source_ip; - } - - /** - * Source IP address of the dropped packet (if relevant). - * - * Generated from protobuf field string source_ip = 3; - * @param string $var - * @return $this - */ - public function setSourceIp($var) - { - GPBUtil::checkString($var, True); - $this->source_ip = $var; - - return $this; - } - - /** - * Destination IP address of the dropped packet (if relevant). - * - * Generated from protobuf field string destination_ip = 4; - * @return string - */ - public function getDestinationIp() - { - return $this->destination_ip; - } - - /** - * Destination IP address of the dropped packet (if relevant). - * - * Generated from protobuf field string destination_ip = 4; - * @param string $var - * @return $this - */ - public function setDestinationIp($var) - { - GPBUtil::checkString($var, True); - $this->destination_ip = $var; - - return $this; - } - - /** - * Region of the dropped packet (if relevant). - * - * Generated from protobuf field string region = 5; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region of the dropped packet (if relevant). - * - * Generated from protobuf field string region = 5; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * Geolocation (region code) of the source IP address (if relevant). - * - * Generated from protobuf field string source_geolocation_code = 6; - * @return string - */ - public function getSourceGeolocationCode() - { - return $this->source_geolocation_code; - } - - /** - * Geolocation (region code) of the source IP address (if relevant). - * - * Generated from protobuf field string source_geolocation_code = 6; - * @param string $var - * @return $this - */ - public function setSourceGeolocationCode($var) - { - GPBUtil::checkString($var, True); - $this->source_geolocation_code = $var; - - return $this; - } - - /** - * Geolocation (region code) of the destination IP address (if relevant). - * - * Generated from protobuf field string destination_geolocation_code = 7; - * @return string - */ - public function getDestinationGeolocationCode() - { - return $this->destination_geolocation_code; - } - - /** - * Geolocation (region code) of the destination IP address (if relevant). - * - * Generated from protobuf field string destination_geolocation_code = 7; - * @param string $var - * @return $this - */ - public function setDestinationGeolocationCode($var) - { - GPBUtil::checkString($var, True); - $this->destination_geolocation_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo/Cause.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo/Cause.php deleted file mode 100644 index b4adfa704c28..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/DropInfo/Cause.php +++ /dev/null @@ -1,863 +0,0 @@ -google.cloud.networkmanagement.v1.DropInfo.Cause - */ -class Cause -{ - /** - * Cause is unspecified. - * - * Generated from protobuf enum CAUSE_UNSPECIFIED = 0; - */ - const CAUSE_UNSPECIFIED = 0; - /** - * Destination external address cannot be resolved to a known target. If - * the address is used in a Google Cloud project, provide the project ID - * as test input. - * - * Generated from protobuf enum UNKNOWN_EXTERNAL_ADDRESS = 1; - */ - const UNKNOWN_EXTERNAL_ADDRESS = 1; - /** - * A Compute Engine instance can only send or receive a packet with a - * foreign IP address if ip_forward is enabled. - * - * Generated from protobuf enum FOREIGN_IP_DISALLOWED = 2; - */ - const FOREIGN_IP_DISALLOWED = 2; - /** - * Dropped due to a firewall rule, unless allowed due to connection - * tracking. - * - * Generated from protobuf enum FIREWALL_RULE = 3; - */ - const FIREWALL_RULE = 3; - /** - * Dropped due to no matching routes. - * - * Generated from protobuf enum NO_ROUTE = 4; - */ - const NO_ROUTE = 4; - /** - * Dropped due to invalid route. Route's next hop is a blackhole. - * - * Generated from protobuf enum ROUTE_BLACKHOLE = 5; - */ - const ROUTE_BLACKHOLE = 5; - /** - * Packet is sent to a wrong (unintended) network. Example: you trace a - * packet from VM1:Network1 to VM2:Network2, however, the route configured - * in Network1 sends the packet destined for VM2's IP address to Network3. - * - * Generated from protobuf enum ROUTE_WRONG_NETWORK = 6; - */ - const ROUTE_WRONG_NETWORK = 6; - /** - * Route's next hop IP address cannot be resolved to a GCP resource. - * - * Generated from protobuf enum ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED = 42; - */ - const ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED = 42; - /** - * Route's next hop resource is not found. - * - * Generated from protobuf enum ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND = 43; - */ - const ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND = 43; - /** - * Route's next hop instance doesn't have a NIC in the route's network. - * - * Generated from protobuf enum ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK = 49; - */ - const ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK = 49; - /** - * Route's next hop IP address is not a primary IP address of the next hop - * instance. - * - * Generated from protobuf enum ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_IP = 50; - */ - const ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_IP = 50; - /** - * Route's next hop forwarding rule doesn't match next hop IP address. - * - * Generated from protobuf enum ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH = 51; - */ - const ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH = 51; - /** - * Route's next hop VPN tunnel is down (does not have valid IKE SAs). - * - * Generated from protobuf enum ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED = 52; - */ - const ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED = 52; - /** - * Route's next hop forwarding rule type is invalid (it's not a forwarding - * rule of the internal passthrough load balancer). - * - * Generated from protobuf enum ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID = 53; - */ - const ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID = 53; - /** - * Packet is sent from the Internet to the private IPv6 address. - * - * Generated from protobuf enum NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; - */ - const NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; - /** - * Packet is sent from the Internet to the private IPv4 address. - * - * Generated from protobuf enum NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS = 109; - */ - const NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS = 109; - /** - * Packet is sent from the external IPv6 source address of an instance to - * the private IPv6 address of an instance. - * - * Generated from protobuf enum NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; - */ - const NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; - /** - * The packet does not match a policy-based VPN tunnel local selector. - * - * Generated from protobuf enum VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH = 45; - */ - const VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH = 45; - /** - * The packet does not match a policy-based VPN tunnel remote selector. - * - * Generated from protobuf enum VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH = 46; - */ - const VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH = 46; - /** - * Packet with internal destination address sent to the internet gateway. - * - * Generated from protobuf enum PRIVATE_TRAFFIC_TO_INTERNET = 7; - */ - const PRIVATE_TRAFFIC_TO_INTERNET = 7; - /** - * Endpoint with only an internal IP address tries to access Google API and - * services, but Private Google Access is not enabled in the subnet or is - * not applicable. - * - * Generated from protobuf enum PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; - */ - const PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; - /** - * Source endpoint tries to access Google API and services through the VPN - * tunnel to another network, but Private Google Access needs to be enabled - * in the source endpoint network. - * - * Generated from protobuf enum PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED = 47; - */ - const PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED = 47; - /** - * Endpoint with only an internal IP address tries to access external hosts, - * but there is no matching Cloud NAT gateway in the subnet. - * - * Generated from protobuf enum NO_EXTERNAL_ADDRESS = 9; - */ - const NO_EXTERNAL_ADDRESS = 9; - /** - * Destination internal address cannot be resolved to a known target. If - * this is a shared VPC scenario, verify if the service project ID is - * provided as test input. Otherwise, verify if the IP address is being - * used in the project. - * - * Generated from protobuf enum UNKNOWN_INTERNAL_ADDRESS = 10; - */ - const UNKNOWN_INTERNAL_ADDRESS = 10; - /** - * Forwarding rule's protocol and ports do not match the packet header. - * - * Generated from protobuf enum FORWARDING_RULE_MISMATCH = 11; - */ - const FORWARDING_RULE_MISMATCH = 11; - /** - * Forwarding rule does not have backends configured. - * - * Generated from protobuf enum FORWARDING_RULE_NO_INSTANCES = 12; - */ - const FORWARDING_RULE_NO_INSTANCES = 12; - /** - * Firewalls block the health check probes to the backends and cause - * the backends to be unavailable for traffic from the load balancer. - * For more details, see [Health check firewall - * rules](https://cloud.google.com/load-balancing/docs/health-checks#firewall_rules). - * - * Generated from protobuf enum FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK = 13; - */ - const FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK = 13; - /** - * Matching ingress firewall rules by network tags for packets sent via - * serverless VPC direct egress is unsupported. Behavior is undefined. - * https://cloud.google.com/run/docs/configuring/vpc-direct-vpc#limitations - * - * Generated from protobuf enum INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS = 85; - */ - const INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS = 85; - /** - * Packet is sent from or to a Compute Engine instance that is not in a - * running state. - * - * Generated from protobuf enum INSTANCE_NOT_RUNNING = 14; - */ - const INSTANCE_NOT_RUNNING = 14; - /** - * Packet sent from or to a GKE cluster that is not in running state. - * - * Generated from protobuf enum GKE_CLUSTER_NOT_RUNNING = 27; - */ - const GKE_CLUSTER_NOT_RUNNING = 27; - /** - * Packet sent from or to a GKE Pod that is not in running state. - * - * Generated from protobuf enum GKE_POD_NOT_RUNNING = 103; - */ - const GKE_POD_NOT_RUNNING = 103; - /** - * Packet sent from or to a Cloud SQL instance that is not in running state. - * - * Generated from protobuf enum CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; - */ - const CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; - /** - * Packet sent from or to a Redis Instance that is not in running state. - * - * Generated from protobuf enum REDIS_INSTANCE_NOT_RUNNING = 68; - */ - const REDIS_INSTANCE_NOT_RUNNING = 68; - /** - * Packet sent from or to a Redis Cluster that is not in running state. - * - * Generated from protobuf enum REDIS_CLUSTER_NOT_RUNNING = 69; - */ - const REDIS_CLUSTER_NOT_RUNNING = 69; - /** - * The type of traffic is blocked and the user cannot configure a firewall - * rule to enable it. See [Always blocked - * traffic](https://cloud.google.com/vpc/docs/firewalls#blockedtraffic) for - * more details. - * - * Generated from protobuf enum TRAFFIC_TYPE_BLOCKED = 15; - */ - const TRAFFIC_TYPE_BLOCKED = 15; - /** - * Access to Google Kubernetes Engine cluster master's endpoint is not - * authorized. See [Access to the cluster - * endpoints](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#access_to_the_cluster_endpoints) - * for more details. - * - * Generated from protobuf enum GKE_MASTER_UNAUTHORIZED_ACCESS = 16; - */ - const GKE_MASTER_UNAUTHORIZED_ACCESS = 16; - /** - * Access to the Cloud SQL instance endpoint is not authorized. - * See [Authorizing with authorized - * networks](https://cloud.google.com/sql/docs/mysql/authorize-networks) for - * more details. - * - * Generated from protobuf enum CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS = 17; - */ - const CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS = 17; - /** - * Packet was dropped inside Google Kubernetes Engine Service. - * - * Generated from protobuf enum DROPPED_INSIDE_GKE_SERVICE = 18; - */ - const DROPPED_INSIDE_GKE_SERVICE = 18; - /** - * Packet was dropped inside Cloud SQL Service. - * - * Generated from protobuf enum DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19; - */ - const DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19; - /** - * Packet was dropped because there is no peering between the originating - * network and the Google Managed Services Network. - * - * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_NO_PEERING = 20; - */ - const GOOGLE_MANAGED_SERVICE_NO_PEERING = 20; - /** - * Packet was dropped because the Google-managed service uses Private - * Service Connect (PSC), but the PSC endpoint is not found in the project. - * - * Generated from protobuf enum GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38; - */ - const GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT = 38; - /** - * Packet was dropped because the GKE cluster uses Private Service Connect - * (PSC), but the PSC endpoint is not found in the project. - * - * Generated from protobuf enum GKE_PSC_ENDPOINT_MISSING = 36; - */ - const GKE_PSC_ENDPOINT_MISSING = 36; - /** - * Packet was dropped because the Cloud SQL instance has neither a private - * nor a public IP address. - * - * Generated from protobuf enum CLOUD_SQL_INSTANCE_NO_IP_ADDRESS = 21; - */ - const CLOUD_SQL_INSTANCE_NO_IP_ADDRESS = 21; - /** - * Packet was dropped because a GKE cluster private endpoint is - * unreachable from a region different from the cluster's region. - * - * Generated from protobuf enum GKE_CONTROL_PLANE_REGION_MISMATCH = 30; - */ - const GKE_CONTROL_PLANE_REGION_MISMATCH = 30; - /** - * Packet sent from a public GKE cluster control plane to a private - * IP address. - * - * Generated from protobuf enum PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31; - */ - const PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION = 31; - /** - * Packet was dropped because there is no route from a GKE cluster - * control plane to a destination network. - * - * Generated from protobuf enum GKE_CONTROL_PLANE_NO_ROUTE = 32; - */ - const GKE_CONTROL_PLANE_NO_ROUTE = 32; - /** - * Packet sent from a Cloud SQL instance to an external IP address is not - * allowed. The Cloud SQL instance is not configured to send packets to - * external IP addresses. - * - * Generated from protobuf enum CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33; - */ - const CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC = 33; - /** - * Packet sent from a Cloud SQL instance with only a public IP address to a - * private IP address. - * - * Generated from protobuf enum PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34; - */ - const PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION = 34; - /** - * Packet was dropped because there is no route from a Cloud SQL - * instance to a destination network. - * - * Generated from protobuf enum CLOUD_SQL_INSTANCE_NO_ROUTE = 35; - */ - const CLOUD_SQL_INSTANCE_NO_ROUTE = 35; - /** - * Packet was dropped because the Cloud SQL instance requires all - * connections to use Cloud SQL connectors and to target the Cloud SQL proxy - * port (3307). - * - * Generated from protobuf enum CLOUD_SQL_CONNECTOR_REQUIRED = 63; - */ - const CLOUD_SQL_CONNECTOR_REQUIRED = 63; - /** - * Packet could be dropped because the Cloud Function is not in an active - * status. - * - * Generated from protobuf enum CLOUD_FUNCTION_NOT_ACTIVE = 22; - */ - const CLOUD_FUNCTION_NOT_ACTIVE = 22; - /** - * Packet could be dropped because no VPC connector is set. - * - * Generated from protobuf enum VPC_CONNECTOR_NOT_SET = 23; - */ - const VPC_CONNECTOR_NOT_SET = 23; - /** - * Packet could be dropped because the VPC connector is not in a running - * state. - * - * Generated from protobuf enum VPC_CONNECTOR_NOT_RUNNING = 24; - */ - const VPC_CONNECTOR_NOT_RUNNING = 24; - /** - * Packet could be dropped because the traffic from the serverless service - * to the VPC connector is not allowed. - * - * Generated from protobuf enum VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; - */ - const VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; - /** - * Packet could be dropped because the health check traffic to the VPC - * connector is not allowed. - * - * Generated from protobuf enum VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; - */ - const VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; - /** - * Packet could be dropped because it was sent from a different region - * to a regional forwarding without global access. - * - * Generated from protobuf enum FORWARDING_RULE_REGION_MISMATCH = 25; - */ - const FORWARDING_RULE_REGION_MISMATCH = 25; - /** - * The Private Service Connect endpoint is in a project that is not approved - * to connect to the service. - * - * Generated from protobuf enum PSC_CONNECTION_NOT_ACCEPTED = 26; - */ - const PSC_CONNECTION_NOT_ACCEPTED = 26; - /** - * The packet is sent to the Private Service Connect endpoint over the - * peering, but [it's not - * supported](https://cloud.google.com/vpc/docs/configure-private-service-connect-services#on-premises). - * - * Generated from protobuf enum PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK = 41; - */ - const PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK = 41; - /** - * The packet is sent to the Private Service Connect backend (network - * endpoint group), but the producer PSC forwarding rule does not have - * global access enabled. - * - * Generated from protobuf enum PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS = 48; - */ - const PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS = 48; - /** - * The packet is sent to the Private Service Connect backend (network - * endpoint group), but the producer PSC forwarding rule has multiple ports - * specified. - * - * Generated from protobuf enum PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS = 54; - */ - const PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS = 54; - /** - * The packet is sent to the Private Service Connect backend (network - * endpoint group) targeting a Cloud SQL service attachment, but this - * configuration is not supported. - * - * Generated from protobuf enum CLOUD_SQL_PSC_NEG_UNSUPPORTED = 58; - */ - const CLOUD_SQL_PSC_NEG_UNSUPPORTED = 58; - /** - * No NAT subnets are defined for the PSC service attachment. - * - * Generated from protobuf enum NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; - */ - const NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; - /** - * PSC endpoint is accessed via NCC, but PSC transitivity configuration is - * not yet propagated. - * - * Generated from protobuf enum PSC_TRANSITIVITY_NOT_PROPAGATED = 64; - */ - const PSC_TRANSITIVITY_NOT_PROPAGATED = 64; - /** - * The packet sent from the hybrid NEG proxy matches a non-dynamic route, - * but such a configuration is not supported. - * - * Generated from protobuf enum HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED = 55; - */ - const HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED = 55; - /** - * The packet sent from the hybrid NEG proxy matches a dynamic route with a - * next hop in a different region, but such a configuration is not - * supported. - * - * Generated from protobuf enum HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED = 56; - */ - const HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED = 56; - /** - * Packet sent from a Cloud Run revision that is not ready. - * - * Generated from protobuf enum CLOUD_RUN_REVISION_NOT_READY = 29; - */ - const CLOUD_RUN_REVISION_NOT_READY = 29; - /** - * Packet was dropped inside Private Service Connect service producer. - * - * Generated from protobuf enum DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37; - */ - const DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37; - /** - * Packet sent to a load balancer, which requires a proxy-only subnet and - * the subnet is not found. - * - * Generated from protobuf enum LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39; - */ - const LOAD_BALANCER_HAS_NO_PROXY_SUBNET = 39; - /** - * Packet sent to Cloud Nat without active NAT IPs. - * - * Generated from protobuf enum CLOUD_NAT_NO_ADDRESSES = 40; - */ - const CLOUD_NAT_NO_ADDRESSES = 40; - /** - * Packet is stuck in a routing loop. - * - * Generated from protobuf enum ROUTING_LOOP = 59; - */ - const ROUTING_LOOP = 59; - /** - * Packet is dropped inside a Google-managed service due to being delivered - * in return trace to an endpoint that doesn't match the endpoint the packet - * was sent from in forward trace. Used only for return traces. - * - * Generated from protobuf enum DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; - */ - const DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; - /** - * Packet is dropped due to a load balancer backend instance not having a - * network interface in the network expected by the load balancer. - * - * Generated from protobuf enum LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; - */ - const LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; - /** - * Packet is dropped due to a backend service named port not being defined - * on the instance group level. - * - * Generated from protobuf enum BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; - */ - const BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; - /** - * Packet is dropped due to a destination IP range being part of a Private - * NAT IP range. - * - * Generated from protobuf enum DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; - */ - const DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; - /** - * Generic drop cause for a packet being dropped inside a Redis Instance - * service project. - * - * Generated from protobuf enum DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; - */ - const DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; - /** - * Packet is dropped due to an unsupported port being used to connect to a - * Redis Instance. Port 6379 should be used to connect to a Redis Instance. - * - * Generated from protobuf enum REDIS_INSTANCE_UNSUPPORTED_PORT = 71; - */ - const REDIS_INSTANCE_UNSUPPORTED_PORT = 71; - /** - * Packet is dropped due to connecting from PUPI address to a PSA based - * Redis Instance. - * - * Generated from protobuf enum REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; - */ - const REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; - /** - * Packet is dropped due to no route to the destination network. - * - * Generated from protobuf enum REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; - */ - const REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; - /** - * Redis Instance does not have an external IP address. - * - * Generated from protobuf enum REDIS_INSTANCE_NO_EXTERNAL_IP = 74; - */ - const REDIS_INSTANCE_NO_EXTERNAL_IP = 74; - /** - * Packet is dropped due to an unsupported protocol being used to connect to - * a Redis Instance. Only TCP connections are accepted by a Redis Instance. - * - * Generated from protobuf enum REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; - */ - const REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; - /** - * Generic drop cause for a packet being dropped inside a Redis Cluster - * service project. - * - * Generated from protobuf enum DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; - */ - const DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; - /** - * Packet is dropped due to an unsupported port being used to connect to a - * Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to - * a Redis Cluster. - * - * Generated from protobuf enum REDIS_CLUSTER_UNSUPPORTED_PORT = 76; - */ - const REDIS_CLUSTER_UNSUPPORTED_PORT = 76; - /** - * Redis Cluster does not have an external IP address. - * - * Generated from protobuf enum REDIS_CLUSTER_NO_EXTERNAL_IP = 77; - */ - const REDIS_CLUSTER_NO_EXTERNAL_IP = 77; - /** - * Packet is dropped due to an unsupported protocol being used to connect to - * a Redis Cluster. Only TCP connections are accepted by a Redis Cluster. - * - * Generated from protobuf enum REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; - */ - const REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; - /** - * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due - * to the destination IP address not belonging to any IP prefix advertised - * via BGP by the Cloud Router. - * - * Generated from protobuf enum NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; - */ - const NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; - /** - * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due - * to the destination IP address not belonging to any IP prefix included to - * the local traffic selector of the VPN tunnel. - * - * Generated from protobuf enum NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; - */ - const NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; - /** - * Packet from the unknown peered network is dropped due to no known route - * from the source network to the destination IP address. - * - * Generated from protobuf enum NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; - */ - const NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; - /** - * Sending packets processed by the Private NAT Gateways to the Private - * Service Connect endpoints is not supported. - * - * Generated from protobuf enum PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED = 83; - */ - const PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED = 83; - /** - * Packet is sent to the PSC port mapping service, but its destination port - * does not match any port mapping rules. - * - * Generated from protobuf enum PSC_PORT_MAPPING_PORT_MISMATCH = 86; - */ - const PSC_PORT_MAPPING_PORT_MISMATCH = 86; - /** - * Sending packets directly to the PSC port mapping service without going - * through the PSC connection is not supported. - * - * Generated from protobuf enum PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED = 87; - */ - const PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED = 87; - /** - * Packet with destination IP address within the reserved NAT64 range is - * dropped due to matching a route of an unsupported type. - * - * Generated from protobuf enum UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION = 88; - */ - const UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION = 88; - /** - * Packet could be dropped because hybrid endpoint like a VPN gateway or - * Interconnect is not allowed to send traffic to the Internet. - * - * Generated from protobuf enum TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; - */ - const TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; - /** - * Packet with destination IP address within the reserved NAT64 range is - * dropped due to no matching NAT gateway in the subnet. - * - * Generated from protobuf enum NO_MATCHING_NAT64_GATEWAY = 90; - */ - const NO_MATCHING_NAT64_GATEWAY = 90; - /** - * Packet is dropped due to matching a Private NAT64 gateway with no rules - * for source IPv6 addresses. - * - * Generated from protobuf enum NO_CONFIGURED_PRIVATE_NAT64_RULE = 107; - */ - const NO_CONFIGURED_PRIVATE_NAT64_RULE = 107; - /** - * Packet is dropped due to being sent to a backend of a passthrough load - * balancer that doesn't use the same IP version as the frontend. - * - * Generated from protobuf enum LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; - */ - const LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; - /** - * Packet from the unknown NCC network is dropped due to no known route - * from the source network to the destination IP address. - * - * Generated from protobuf enum NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; - */ - const NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; - /** - * Packet is dropped by Cloud NAT due to using an unsupported protocol. - * - * Generated from protobuf enum CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; - */ - const CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; - /** - * Packet is dropped due to using an unsupported protocol (any other than - * UDP) for L2 Interconnect. - * - * Generated from protobuf enum L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; - */ - const L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; - /** - * Packet is dropped due to using an unsupported port (any other than - * 6081) for L2 Interconnect. - * - * Generated from protobuf enum L2_INTERCONNECT_UNSUPPORTED_PORT = 101; - */ - const L2_INTERCONNECT_UNSUPPORTED_PORT = 101; - /** - * Packet is dropped due to destination IP not matching the appliance - * mapping IPs configured on the L2 Interconnect attachment. - * - * Generated from protobuf enum L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; - */ - const L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; - /** - * Packet could be dropped because it matches a route associated with an NCC - * spoke in the hybrid subnet context, but such a configuration is not - * supported. - * - * Generated from protobuf enum NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; - */ - const NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; - /** - * Packet is dropped because the region of the hybrid subnet is different - * from the region of the next hop of the route matched within this hybrid - * subnet. - * - * Generated from protobuf enum HYBRID_SUBNET_REGION_MISMATCH = 105; - */ - const HYBRID_SUBNET_REGION_MISMATCH = 105; - /** - * Packet is dropped because no matching route was found in the hybrid - * subnet. - * - * Generated from protobuf enum HYBRID_SUBNET_NO_ROUTE = 106; - */ - const HYBRID_SUBNET_NO_ROUTE = 106; - - private static $valueToName = [ - self::CAUSE_UNSPECIFIED => 'CAUSE_UNSPECIFIED', - self::UNKNOWN_EXTERNAL_ADDRESS => 'UNKNOWN_EXTERNAL_ADDRESS', - self::FOREIGN_IP_DISALLOWED => 'FOREIGN_IP_DISALLOWED', - self::FIREWALL_RULE => 'FIREWALL_RULE', - self::NO_ROUTE => 'NO_ROUTE', - self::ROUTE_BLACKHOLE => 'ROUTE_BLACKHOLE', - self::ROUTE_WRONG_NETWORK => 'ROUTE_WRONG_NETWORK', - self::ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED => 'ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED', - self::ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND => 'ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND', - self::ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK => 'ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK', - self::ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_IP => 'ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_IP', - self::ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH => 'ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH', - self::ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED => 'ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED', - self::ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID => 'ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID', - self::NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS => 'NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS', - self::NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS => 'NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS', - self::NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS => 'NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS', - self::VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH => 'VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH', - self::VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH => 'VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH', - self::PRIVATE_TRAFFIC_TO_INTERNET => 'PRIVATE_TRAFFIC_TO_INTERNET', - self::PRIVATE_GOOGLE_ACCESS_DISALLOWED => 'PRIVATE_GOOGLE_ACCESS_DISALLOWED', - self::PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED => 'PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED', - self::NO_EXTERNAL_ADDRESS => 'NO_EXTERNAL_ADDRESS', - self::UNKNOWN_INTERNAL_ADDRESS => 'UNKNOWN_INTERNAL_ADDRESS', - self::FORWARDING_RULE_MISMATCH => 'FORWARDING_RULE_MISMATCH', - self::FORWARDING_RULE_NO_INSTANCES => 'FORWARDING_RULE_NO_INSTANCES', - self::FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK => 'FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK', - self::INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS => 'INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS', - self::INSTANCE_NOT_RUNNING => 'INSTANCE_NOT_RUNNING', - self::GKE_CLUSTER_NOT_RUNNING => 'GKE_CLUSTER_NOT_RUNNING', - self::GKE_POD_NOT_RUNNING => 'GKE_POD_NOT_RUNNING', - self::CLOUD_SQL_INSTANCE_NOT_RUNNING => 'CLOUD_SQL_INSTANCE_NOT_RUNNING', - self::REDIS_INSTANCE_NOT_RUNNING => 'REDIS_INSTANCE_NOT_RUNNING', - self::REDIS_CLUSTER_NOT_RUNNING => 'REDIS_CLUSTER_NOT_RUNNING', - self::TRAFFIC_TYPE_BLOCKED => 'TRAFFIC_TYPE_BLOCKED', - self::GKE_MASTER_UNAUTHORIZED_ACCESS => 'GKE_MASTER_UNAUTHORIZED_ACCESS', - self::CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS => 'CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS', - self::DROPPED_INSIDE_GKE_SERVICE => 'DROPPED_INSIDE_GKE_SERVICE', - self::DROPPED_INSIDE_CLOUD_SQL_SERVICE => 'DROPPED_INSIDE_CLOUD_SQL_SERVICE', - self::GOOGLE_MANAGED_SERVICE_NO_PEERING => 'GOOGLE_MANAGED_SERVICE_NO_PEERING', - self::GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT => 'GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT', - self::GKE_PSC_ENDPOINT_MISSING => 'GKE_PSC_ENDPOINT_MISSING', - self::CLOUD_SQL_INSTANCE_NO_IP_ADDRESS => 'CLOUD_SQL_INSTANCE_NO_IP_ADDRESS', - self::GKE_CONTROL_PLANE_REGION_MISMATCH => 'GKE_CONTROL_PLANE_REGION_MISMATCH', - self::PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION => 'PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION', - self::GKE_CONTROL_PLANE_NO_ROUTE => 'GKE_CONTROL_PLANE_NO_ROUTE', - self::CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC => 'CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC', - self::PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION => 'PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION', - self::CLOUD_SQL_INSTANCE_NO_ROUTE => 'CLOUD_SQL_INSTANCE_NO_ROUTE', - self::CLOUD_SQL_CONNECTOR_REQUIRED => 'CLOUD_SQL_CONNECTOR_REQUIRED', - self::CLOUD_FUNCTION_NOT_ACTIVE => 'CLOUD_FUNCTION_NOT_ACTIVE', - self::VPC_CONNECTOR_NOT_SET => 'VPC_CONNECTOR_NOT_SET', - self::VPC_CONNECTOR_NOT_RUNNING => 'VPC_CONNECTOR_NOT_RUNNING', - self::VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED => 'VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED', - self::VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED => 'VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED', - self::FORWARDING_RULE_REGION_MISMATCH => 'FORWARDING_RULE_REGION_MISMATCH', - self::PSC_CONNECTION_NOT_ACCEPTED => 'PSC_CONNECTION_NOT_ACCEPTED', - self::PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK => 'PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK', - self::PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS => 'PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS', - self::PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS => 'PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS', - self::CLOUD_SQL_PSC_NEG_UNSUPPORTED => 'CLOUD_SQL_PSC_NEG_UNSUPPORTED', - self::NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT => 'NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT', - self::PSC_TRANSITIVITY_NOT_PROPAGATED => 'PSC_TRANSITIVITY_NOT_PROPAGATED', - self::HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED => 'HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED', - self::HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED => 'HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED', - self::CLOUD_RUN_REVISION_NOT_READY => 'CLOUD_RUN_REVISION_NOT_READY', - self::DROPPED_INSIDE_PSC_SERVICE_PRODUCER => 'DROPPED_INSIDE_PSC_SERVICE_PRODUCER', - self::LOAD_BALANCER_HAS_NO_PROXY_SUBNET => 'LOAD_BALANCER_HAS_NO_PROXY_SUBNET', - self::CLOUD_NAT_NO_ADDRESSES => 'CLOUD_NAT_NO_ADDRESSES', - self::ROUTING_LOOP => 'ROUTING_LOOP', - self::DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE => 'DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE', - self::LOAD_BALANCER_BACKEND_INVALID_NETWORK => 'LOAD_BALANCER_BACKEND_INVALID_NETWORK', - self::BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED => 'BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED', - self::DESTINATION_IS_PRIVATE_NAT_IP_RANGE => 'DESTINATION_IS_PRIVATE_NAT_IP_RANGE', - self::DROPPED_INSIDE_REDIS_INSTANCE_SERVICE => 'DROPPED_INSIDE_REDIS_INSTANCE_SERVICE', - self::REDIS_INSTANCE_UNSUPPORTED_PORT => 'REDIS_INSTANCE_UNSUPPORTED_PORT', - self::REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS => 'REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS', - self::REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK => 'REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK', - self::REDIS_INSTANCE_NO_EXTERNAL_IP => 'REDIS_INSTANCE_NO_EXTERNAL_IP', - self::REDIS_INSTANCE_UNSUPPORTED_PROTOCOL => 'REDIS_INSTANCE_UNSUPPORTED_PROTOCOL', - self::DROPPED_INSIDE_REDIS_CLUSTER_SERVICE => 'DROPPED_INSIDE_REDIS_CLUSTER_SERVICE', - self::REDIS_CLUSTER_UNSUPPORTED_PORT => 'REDIS_CLUSTER_UNSUPPORTED_PORT', - self::REDIS_CLUSTER_NO_EXTERNAL_IP => 'REDIS_CLUSTER_NO_EXTERNAL_IP', - self::REDIS_CLUSTER_UNSUPPORTED_PROTOCOL => 'REDIS_CLUSTER_UNSUPPORTED_PROTOCOL', - self::NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION => 'NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION', - self::NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION => 'NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION', - self::NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION => 'NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION', - self::PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED => 'PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED', - self::PSC_PORT_MAPPING_PORT_MISMATCH => 'PSC_PORT_MAPPING_PORT_MISMATCH', - self::PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED => 'PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED', - self::UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION => 'UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION', - self::TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED => 'TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED', - self::NO_MATCHING_NAT64_GATEWAY => 'NO_MATCHING_NAT64_GATEWAY', - self::NO_CONFIGURED_PRIVATE_NAT64_RULE => 'NO_CONFIGURED_PRIVATE_NAT64_RULE', - self::LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH => 'LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH', - self::NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION => 'NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION', - self::CLOUD_NAT_PROTOCOL_UNSUPPORTED => 'CLOUD_NAT_PROTOCOL_UNSUPPORTED', - self::L2_INTERCONNECT_UNSUPPORTED_PROTOCOL => 'L2_INTERCONNECT_UNSUPPORTED_PROTOCOL', - self::L2_INTERCONNECT_UNSUPPORTED_PORT => 'L2_INTERCONNECT_UNSUPPORTED_PORT', - self::L2_INTERCONNECT_DESTINATION_IP_MISMATCH => 'L2_INTERCONNECT_DESTINATION_IP_MISMATCH', - self::NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED => 'NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED', - self::HYBRID_SUBNET_REGION_MISMATCH => 'HYBRID_SUBNET_REGION_MISMATCH', - self::HYBRID_SUBNET_NO_ROUTE => 'HYBRID_SUBNET_NO_ROUTE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Cause::class, \Google\Cloud\NetworkManagement\V1\DropInfo_Cause::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig.php deleted file mode 100644 index c47297501698..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig.php +++ /dev/null @@ -1,641 +0,0 @@ -google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig - */ -class EffectiveVpcFlowLogsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Unique name of the configuration. The name can have one of the following - * forms: - * - For project-level configurations: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level configurations: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For a Compute config, the name will be the path of the subnet: - * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The state of the VPC Flow Log configuration. Default value is ENABLED. - * When creating a new configuration, it must be enabled. - * Setting state=DISABLED will pause the log generation for this config. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; - */ - protected $state = null; - /** - * The aggregation interval for the logs. Default value is INTERVAL_5_SEC. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; - */ - protected $aggregation_interval = null; - /** - * The value of the field must be in (0, 1]. The sampling rate of VPC Flow - * Logs where 1.0 means all collected logs are reported. - * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC - * Flow Logs, use the state field instead. - * Default value is 1.0. - * - * Generated from protobuf field optional float flow_sampling = 5; - */ - protected $flow_sampling = null; - /** - * Configures whether all, none or a subset of metadata fields should be - * added to the reported VPC flow logs. - * Default value is INCLUDE_ALL_METADATA. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; - */ - protected $metadata = null; - /** - * Custom metadata fields to include in the reported VPC flow logs. - * Can only be specified if "metadata" was set to CUSTOM_METADATA. - * - * Generated from protobuf field repeated string metadata_fields = 7; - */ - private $metadata_fields; - /** - * Export filter used to define which VPC Flow Logs should be logged. - * - * Generated from protobuf field optional string filter_expr = 8; - */ - protected $filter_expr = null; - /** - * Determines whether to include cross project annotations in the logs. - * This field is available only for organization configurations. If not - * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; - */ - protected $cross_project_metadata = null; - /** - * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; - */ - protected $scope = null; - protected $target_resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Unique name of the configuration. The name can have one of the following - * forms: - * - For project-level configurations: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level configurations: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For a Compute config, the name will be the path of the subnet: - * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` - * @type int $state - * The state of the VPC Flow Log configuration. Default value is ENABLED. - * When creating a new configuration, it must be enabled. - * Setting state=DISABLED will pause the log generation for this config. - * @type int $aggregation_interval - * The aggregation interval for the logs. Default value is INTERVAL_5_SEC. - * @type float $flow_sampling - * The value of the field must be in (0, 1]. The sampling rate of VPC Flow - * Logs where 1.0 means all collected logs are reported. - * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC - * Flow Logs, use the state field instead. - * Default value is 1.0. - * @type int $metadata - * Configures whether all, none or a subset of metadata fields should be - * added to the reported VPC flow logs. - * Default value is INCLUDE_ALL_METADATA. - * @type array|\Google\Protobuf\Internal\RepeatedField $metadata_fields - * Custom metadata fields to include in the reported VPC flow logs. - * Can only be specified if "metadata" was set to CUSTOM_METADATA. - * @type string $filter_expr - * Export filter used to define which VPC Flow Logs should be logged. - * @type int $cross_project_metadata - * Determines whether to include cross project annotations in the logs. - * This field is available only for organization configurations. If not - * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. - * @type string $network - * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments - * within the network. - * Format: projects/{project_id}/global/networks/{name} - * @type string $subnet - * Traffic will be logged from VMs within the subnetwork. - * Format: projects/{project_id}/regions/{region}/subnetworks/{name} - * @type string $interconnect_attachment - * Traffic will be logged from the Interconnect Attachment. - * Format: - * projects/{project_id}/regions/{region}/interconnectAttachments/{name} - * @type string $vpn_tunnel - * Traffic will be logged from the VPN Tunnel. - * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} - * @type int $scope - * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogsConfig::initOnce(); - parent::__construct($data); - } - - /** - * Unique name of the configuration. The name can have one of the following - * forms: - * - For project-level configurations: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level configurations: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For a Compute config, the name will be the path of the subnet: - * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Unique name of the configuration. The name can have one of the following - * forms: - * - For project-level configurations: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level configurations: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For a Compute config, the name will be the path of the subnet: - * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The state of the VPC Flow Log configuration. Default value is ENABLED. - * When creating a new configuration, it must be enabled. - * Setting state=DISABLED will pause the log generation for this config. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; - * @return int - */ - public function getState() - { - return isset($this->state) ? $this->state : 0; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * The state of the VPC Flow Log configuration. Default value is ENABLED. - * When creating a new configuration, it must be enabled. - * Setting state=DISABLED will pause the log generation for this config. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\State::class); - $this->state = $var; - - return $this; - } - - /** - * The aggregation interval for the logs. Default value is INTERVAL_5_SEC. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; - * @return int - */ - public function getAggregationInterval() - { - return isset($this->aggregation_interval) ? $this->aggregation_interval : 0; - } - - public function hasAggregationInterval() - { - return isset($this->aggregation_interval); - } - - public function clearAggregationInterval() - { - unset($this->aggregation_interval); - } - - /** - * The aggregation interval for the logs. Default value is INTERVAL_5_SEC. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; - * @param int $var - * @return $this - */ - public function setAggregationInterval($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\AggregationInterval::class); - $this->aggregation_interval = $var; - - return $this; - } - - /** - * The value of the field must be in (0, 1]. The sampling rate of VPC Flow - * Logs where 1.0 means all collected logs are reported. - * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC - * Flow Logs, use the state field instead. - * Default value is 1.0. - * - * Generated from protobuf field optional float flow_sampling = 5; - * @return float - */ - public function getFlowSampling() - { - return isset($this->flow_sampling) ? $this->flow_sampling : 0.0; - } - - public function hasFlowSampling() - { - return isset($this->flow_sampling); - } - - public function clearFlowSampling() - { - unset($this->flow_sampling); - } - - /** - * The value of the field must be in (0, 1]. The sampling rate of VPC Flow - * Logs where 1.0 means all collected logs are reported. - * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC - * Flow Logs, use the state field instead. - * Default value is 1.0. - * - * Generated from protobuf field optional float flow_sampling = 5; - * @param float $var - * @return $this - */ - public function setFlowSampling($var) - { - GPBUtil::checkFloat($var); - $this->flow_sampling = $var; - - return $this; - } - - /** - * Configures whether all, none or a subset of metadata fields should be - * added to the reported VPC flow logs. - * Default value is INCLUDE_ALL_METADATA. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; - * @return int - */ - public function getMetadata() - { - return isset($this->metadata) ? $this->metadata : 0; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Configures whether all, none or a subset of metadata fields should be - * added to the reported VPC flow logs. - * Default value is INCLUDE_ALL_METADATA. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; - * @param int $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\Metadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Custom metadata fields to include in the reported VPC flow logs. - * Can only be specified if "metadata" was set to CUSTOM_METADATA. - * - * Generated from protobuf field repeated string metadata_fields = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetadataFields() - { - return $this->metadata_fields; - } - - /** - * Custom metadata fields to include in the reported VPC flow logs. - * Can only be specified if "metadata" was set to CUSTOM_METADATA. - * - * Generated from protobuf field repeated string metadata_fields = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetadataFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata_fields = $arr; - - return $this; - } - - /** - * Export filter used to define which VPC Flow Logs should be logged. - * - * Generated from protobuf field optional string filter_expr = 8; - * @return string - */ - public function getFilterExpr() - { - return isset($this->filter_expr) ? $this->filter_expr : ''; - } - - public function hasFilterExpr() - { - return isset($this->filter_expr); - } - - public function clearFilterExpr() - { - unset($this->filter_expr); - } - - /** - * Export filter used to define which VPC Flow Logs should be logged. - * - * Generated from protobuf field optional string filter_expr = 8; - * @param string $var - * @return $this - */ - public function setFilterExpr($var) - { - GPBUtil::checkString($var, True); - $this->filter_expr = $var; - - return $this; - } - - /** - * Determines whether to include cross project annotations in the logs. - * This field is available only for organization configurations. If not - * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; - * @return int - */ - public function getCrossProjectMetadata() - { - return isset($this->cross_project_metadata) ? $this->cross_project_metadata : 0; - } - - public function hasCrossProjectMetadata() - { - return isset($this->cross_project_metadata); - } - - public function clearCrossProjectMetadata() - { - unset($this->cross_project_metadata); - } - - /** - * Determines whether to include cross project annotations in the logs. - * This field is available only for organization configurations. If not - * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; - * @param int $var - * @return $this - */ - public function setCrossProjectMetadata($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\CrossProjectMetadata::class); - $this->cross_project_metadata = $var; - - return $this; - } - - /** - * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments - * within the network. - * Format: projects/{project_id}/global/networks/{name} - * - * Generated from protobuf field string network = 100; - * @return string - */ - public function getNetwork() - { - return $this->readOneof(100); - } - - public function hasNetwork() - { - return $this->hasOneof(100); - } - - /** - * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments - * within the network. - * Format: projects/{project_id}/global/networks/{name} - * - * Generated from protobuf field string network = 100; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Traffic will be logged from VMs within the subnetwork. - * Format: projects/{project_id}/regions/{region}/subnetworks/{name} - * - * Generated from protobuf field string subnet = 101; - * @return string - */ - public function getSubnet() - { - return $this->readOneof(101); - } - - public function hasSubnet() - { - return $this->hasOneof(101); - } - - /** - * Traffic will be logged from VMs within the subnetwork. - * Format: projects/{project_id}/regions/{region}/subnetworks/{name} - * - * Generated from protobuf field string subnet = 101; - * @param string $var - * @return $this - */ - public function setSubnet($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Traffic will be logged from the Interconnect Attachment. - * Format: - * projects/{project_id}/regions/{region}/interconnectAttachments/{name} - * - * Generated from protobuf field string interconnect_attachment = 102; - * @return string - */ - public function getInterconnectAttachment() - { - return $this->readOneof(102); - } - - public function hasInterconnectAttachment() - { - return $this->hasOneof(102); - } - - /** - * Traffic will be logged from the Interconnect Attachment. - * Format: - * projects/{project_id}/regions/{region}/interconnectAttachments/{name} - * - * Generated from protobuf field string interconnect_attachment = 102; - * @param string $var - * @return $this - */ - public function setInterconnectAttachment($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * Traffic will be logged from the VPN Tunnel. - * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} - * - * Generated from protobuf field string vpn_tunnel = 103; - * @return string - */ - public function getVpnTunnel() - { - return $this->readOneof(103); - } - - public function hasVpnTunnel() - { - return $this->hasOneof(103); - } - - /** - * Traffic will be logged from the VPN Tunnel. - * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} - * - * Generated from protobuf field string vpn_tunnel = 103; - * @param string $var - * @return $this - */ - public function setVpnTunnel($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(103, $var); - - return $this; - } - - /** - * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; - * @return int - */ - public function getScope() - { - return isset($this->scope) ? $this->scope : 0; - } - - public function hasScope() - { - return isset($this->scope); - } - - public function clearScope() - { - unset($this->scope); - } - - /** - * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig\Scope::class); - $this->scope = $var; - - return $this; - } - - /** - * @return string - */ - public function getTargetResource() - { - return $this->whichOneof("target_resource"); - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig/Scope.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig/Scope.php deleted file mode 100644 index 8b12f29b8882..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EffectiveVpcFlowLogsConfig/Scope.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope - */ -class Scope -{ - /** - * Scope is unspecified. - * - * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; - */ - const SCOPE_UNSPECIFIED = 0; - /** - * Target resource is a subnet (Network Management API). - * - * Generated from protobuf enum SUBNET = 1; - */ - const SUBNET = 1; - /** - * Target resource is a subnet, and the config originates from the Compute - * API. - * - * Generated from protobuf enum COMPUTE_API_SUBNET = 2; - */ - const COMPUTE_API_SUBNET = 2; - /** - * Target resource is a network. - * - * Generated from protobuf enum NETWORK = 3; - */ - const NETWORK = 3; - /** - * Target resource is a VPN tunnel. - * - * Generated from protobuf enum VPN_TUNNEL = 4; - */ - const VPN_TUNNEL = 4; - /** - * Target resource is an interconnect attachment. - * - * Generated from protobuf enum INTERCONNECT_ATTACHMENT = 5; - */ - const INTERCONNECT_ATTACHMENT = 5; - /** - * Configuration applies to an entire organization. - * - * Generated from protobuf enum ORGANIZATION = 6; - */ - const ORGANIZATION = 6; - - private static $valueToName = [ - self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', - self::SUBNET => 'SUBNET', - self::COMPUTE_API_SUBNET => 'COMPUTE_API_SUBNET', - self::NETWORK => 'NETWORK', - self::VPN_TUNNEL => 'VPN_TUNNEL', - self::INTERCONNECT_ATTACHMENT => 'INTERCONNECT_ATTACHMENT', - self::ORGANIZATION => 'ORGANIZATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Scope::class, \Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig_Scope::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint.php deleted file mode 100644 index 1d3ed4f56a53..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint.php +++ /dev/null @@ -1,839 +0,0 @@ -google.cloud.networkmanagement.v1.Endpoint - */ -class Endpoint extends \Google\Protobuf\Internal\Message -{ - /** - * The IP address of the endpoint, which can be an external or internal IP. - * - * Generated from protobuf field string ip_address = 1; - */ - protected $ip_address = ''; - /** - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. - * - * Generated from protobuf field int32 port = 2; - */ - protected $port = 0; - /** - * A Compute Engine instance URI. - * - * Generated from protobuf field string instance = 3; - */ - protected $instance = ''; - /** - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Applicable - * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` - * - * Generated from protobuf field string forwarding_rule = 13; - */ - protected $forwarding_rule = ''; - /** - * Output only. Specifies the type of the target of the forwarding rule. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $forwarding_rule_target = null; - /** - * Output only. ID of the load balancer the forwarding rule points to. Empty - * for forwarding rules not related to load balancers. - * - * Generated from protobuf field optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $load_balancer_id = null; - /** - * Output only. Type of the load balancer the forwarding rule points to. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $load_balancer_type = null; - /** - * A cluster URI for [Google Kubernetes Engine cluster control - * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - * - * Generated from protobuf field string gke_master_cluster = 7; - */ - protected $gke_master_cluster = ''; - /** - * DNS endpoint of [Google Kubernetes Engine cluster control - * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - * Requires gke_master_cluster to be set, can't be used simultaneoulsly with - * ip_address or network. Applicable only to destination endpoint. - * - * Generated from protobuf field string fqdn = 19; - */ - protected $fqdn = ''; - /** - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. - * - * Generated from protobuf field string cloud_sql_instance = 8; - */ - protected $cloud_sql_instance = ''; - /** - * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. - * Applicable only to destination endpoint. - * - * Generated from protobuf field string redis_instance = 17; - */ - protected $redis_instance = ''; - /** - * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. - * Applicable only to destination endpoint. - * - * Generated from protobuf field string redis_cluster = 18; - */ - protected $redis_cluster = ''; - /** - * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) - * URI. - * - * Generated from protobuf field string gke_pod = 21; - */ - protected $gke_pod = ''; - /** - * A [Cloud Function](https://cloud.google.com/functions). Applicable only to - * source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10; - */ - protected $cloud_function = null; - /** - * An [App Engine](https://cloud.google.com/appengine) [service - * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). - * Applicable only to source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11; - */ - protected $app_engine_version = null; - /** - * A [Cloud Run](https://cloud.google.com/run) - * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) - * Applicable only to source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12; - */ - protected $cloud_run_revision = null; - /** - * A VPC network URI. For source endpoints, used according to the - * `network_type`. For destination endpoints, used only when the source is an - * external IP address endpoint, and the destination is an internal IP address - * endpoint. - * - * Generated from protobuf field string network = 4; - */ - protected $network = ''; - /** - * For source endpoints, type of the network where the endpoint is located. - * Not relevant for destination endpoints. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; - */ - protected $network_type = 0; - /** - * For source endpoints, endpoint project ID. Used according to the - * `network_type`. Not relevant for destination endpoints. - * - * Generated from protobuf field string project_id = 6; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ip_address - * The IP address of the endpoint, which can be an external or internal IP. - * @type int $port - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. - * @type string $instance - * A Compute Engine instance URI. - * @type string $forwarding_rule - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Applicable - * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` - * @type int $forwarding_rule_target - * Output only. Specifies the type of the target of the forwarding rule. - * @type string $load_balancer_id - * Output only. ID of the load balancer the forwarding rule points to. Empty - * for forwarding rules not related to load balancers. - * @type int $load_balancer_type - * Output only. Type of the load balancer the forwarding rule points to. - * @type string $gke_master_cluster - * A cluster URI for [Google Kubernetes Engine cluster control - * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - * @type string $fqdn - * DNS endpoint of [Google Kubernetes Engine cluster control - * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - * Requires gke_master_cluster to be set, can't be used simultaneoulsly with - * ip_address or network. Applicable only to destination endpoint. - * @type string $cloud_sql_instance - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. - * @type string $redis_instance - * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. - * Applicable only to destination endpoint. - * @type string $redis_cluster - * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. - * Applicable only to destination endpoint. - * @type string $gke_pod - * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) - * URI. - * @type \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint $cloud_function - * A [Cloud Function](https://cloud.google.com/functions). Applicable only to - * source endpoint. - * @type \Google\Cloud\NetworkManagement\V1\Endpoint\AppEngineVersionEndpoint $app_engine_version - * An [App Engine](https://cloud.google.com/appengine) [service - * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). - * Applicable only to source endpoint. - * @type \Google\Cloud\NetworkManagement\V1\Endpoint\CloudRunRevisionEndpoint $cloud_run_revision - * A [Cloud Run](https://cloud.google.com/run) - * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) - * Applicable only to source endpoint. - * @type string $network - * A VPC network URI. For source endpoints, used according to the - * `network_type`. For destination endpoints, used only when the source is an - * external IP address endpoint, and the destination is an internal IP address - * endpoint. - * @type int $network_type - * For source endpoints, type of the network where the endpoint is located. - * Not relevant for destination endpoints. - * @type string $project_id - * For source endpoints, endpoint project ID. Used according to the - * `network_type`. Not relevant for destination endpoints. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * The IP address of the endpoint, which can be an external or internal IP. - * - * Generated from protobuf field string ip_address = 1; - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * The IP address of the endpoint, which can be an external or internal IP. - * - * Generated from protobuf field string ip_address = 1; - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - - /** - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. - * - * Generated from protobuf field int32 port = 2; - * @return int - */ - public function getPort() - { - return $this->port; - } - - /** - * The IP protocol port of the endpoint. - * Only applicable when protocol is TCP or UDP. - * - * Generated from protobuf field int32 port = 2; - * @param int $var - * @return $this - */ - public function setPort($var) - { - GPBUtil::checkInt32($var); - $this->port = $var; - - return $this; - } - - /** - * A Compute Engine instance URI. - * - * Generated from protobuf field string instance = 3; - * @return string - */ - public function getInstance() - { - return $this->instance; - } - - /** - * A Compute Engine instance URI. - * - * Generated from protobuf field string instance = 3; - * @param string $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkString($var, True); - $this->instance = $var; - - return $this; - } - - /** - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Applicable - * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` - * - * Generated from protobuf field string forwarding_rule = 13; - * @return string - */ - public function getForwardingRule() - { - return $this->forwarding_rule; - } - - /** - * A forwarding rule and its corresponding IP address represent the frontend - * configuration of a Google Cloud load balancer. Forwarding rules are also - * used for protocol forwarding, Private Service Connect and other network - * services to provide forwarding information in the control plane. Applicable - * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` - * - * Generated from protobuf field string forwarding_rule = 13; - * @param string $var - * @return $this - */ - public function setForwardingRule($var) - { - GPBUtil::checkString($var, True); - $this->forwarding_rule = $var; - - return $this; - } - - /** - * Output only. Specifies the type of the target of the forwarding rule. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getForwardingRuleTarget() - { - return isset($this->forwarding_rule_target) ? $this->forwarding_rule_target : 0; - } - - public function hasForwardingRuleTarget() - { - return isset($this->forwarding_rule_target); - } - - public function clearForwardingRuleTarget() - { - unset($this->forwarding_rule_target); - } - - /** - * Output only. Specifies the type of the target of the forwarding rule. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setForwardingRuleTarget($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\Endpoint\ForwardingRuleTarget::class); - $this->forwarding_rule_target = $var; - - return $this; - } - - /** - * Output only. ID of the load balancer the forwarding rule points to. Empty - * for forwarding rules not related to load balancers. - * - * Generated from protobuf field optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLoadBalancerId() - { - return isset($this->load_balancer_id) ? $this->load_balancer_id : ''; - } - - public function hasLoadBalancerId() - { - return isset($this->load_balancer_id); - } - - public function clearLoadBalancerId() - { - unset($this->load_balancer_id); - } - - /** - * Output only. ID of the load balancer the forwarding rule points to. Empty - * for forwarding rules not related to load balancers. - * - * Generated from protobuf field optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLoadBalancerId($var) - { - GPBUtil::checkString($var, True); - $this->load_balancer_id = $var; - - return $this; - } - - /** - * Output only. Type of the load balancer the forwarding rule points to. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLoadBalancerType() - { - return isset($this->load_balancer_type) ? $this->load_balancer_type : 0; - } - - public function hasLoadBalancerType() - { - return isset($this->load_balancer_type); - } - - public function clearLoadBalancerType() - { - unset($this->load_balancer_type); - } - - /** - * Output only. Type of the load balancer the forwarding rule points to. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLoadBalancerType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerType::class); - $this->load_balancer_type = $var; - - return $this; - } - - /** - * A cluster URI for [Google Kubernetes Engine cluster control - * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - * - * Generated from protobuf field string gke_master_cluster = 7; - * @return string - */ - public function getGkeMasterCluster() - { - return $this->gke_master_cluster; - } - - /** - * A cluster URI for [Google Kubernetes Engine cluster control - * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - * - * Generated from protobuf field string gke_master_cluster = 7; - * @param string $var - * @return $this - */ - public function setGkeMasterCluster($var) - { - GPBUtil::checkString($var, True); - $this->gke_master_cluster = $var; - - return $this; - } - - /** - * DNS endpoint of [Google Kubernetes Engine cluster control - * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - * Requires gke_master_cluster to be set, can't be used simultaneoulsly with - * ip_address or network. Applicable only to destination endpoint. - * - * Generated from protobuf field string fqdn = 19; - * @return string - */ - public function getFqdn() - { - return $this->fqdn; - } - - /** - * DNS endpoint of [Google Kubernetes Engine cluster control - * plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). - * Requires gke_master_cluster to be set, can't be used simultaneoulsly with - * ip_address or network. Applicable only to destination endpoint. - * - * Generated from protobuf field string fqdn = 19; - * @param string $var - * @return $this - */ - public function setFqdn($var) - { - GPBUtil::checkString($var, True); - $this->fqdn = $var; - - return $this; - } - - /** - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. - * - * Generated from protobuf field string cloud_sql_instance = 8; - * @return string - */ - public function getCloudSqlInstance() - { - return $this->cloud_sql_instance; - } - - /** - * A [Cloud SQL](https://cloud.google.com/sql) instance URI. - * - * Generated from protobuf field string cloud_sql_instance = 8; - * @param string $var - * @return $this - */ - public function setCloudSqlInstance($var) - { - GPBUtil::checkString($var, True); - $this->cloud_sql_instance = $var; - - return $this; - } - - /** - * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. - * Applicable only to destination endpoint. - * - * Generated from protobuf field string redis_instance = 17; - * @return string - */ - public function getRedisInstance() - { - return $this->redis_instance; - } - - /** - * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. - * Applicable only to destination endpoint. - * - * Generated from protobuf field string redis_instance = 17; - * @param string $var - * @return $this - */ - public function setRedisInstance($var) - { - GPBUtil::checkString($var, True); - $this->redis_instance = $var; - - return $this; - } - - /** - * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. - * Applicable only to destination endpoint. - * - * Generated from protobuf field string redis_cluster = 18; - * @return string - */ - public function getRedisCluster() - { - return $this->redis_cluster; - } - - /** - * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. - * Applicable only to destination endpoint. - * - * Generated from protobuf field string redis_cluster = 18; - * @param string $var - * @return $this - */ - public function setRedisCluster($var) - { - GPBUtil::checkString($var, True); - $this->redis_cluster = $var; - - return $this; - } - - /** - * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) - * URI. - * - * Generated from protobuf field string gke_pod = 21; - * @return string - */ - public function getGkePod() - { - return $this->gke_pod; - } - - /** - * A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) - * URI. - * - * Generated from protobuf field string gke_pod = 21; - * @param string $var - * @return $this - */ - public function setGkePod($var) - { - GPBUtil::checkString($var, True); - $this->gke_pod = $var; - - return $this; - } - - /** - * A [Cloud Function](https://cloud.google.com/functions). Applicable only to - * source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10; - * @return \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint|null - */ - public function getCloudFunction() - { - return $this->cloud_function; - } - - public function hasCloudFunction() - { - return isset($this->cloud_function); - } - - public function clearCloudFunction() - { - unset($this->cloud_function); - } - - /** - * A [Cloud Function](https://cloud.google.com/functions). Applicable only to - * source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10; - * @param \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint $var - * @return $this - */ - public function setCloudFunction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint\CloudFunctionEndpoint::class); - $this->cloud_function = $var; - - return $this; - } - - /** - * An [App Engine](https://cloud.google.com/appengine) [service - * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). - * Applicable only to source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11; - * @return \Google\Cloud\NetworkManagement\V1\Endpoint\AppEngineVersionEndpoint|null - */ - public function getAppEngineVersion() - { - return $this->app_engine_version; - } - - public function hasAppEngineVersion() - { - return isset($this->app_engine_version); - } - - public function clearAppEngineVersion() - { - unset($this->app_engine_version); - } - - /** - * An [App Engine](https://cloud.google.com/appengine) [service - * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). - * Applicable only to source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11; - * @param \Google\Cloud\NetworkManagement\V1\Endpoint\AppEngineVersionEndpoint $var - * @return $this - */ - public function setAppEngineVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint\AppEngineVersionEndpoint::class); - $this->app_engine_version = $var; - - return $this; - } - - /** - * A [Cloud Run](https://cloud.google.com/run) - * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) - * Applicable only to source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12; - * @return \Google\Cloud\NetworkManagement\V1\Endpoint\CloudRunRevisionEndpoint|null - */ - public function getCloudRunRevision() - { - return $this->cloud_run_revision; - } - - public function hasCloudRunRevision() - { - return isset($this->cloud_run_revision); - } - - public function clearCloudRunRevision() - { - unset($this->cloud_run_revision); - } - - /** - * A [Cloud Run](https://cloud.google.com/run) - * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) - * Applicable only to source endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12; - * @param \Google\Cloud\NetworkManagement\V1\Endpoint\CloudRunRevisionEndpoint $var - * @return $this - */ - public function setCloudRunRevision($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\Endpoint\CloudRunRevisionEndpoint::class); - $this->cloud_run_revision = $var; - - return $this; - } - - /** - * A VPC network URI. For source endpoints, used according to the - * `network_type`. For destination endpoints, used only when the source is an - * external IP address endpoint, and the destination is an internal IP address - * endpoint. - * - * Generated from protobuf field string network = 4; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * A VPC network URI. For source endpoints, used according to the - * `network_type`. For destination endpoints, used only when the source is an - * external IP address endpoint, and the destination is an internal IP address - * endpoint. - * - * Generated from protobuf field string network = 4; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * For source endpoints, type of the network where the endpoint is located. - * Not relevant for destination endpoints. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; - * @return int - */ - public function getNetworkType() - { - return $this->network_type; - } - - /** - * For source endpoints, type of the network where the endpoint is located. - * Not relevant for destination endpoints. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5; - * @param int $var - * @return $this - */ - public function setNetworkType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\Endpoint\NetworkType::class); - $this->network_type = $var; - - return $this; - } - - /** - * For source endpoints, endpoint project ID. Used according to the - * `network_type`. Not relevant for destination endpoints. - * - * Generated from protobuf field string project_id = 6; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * For source endpoints, endpoint project ID. Used according to the - * `network_type`. Not relevant for destination endpoints. - * - * Generated from protobuf field string project_id = 6; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/AppEngineVersionEndpoint.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/AppEngineVersionEndpoint.php deleted file mode 100644 index 00601e729f56..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/AppEngineVersionEndpoint.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint - */ -class AppEngineVersionEndpoint extends \Google\Protobuf\Internal\Message -{ - /** - * An [App Engine](https://cloud.google.com/appengine) [service - * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) - * name. - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * An [App Engine](https://cloud.google.com/appengine) [service - * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) - * name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * An [App Engine](https://cloud.google.com/appengine) [service - * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) - * name. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * An [App Engine](https://cloud.google.com/appengine) [service - * version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions) - * name. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AppEngineVersionEndpoint::class, \Google\Cloud\NetworkManagement\V1\Endpoint_AppEngineVersionEndpoint::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudFunctionEndpoint.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudFunctionEndpoint.php deleted file mode 100644 index dfc3b0f413a5..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudFunctionEndpoint.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint - */ -class CloudFunctionEndpoint extends \Google\Protobuf\Internal\Message -{ - /** - * A [Cloud Function](https://cloud.google.com/functions) name. - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * A [Cloud Function](https://cloud.google.com/functions) name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * A [Cloud Function](https://cloud.google.com/functions) name. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * A [Cloud Function](https://cloud.google.com/functions) name. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CloudFunctionEndpoint::class, \Google\Cloud\NetworkManagement\V1\Endpoint_CloudFunctionEndpoint::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudRunRevisionEndpoint.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudRunRevisionEndpoint.php deleted file mode 100644 index 77a02f1ca3fa..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/CloudRunRevisionEndpoint.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint - */ -class CloudRunRevisionEndpoint extends \Google\Protobuf\Internal\Message -{ - /** - * A [Cloud Run](https://cloud.google.com/run) - * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) - * URI. The format is: - * projects/{project}/locations/{location}/revisions/{revision} - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * Output only. The URI of the Cloud Run service that the revision belongs - * to. The format is: - * projects/{project}/locations/{location}/services/{service} - * - * Generated from protobuf field string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * A [Cloud Run](https://cloud.google.com/run) - * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) - * URI. The format is: - * projects/{project}/locations/{location}/revisions/{revision} - * @type string $service_uri - * Output only. The URI of the Cloud Run service that the revision belongs - * to. The format is: - * projects/{project}/locations/{location}/services/{service} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * A [Cloud Run](https://cloud.google.com/run) - * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) - * URI. The format is: - * projects/{project}/locations/{location}/revisions/{revision} - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * A [Cloud Run](https://cloud.google.com/run) - * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) - * URI. The format is: - * projects/{project}/locations/{location}/revisions/{revision} - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Output only. The URI of the Cloud Run service that the revision belongs - * to. The format is: - * projects/{project}/locations/{location}/services/{service} - * - * Generated from protobuf field string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServiceUri() - { - return $this->service_uri; - } - - /** - * Output only. The URI of the Cloud Run service that the revision belongs - * to. The format is: - * projects/{project}/locations/{location}/services/{service} - * - * Generated from protobuf field string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServiceUri($var) - { - GPBUtil::checkString($var, True); - $this->service_uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CloudRunRevisionEndpoint::class, \Google\Cloud\NetworkManagement\V1\Endpoint_CloudRunRevisionEndpoint::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/ForwardingRuleTarget.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/ForwardingRuleTarget.php deleted file mode 100644 index 7f8ffa54e280..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/ForwardingRuleTarget.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget - */ -class ForwardingRuleTarget -{ - /** - * Forwarding rule target is unknown. - * - * Generated from protobuf enum FORWARDING_RULE_TARGET_UNSPECIFIED = 0; - */ - const FORWARDING_RULE_TARGET_UNSPECIFIED = 0; - /** - * Compute Engine instance for protocol forwarding. - * - * Generated from protobuf enum INSTANCE = 1; - */ - const INSTANCE = 1; - /** - * Load Balancer. The specific type can be found from [load_balancer_type] - * [google.cloud.networkmanagement.v1.Endpoint.load_balancer_type]. - * - * Generated from protobuf enum LOAD_BALANCER = 2; - */ - const LOAD_BALANCER = 2; - /** - * Classic Cloud VPN Gateway. - * - * Generated from protobuf enum VPN_GATEWAY = 3; - */ - const VPN_GATEWAY = 3; - /** - * Forwarding Rule is a Private Service Connect endpoint. - * - * Generated from protobuf enum PSC = 4; - */ - const PSC = 4; - - private static $valueToName = [ - self::FORWARDING_RULE_TARGET_UNSPECIFIED => 'FORWARDING_RULE_TARGET_UNSPECIFIED', - self::INSTANCE => 'INSTANCE', - self::LOAD_BALANCER => 'LOAD_BALANCER', - self::VPN_GATEWAY => 'VPN_GATEWAY', - self::PSC => 'PSC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ForwardingRuleTarget::class, \Google\Cloud\NetworkManagement\V1\Endpoint_ForwardingRuleTarget::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/NetworkType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/NetworkType.php deleted file mode 100644 index 4188b7d84277..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Endpoint/NetworkType.php +++ /dev/null @@ -1,88 +0,0 @@ -google.cloud.networkmanagement.v1.Endpoint.NetworkType - */ -class NetworkType -{ - /** - * Unspecified. The test will analyze all possible IP address locations. - * This might take longer and produce inaccurate or ambiguous results, so - * prefer specifying an explicit network type. - * The `project_id` field should be set to the project where the GCP - * endpoint is located, or where the non-GCP endpoint should be reachable - * from (via routes to non-GCP networks). The project might also be inferred - * from the Connectivity Test project or other projects referenced in the - * request. - * - * Generated from protobuf enum NETWORK_TYPE_UNSPECIFIED = 0; - */ - const NETWORK_TYPE_UNSPECIFIED = 0; - /** - * A VPC network. Should be used for internal IP addresses in VPC networks. - * The `network` field should be set to the URI of this network. Only - * endpoints within this network will be considered. - * - * Generated from protobuf enum GCP_NETWORK = 1; - */ - const GCP_NETWORK = 1; - /** - * A non-GCP network (for example, an on-premises network or another cloud - * provider network). Should be used for internal IP addresses outside of - * Google Cloud. The `network` field should be set to the URI of the VPC - * network containing a corresponding Cloud VPN tunnel, Cloud Interconnect - * VLAN attachment, or a router appliance instance. Only endpoints reachable - * from the provided VPC network via the routes to non-GCP networks will be - * considered. - * - * Generated from protobuf enum NON_GCP_NETWORK = 2; - */ - const NON_GCP_NETWORK = 2; - /** - * Internet. Should be used for internet-routable external IP addresses or - * IP addresses for global Google APIs and services. - * - * Generated from protobuf enum INTERNET = 3; - */ - const INTERNET = 3; - - private static $valueToName = [ - self::NETWORK_TYPE_UNSPECIFIED => 'NETWORK_TYPE_UNSPECIFIED', - self::GCP_NETWORK => 'GCP_NETWORK', - self::NON_GCP_NETWORK => 'NON_GCP_NETWORK', - self::INTERNET => 'INTERNET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NetworkType::class, \Google\Cloud\NetworkManagement\V1\Endpoint_NetworkType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EndpointInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EndpointInfo.php deleted file mode 100644 index d87bc1cea5b2..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/EndpointInfo.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.networkmanagement.v1.EndpointInfo - */ -class EndpointInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Source IP address. - * - * Generated from protobuf field string source_ip = 1; - */ - protected $source_ip = ''; - /** - * Destination IP address. - * - * Generated from protobuf field string destination_ip = 2; - */ - protected $destination_ip = ''; - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 3; - */ - protected $protocol = ''; - /** - * Source port. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 source_port = 4; - */ - protected $source_port = 0; - /** - * Destination port. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 destination_port = 5; - */ - protected $destination_port = 0; - /** - * URI of the network where this packet originates from. - * - * Generated from protobuf field string source_network_uri = 6; - */ - protected $source_network_uri = ''; - /** - * URI of the network where this packet is sent to. - * - * Generated from protobuf field string destination_network_uri = 7; - */ - protected $destination_network_uri = ''; - /** - * URI of the source telemetry agent this packet originates from. - * - * Generated from protobuf field string source_agent_uri = 8; - */ - protected $source_agent_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_ip - * Source IP address. - * @type string $destination_ip - * Destination IP address. - * @type string $protocol - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * @type int $source_port - * Source port. Only valid when protocol is TCP or UDP. - * @type int $destination_port - * Destination port. Only valid when protocol is TCP or UDP. - * @type string $source_network_uri - * URI of the network where this packet originates from. - * @type string $destination_network_uri - * URI of the network where this packet is sent to. - * @type string $source_agent_uri - * URI of the source telemetry agent this packet originates from. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Source IP address. - * - * Generated from protobuf field string source_ip = 1; - * @return string - */ - public function getSourceIp() - { - return $this->source_ip; - } - - /** - * Source IP address. - * - * Generated from protobuf field string source_ip = 1; - * @param string $var - * @return $this - */ - public function setSourceIp($var) - { - GPBUtil::checkString($var, True); - $this->source_ip = $var; - - return $this; - } - - /** - * Destination IP address. - * - * Generated from protobuf field string destination_ip = 2; - * @return string - */ - public function getDestinationIp() - { - return $this->destination_ip; - } - - /** - * Destination IP address. - * - * Generated from protobuf field string destination_ip = 2; - * @param string $var - * @return $this - */ - public function setDestinationIp($var) - { - GPBUtil::checkString($var, True); - $this->destination_ip = $var; - - return $this; - } - - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 3; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 3; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * Source port. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 source_port = 4; - * @return int - */ - public function getSourcePort() - { - return $this->source_port; - } - - /** - * Source port. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 source_port = 4; - * @param int $var - * @return $this - */ - public function setSourcePort($var) - { - GPBUtil::checkInt32($var); - $this->source_port = $var; - - return $this; - } - - /** - * Destination port. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 destination_port = 5; - * @return int - */ - public function getDestinationPort() - { - return $this->destination_port; - } - - /** - * Destination port. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 destination_port = 5; - * @param int $var - * @return $this - */ - public function setDestinationPort($var) - { - GPBUtil::checkInt32($var); - $this->destination_port = $var; - - return $this; - } - - /** - * URI of the network where this packet originates from. - * - * Generated from protobuf field string source_network_uri = 6; - * @return string - */ - public function getSourceNetworkUri() - { - return $this->source_network_uri; - } - - /** - * URI of the network where this packet originates from. - * - * Generated from protobuf field string source_network_uri = 6; - * @param string $var - * @return $this - */ - public function setSourceNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->source_network_uri = $var; - - return $this; - } - - /** - * URI of the network where this packet is sent to. - * - * Generated from protobuf field string destination_network_uri = 7; - * @return string - */ - public function getDestinationNetworkUri() - { - return $this->destination_network_uri; - } - - /** - * URI of the network where this packet is sent to. - * - * Generated from protobuf field string destination_network_uri = 7; - * @param string $var - * @return $this - */ - public function setDestinationNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->destination_network_uri = $var; - - return $this; - } - - /** - * URI of the source telemetry agent this packet originates from. - * - * Generated from protobuf field string source_agent_uri = 8; - * @return string - */ - public function getSourceAgentUri() - { - return $this->source_agent_uri; - } - - /** - * URI of the source telemetry agent this packet originates from. - * - * Generated from protobuf field string source_agent_uri = 8; - * @param string $var - * @return $this - */ - public function setSourceAgentUri($var) - { - GPBUtil::checkString($var, True); - $this->source_agent_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo.php deleted file mode 100644 index ba4bba0de236..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo.php +++ /dev/null @@ -1,516 +0,0 @@ -google.cloud.networkmanagement.v1.FirewallInfo - */ -class FirewallInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The display name of the firewall rule. This field might be empty for - * firewall policy rules. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * The URI of the firewall rule. This field is not applicable to implied - * VPC firewall rules. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Possible values: INGRESS, EGRESS - * - * Generated from protobuf field string direction = 3; - */ - protected $direction = ''; - /** - * Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP - * - * Generated from protobuf field string action = 4; - */ - protected $action = ''; - /** - * The priority of the firewall rule. - * - * Generated from protobuf field int32 priority = 5; - */ - protected $priority = 0; - /** - * The URI of the VPC network that the firewall rule is associated with. - * This field is not applicable to hierarchical firewall policy rules. - * - * Generated from protobuf field string network_uri = 6; - */ - protected $network_uri = ''; - /** - * The target tags defined by the VPC firewall rule. This field is not - * applicable to firewall policy rules. - * - * Generated from protobuf field repeated string target_tags = 7; - */ - private $target_tags; - /** - * The target service accounts specified by the firewall rule. - * - * Generated from protobuf field repeated string target_service_accounts = 8; - */ - private $target_service_accounts; - /** - * The name of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field string policy = 9; - */ - protected $policy = ''; - /** - * The URI of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field string policy_uri = 11; - */ - protected $policy_uri = ''; - /** - * The firewall rule's type. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10; - */ - protected $firewall_rule_type = 0; - /** - * The priority of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field int32 policy_priority = 12; - */ - protected $policy_priority = 0; - /** - * Target type of the firewall rule. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; - */ - protected $target_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * The display name of the firewall rule. This field might be empty for - * firewall policy rules. - * @type string $uri - * The URI of the firewall rule. This field is not applicable to implied - * VPC firewall rules. - * @type string $direction - * Possible values: INGRESS, EGRESS - * @type string $action - * Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP - * @type int $priority - * The priority of the firewall rule. - * @type string $network_uri - * The URI of the VPC network that the firewall rule is associated with. - * This field is not applicable to hierarchical firewall policy rules. - * @type array|\Google\Protobuf\Internal\RepeatedField $target_tags - * The target tags defined by the VPC firewall rule. This field is not - * applicable to firewall policy rules. - * @type array|\Google\Protobuf\Internal\RepeatedField $target_service_accounts - * The target service accounts specified by the firewall rule. - * @type string $policy - * The name of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * @type string $policy_uri - * The URI of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * @type int $firewall_rule_type - * The firewall rule's type. - * @type int $policy_priority - * The priority of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * @type int $target_type - * Target type of the firewall rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * The display name of the firewall rule. This field might be empty for - * firewall policy rules. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the firewall rule. This field might be empty for - * firewall policy rules. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The URI of the firewall rule. This field is not applicable to implied - * VPC firewall rules. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * The URI of the firewall rule. This field is not applicable to implied - * VPC firewall rules. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Possible values: INGRESS, EGRESS - * - * Generated from protobuf field string direction = 3; - * @return string - */ - public function getDirection() - { - return $this->direction; - } - - /** - * Possible values: INGRESS, EGRESS - * - * Generated from protobuf field string direction = 3; - * @param string $var - * @return $this - */ - public function setDirection($var) - { - GPBUtil::checkString($var, True); - $this->direction = $var; - - return $this; - } - - /** - * Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP - * - * Generated from protobuf field string action = 4; - * @return string - */ - public function getAction() - { - return $this->action; - } - - /** - * Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP - * - * Generated from protobuf field string action = 4; - * @param string $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkString($var, True); - $this->action = $var; - - return $this; - } - - /** - * The priority of the firewall rule. - * - * Generated from protobuf field int32 priority = 5; - * @return int - */ - public function getPriority() - { - return $this->priority; - } - - /** - * The priority of the firewall rule. - * - * Generated from protobuf field int32 priority = 5; - * @param int $var - * @return $this - */ - public function setPriority($var) - { - GPBUtil::checkInt32($var); - $this->priority = $var; - - return $this; - } - - /** - * The URI of the VPC network that the firewall rule is associated with. - * This field is not applicable to hierarchical firewall policy rules. - * - * Generated from protobuf field string network_uri = 6; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * The URI of the VPC network that the firewall rule is associated with. - * This field is not applicable to hierarchical firewall policy rules. - * - * Generated from protobuf field string network_uri = 6; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * The target tags defined by the VPC firewall rule. This field is not - * applicable to firewall policy rules. - * - * Generated from protobuf field repeated string target_tags = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetTags() - { - return $this->target_tags; - } - - /** - * The target tags defined by the VPC firewall rule. This field is not - * applicable to firewall policy rules. - * - * Generated from protobuf field repeated string target_tags = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->target_tags = $arr; - - return $this; - } - - /** - * The target service accounts specified by the firewall rule. - * - * Generated from protobuf field repeated string target_service_accounts = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetServiceAccounts() - { - return $this->target_service_accounts; - } - - /** - * The target service accounts specified by the firewall rule. - * - * Generated from protobuf field repeated string target_service_accounts = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetServiceAccounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->target_service_accounts = $arr; - - return $this; - } - - /** - * The name of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field string policy = 9; - * @return string - */ - public function getPolicy() - { - return $this->policy; - } - - /** - * The name of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field string policy = 9; - * @param string $var - * @return $this - */ - public function setPolicy($var) - { - GPBUtil::checkString($var, True); - $this->policy = $var; - - return $this; - } - - /** - * The URI of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field string policy_uri = 11; - * @return string - */ - public function getPolicyUri() - { - return $this->policy_uri; - } - - /** - * The URI of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field string policy_uri = 11; - * @param string $var - * @return $this - */ - public function setPolicyUri($var) - { - GPBUtil::checkString($var, True); - $this->policy_uri = $var; - - return $this; - } - - /** - * The firewall rule's type. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10; - * @return int - */ - public function getFirewallRuleType() - { - return $this->firewall_rule_type; - } - - /** - * The firewall rule's type. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10; - * @param int $var - * @return $this - */ - public function setFirewallRuleType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\FirewallInfo\FirewallRuleType::class); - $this->firewall_rule_type = $var; - - return $this; - } - - /** - * The priority of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field int32 policy_priority = 12; - * @return int - */ - public function getPolicyPriority() - { - return $this->policy_priority; - } - - /** - * The priority of the firewall policy that this rule is associated with. - * This field is not applicable to VPC firewall rules and implied VPC firewall - * rules. - * - * Generated from protobuf field int32 policy_priority = 12; - * @param int $var - * @return $this - */ - public function setPolicyPriority($var) - { - GPBUtil::checkInt32($var); - $this->policy_priority = $var; - - return $this; - } - - /** - * Target type of the firewall rule. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; - * @return int - */ - public function getTargetType() - { - return $this->target_type; - } - - /** - * Target type of the firewall rule. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; - * @param int $var - * @return $this - */ - public function setTargetType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\FirewallInfo\TargetType::class); - $this->target_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/FirewallRuleType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/FirewallRuleType.php deleted file mode 100644 index 4c449dcfd654..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/FirewallRuleType.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType - */ -class FirewallRuleType -{ - /** - * Unspecified type. - * - * Generated from protobuf enum FIREWALL_RULE_TYPE_UNSPECIFIED = 0; - */ - const FIREWALL_RULE_TYPE_UNSPECIFIED = 0; - /** - * Hierarchical firewall policy rule. For details, see - * [Hierarchical firewall policies - * overview](https://cloud.google.com/vpc/docs/firewall-policies). - * - * Generated from protobuf enum HIERARCHICAL_FIREWALL_POLICY_RULE = 1; - */ - const HIERARCHICAL_FIREWALL_POLICY_RULE = 1; - /** - * VPC firewall rule. For details, see - * [VPC firewall rules - * overview](https://cloud.google.com/vpc/docs/firewalls). - * - * Generated from protobuf enum VPC_FIREWALL_RULE = 2; - */ - const VPC_FIREWALL_RULE = 2; - /** - * Implied VPC firewall rule. For details, see - * [Implied - * rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules). - * - * Generated from protobuf enum IMPLIED_VPC_FIREWALL_RULE = 3; - */ - const IMPLIED_VPC_FIREWALL_RULE = 3; - /** - * Implicit firewall rules that are managed by serverless VPC access to - * allow ingress access. They are not visible in the Google Cloud console. - * For details, see [VPC connector's implicit - * rules](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access). - * - * Generated from protobuf enum SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4; - */ - const SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE = 4; - /** - * User-defined global network firewall policy rule. - * For details, see [Network firewall - * policies](https://cloud.google.com/vpc/docs/network-firewall-policies). - * - * Generated from protobuf enum NETWORK_FIREWALL_POLICY_RULE = 5; - */ - const NETWORK_FIREWALL_POLICY_RULE = 5; - /** - * User-defined regional network firewall policy rule. - * For details, see [Regional network firewall - * policies](https://cloud.google.com/firewall/docs/regional-firewall-policies). - * - * Generated from protobuf enum NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6; - */ - const NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6; - /** - * System-defined global network firewall policy rule. - * - * Generated from protobuf enum SYSTEM_NETWORK_FIREWALL_POLICY_RULE = 7; - */ - const SYSTEM_NETWORK_FIREWALL_POLICY_RULE = 7; - /** - * System-defined regional network firewall policy rule. - * - * Generated from protobuf enum SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE = 8; - */ - const SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE = 8; - /** - * Firewall policy rule containing attributes not yet supported in - * Connectivity tests. Firewall analysis is skipped if such a rule can - * potentially be matched. Please see the [list of unsupported - * configurations](https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs). - * - * Generated from protobuf enum UNSUPPORTED_FIREWALL_POLICY_RULE = 100; - */ - const UNSUPPORTED_FIREWALL_POLICY_RULE = 100; - /** - * Tracking state for response traffic created when request traffic goes - * through allow firewall rule. - * For details, see [firewall rules - * specifications](https://cloud.google.com/firewall/docs/firewalls#specifications) - * - * Generated from protobuf enum TRACKING_STATE = 101; - */ - const TRACKING_STATE = 101; - /** - * Firewall analysis was skipped due to executing Connectivity Test in the - * BypassFirewallChecks mode - * - * Generated from protobuf enum ANALYSIS_SKIPPED = 102; - */ - const ANALYSIS_SKIPPED = 102; - - private static $valueToName = [ - self::FIREWALL_RULE_TYPE_UNSPECIFIED => 'FIREWALL_RULE_TYPE_UNSPECIFIED', - self::HIERARCHICAL_FIREWALL_POLICY_RULE => 'HIERARCHICAL_FIREWALL_POLICY_RULE', - self::VPC_FIREWALL_RULE => 'VPC_FIREWALL_RULE', - self::IMPLIED_VPC_FIREWALL_RULE => 'IMPLIED_VPC_FIREWALL_RULE', - self::SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE => 'SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE', - self::NETWORK_FIREWALL_POLICY_RULE => 'NETWORK_FIREWALL_POLICY_RULE', - self::NETWORK_REGIONAL_FIREWALL_POLICY_RULE => 'NETWORK_REGIONAL_FIREWALL_POLICY_RULE', - self::SYSTEM_NETWORK_FIREWALL_POLICY_RULE => 'SYSTEM_NETWORK_FIREWALL_POLICY_RULE', - self::SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE => 'SYSTEM_REGIONAL_NETWORK_FIREWALL_POLICY_RULE', - self::UNSUPPORTED_FIREWALL_POLICY_RULE => 'UNSUPPORTED_FIREWALL_POLICY_RULE', - self::TRACKING_STATE => 'TRACKING_STATE', - self::ANALYSIS_SKIPPED => 'ANALYSIS_SKIPPED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FirewallRuleType::class, \Google\Cloud\NetworkManagement\V1\FirewallInfo_FirewallRuleType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/TargetType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/TargetType.php deleted file mode 100644 index 86ee1d071659..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/FirewallInfo/TargetType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.networkmanagement.v1.FirewallInfo.TargetType - */ -class TargetType -{ - /** - * Target type is not specified. In this case we treat the rule as applying - * to INSTANCES target type. - * - * Generated from protobuf enum TARGET_TYPE_UNSPECIFIED = 0; - */ - const TARGET_TYPE_UNSPECIFIED = 0; - /** - * Firewall rule applies to instances. - * - * Generated from protobuf enum INSTANCES = 1; - */ - const INSTANCES = 1; - /** - * Firewall rule applies to internal managed load balancers. - * - * Generated from protobuf enum INTERNAL_MANAGED_LB = 2; - */ - const INTERNAL_MANAGED_LB = 2; - - private static $valueToName = [ - self::TARGET_TYPE_UNSPECIFIED => 'TARGET_TYPE_UNSPECIFIED', - self::INSTANCES => 'INSTANCES', - self::INTERNAL_MANAGED_LB => 'INTERNAL_MANAGED_LB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TargetType::class, \Google\Cloud\NetworkManagement\V1\FirewallInfo_TargetType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo.php deleted file mode 100644 index f2c3ac4705a2..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.networkmanagement.v1.ForwardInfo - */ -class ForwardInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Target type where this packet is forwarded to. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo.Target target = 1; - */ - protected $target = 0; - /** - * URI of the resource that the packet is forwarded to. - * - * Generated from protobuf field string resource_uri = 2; - */ - protected $resource_uri = ''; - /** - * IP address of the target (if applicable). - * - * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { - */ - protected $ip_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $target - * Target type where this packet is forwarded to. - * @type string $resource_uri - * URI of the resource that the packet is forwarded to. - * @type string $ip_address - * IP address of the target (if applicable). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Target type where this packet is forwarded to. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo.Target target = 1; - * @return int - */ - public function getTarget() - { - return $this->target; - } - - /** - * Target type where this packet is forwarded to. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo.Target target = 1; - * @param int $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ForwardInfo\Target::class); - $this->target = $var; - - return $this; - } - - /** - * URI of the resource that the packet is forwarded to. - * - * Generated from protobuf field string resource_uri = 2; - * @return string - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * URI of the resource that the packet is forwarded to. - * - * Generated from protobuf field string resource_uri = 2; - * @param string $var - * @return $this - */ - public function setResourceUri($var) - { - GPBUtil::checkString($var, True); - $this->resource_uri = $var; - - return $this; - } - - /** - * IP address of the target (if applicable). - * - * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * IP address of the target (if applicable). - * - * Generated from protobuf field string ip_address = 3 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo/Target.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo/Target.php deleted file mode 100644 index 70d180a82bc4..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardInfo/Target.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.networkmanagement.v1.ForwardInfo.Target - */ -class Target -{ - /** - * Target not specified. - * - * Generated from protobuf enum TARGET_UNSPECIFIED = 0; - */ - const TARGET_UNSPECIFIED = 0; - /** - * Forwarded to a VPC peering network. - * - * Generated from protobuf enum PEERING_VPC = 1; - */ - const PEERING_VPC = 1; - /** - * Forwarded to a Cloud VPN gateway. - * - * Generated from protobuf enum VPN_GATEWAY = 2; - */ - const VPN_GATEWAY = 2; - /** - * Forwarded to a Cloud Interconnect connection. - * - * Generated from protobuf enum INTERCONNECT = 3; - */ - const INTERCONNECT = 3; - /** - * Forwarded to a Google Kubernetes Engine Container cluster master. - * - * Generated from protobuf enum GKE_MASTER = 4 [deprecated = true]; - */ - const GKE_MASTER = 4; - /** - * Forwarded to the next hop of a custom route imported from a peering VPC. - * - * Generated from protobuf enum IMPORTED_CUSTOM_ROUTE_NEXT_HOP = 5; - */ - const IMPORTED_CUSTOM_ROUTE_NEXT_HOP = 5; - /** - * Forwarded to a Cloud SQL instance. - * - * Generated from protobuf enum CLOUD_SQL_INSTANCE = 6 [deprecated = true]; - */ - const CLOUD_SQL_INSTANCE = 6; - /** - * Forwarded to a VPC network in another project. - * - * Generated from protobuf enum ANOTHER_PROJECT = 7; - */ - const ANOTHER_PROJECT = 7; - /** - * Forwarded to an NCC Hub. - * - * Generated from protobuf enum NCC_HUB = 8; - */ - const NCC_HUB = 8; - /** - * Forwarded to a router appliance. - * - * Generated from protobuf enum ROUTER_APPLIANCE = 9; - */ - const ROUTER_APPLIANCE = 9; - /** - * Forwarded to a Secure Web Proxy Gateway. - * - * Generated from protobuf enum SECURE_WEB_PROXY_GATEWAY = 10; - */ - const SECURE_WEB_PROXY_GATEWAY = 10; - - private static $valueToName = [ - self::TARGET_UNSPECIFIED => 'TARGET_UNSPECIFIED', - self::PEERING_VPC => 'PEERING_VPC', - self::VPN_GATEWAY => 'VPN_GATEWAY', - self::INTERCONNECT => 'INTERCONNECT', - self::GKE_MASTER => 'GKE_MASTER', - self::IMPORTED_CUSTOM_ROUTE_NEXT_HOP => 'IMPORTED_CUSTOM_ROUTE_NEXT_HOP', - self::CLOUD_SQL_INSTANCE => 'CLOUD_SQL_INSTANCE', - self::ANOTHER_PROJECT => 'ANOTHER_PROJECT', - self::NCC_HUB => 'NCC_HUB', - self::ROUTER_APPLIANCE => 'ROUTER_APPLIANCE', - self::SECURE_WEB_PROXY_GATEWAY => 'SECURE_WEB_PROXY_GATEWAY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Target::class, \Google\Cloud\NetworkManagement\V1\ForwardInfo_Target::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardingRuleInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardingRuleInfo.php deleted file mode 100644 index 831116bed4ee..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ForwardingRuleInfo.php +++ /dev/null @@ -1,415 +0,0 @@ -google.cloud.networkmanagement.v1.ForwardingRuleInfo - */ -class ForwardingRuleInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the forwarding rule. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of the forwarding rule. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Protocol defined in the forwarding rule that matches the packet. - * - * Generated from protobuf field string matched_protocol = 3; - */ - protected $matched_protocol = ''; - /** - * Port range defined in the forwarding rule that matches the packet. - * - * Generated from protobuf field string matched_port_range = 6; - */ - protected $matched_port_range = ''; - /** - * VIP of the forwarding rule. - * - * Generated from protobuf field string vip = 4; - */ - protected $vip = ''; - /** - * Target type of the forwarding rule. - * - * Generated from protobuf field string target = 5; - */ - protected $target = ''; - /** - * Network URI. - * - * Generated from protobuf field string network_uri = 7; - */ - protected $network_uri = ''; - /** - * Region of the forwarding rule. Set only for regional forwarding rules. - * - * Generated from protobuf field string region = 8; - */ - protected $region = ''; - /** - * Name of the load balancer the forwarding rule belongs to. Empty for - * forwarding rules not related to load balancers (like PSC forwarding rules). - * - * Generated from protobuf field string load_balancer_name = 9; - */ - protected $load_balancer_name = ''; - /** - * URI of the PSC service attachment this forwarding rule targets (if - * applicable). - * - * Generated from protobuf field string psc_service_attachment_uri = 10; - */ - protected $psc_service_attachment_uri = ''; - /** - * PSC Google API target this forwarding rule targets (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 11; - */ - protected $psc_google_api_target = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of the forwarding rule. - * @type string $uri - * URI of the forwarding rule. - * @type string $matched_protocol - * Protocol defined in the forwarding rule that matches the packet. - * @type string $matched_port_range - * Port range defined in the forwarding rule that matches the packet. - * @type string $vip - * VIP of the forwarding rule. - * @type string $target - * Target type of the forwarding rule. - * @type string $network_uri - * Network URI. - * @type string $region - * Region of the forwarding rule. Set only for regional forwarding rules. - * @type string $load_balancer_name - * Name of the load balancer the forwarding rule belongs to. Empty for - * forwarding rules not related to load balancers (like PSC forwarding rules). - * @type string $psc_service_attachment_uri - * URI of the PSC service attachment this forwarding rule targets (if - * applicable). - * @type string $psc_google_api_target - * PSC Google API target this forwarding rule targets (if applicable). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of the forwarding rule. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of the forwarding rule. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of the forwarding rule. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of the forwarding rule. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Protocol defined in the forwarding rule that matches the packet. - * - * Generated from protobuf field string matched_protocol = 3; - * @return string - */ - public function getMatchedProtocol() - { - return $this->matched_protocol; - } - - /** - * Protocol defined in the forwarding rule that matches the packet. - * - * Generated from protobuf field string matched_protocol = 3; - * @param string $var - * @return $this - */ - public function setMatchedProtocol($var) - { - GPBUtil::checkString($var, True); - $this->matched_protocol = $var; - - return $this; - } - - /** - * Port range defined in the forwarding rule that matches the packet. - * - * Generated from protobuf field string matched_port_range = 6; - * @return string - */ - public function getMatchedPortRange() - { - return $this->matched_port_range; - } - - /** - * Port range defined in the forwarding rule that matches the packet. - * - * Generated from protobuf field string matched_port_range = 6; - * @param string $var - * @return $this - */ - public function setMatchedPortRange($var) - { - GPBUtil::checkString($var, True); - $this->matched_port_range = $var; - - return $this; - } - - /** - * VIP of the forwarding rule. - * - * Generated from protobuf field string vip = 4; - * @return string - */ - public function getVip() - { - return $this->vip; - } - - /** - * VIP of the forwarding rule. - * - * Generated from protobuf field string vip = 4; - * @param string $var - * @return $this - */ - public function setVip($var) - { - GPBUtil::checkString($var, True); - $this->vip = $var; - - return $this; - } - - /** - * Target type of the forwarding rule. - * - * Generated from protobuf field string target = 5; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Target type of the forwarding rule. - * - * Generated from protobuf field string target = 5; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Network URI. - * - * Generated from protobuf field string network_uri = 7; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * Network URI. - * - * Generated from protobuf field string network_uri = 7; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * Region of the forwarding rule. Set only for regional forwarding rules. - * - * Generated from protobuf field string region = 8; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region of the forwarding rule. Set only for regional forwarding rules. - * - * Generated from protobuf field string region = 8; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * Name of the load balancer the forwarding rule belongs to. Empty for - * forwarding rules not related to load balancers (like PSC forwarding rules). - * - * Generated from protobuf field string load_balancer_name = 9; - * @return string - */ - public function getLoadBalancerName() - { - return $this->load_balancer_name; - } - - /** - * Name of the load balancer the forwarding rule belongs to. Empty for - * forwarding rules not related to load balancers (like PSC forwarding rules). - * - * Generated from protobuf field string load_balancer_name = 9; - * @param string $var - * @return $this - */ - public function setLoadBalancerName($var) - { - GPBUtil::checkString($var, True); - $this->load_balancer_name = $var; - - return $this; - } - - /** - * URI of the PSC service attachment this forwarding rule targets (if - * applicable). - * - * Generated from protobuf field string psc_service_attachment_uri = 10; - * @return string - */ - public function getPscServiceAttachmentUri() - { - return $this->psc_service_attachment_uri; - } - - /** - * URI of the PSC service attachment this forwarding rule targets (if - * applicable). - * - * Generated from protobuf field string psc_service_attachment_uri = 10; - * @param string $var - * @return $this - */ - public function setPscServiceAttachmentUri($var) - { - GPBUtil::checkString($var, True); - $this->psc_service_attachment_uri = $var; - - return $this; - } - - /** - * PSC Google API target this forwarding rule targets (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 11; - * @return string - */ - public function getPscGoogleApiTarget() - { - return $this->psc_google_api_target; - } - - /** - * PSC Google API target this forwarding rule targets (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 11; - * @param string $var - * @return $this - */ - public function setPscGoogleApiTarget($var) - { - GPBUtil::checkString($var, True); - $this->psc_google_api_target = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GKEMasterInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GKEMasterInfo.php deleted file mode 100644 index d3b1ea0afb97..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GKEMasterInfo.php +++ /dev/null @@ -1,204 +0,0 @@ -google.cloud.networkmanagement.v1.GKEMasterInfo - */ -class GKEMasterInfo extends \Google\Protobuf\Internal\Message -{ - /** - * URI of a GKE cluster. - * - * Generated from protobuf field string cluster_uri = 2; - */ - protected $cluster_uri = ''; - /** - * URI of a GKE cluster network. - * - * Generated from protobuf field string cluster_network_uri = 4; - */ - protected $cluster_network_uri = ''; - /** - * Internal IP address of a GKE cluster control plane. - * - * Generated from protobuf field string internal_ip = 5; - */ - protected $internal_ip = ''; - /** - * External IP address of a GKE cluster control plane. - * - * Generated from protobuf field string external_ip = 6; - */ - protected $external_ip = ''; - /** - * DNS endpoint of a GKE cluster control plane. - * - * Generated from protobuf field string dns_endpoint = 7; - */ - protected $dns_endpoint = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cluster_uri - * URI of a GKE cluster. - * @type string $cluster_network_uri - * URI of a GKE cluster network. - * @type string $internal_ip - * Internal IP address of a GKE cluster control plane. - * @type string $external_ip - * External IP address of a GKE cluster control plane. - * @type string $dns_endpoint - * DNS endpoint of a GKE cluster control plane. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * URI of a GKE cluster. - * - * Generated from protobuf field string cluster_uri = 2; - * @return string - */ - public function getClusterUri() - { - return $this->cluster_uri; - } - - /** - * URI of a GKE cluster. - * - * Generated from protobuf field string cluster_uri = 2; - * @param string $var - * @return $this - */ - public function setClusterUri($var) - { - GPBUtil::checkString($var, True); - $this->cluster_uri = $var; - - return $this; - } - - /** - * URI of a GKE cluster network. - * - * Generated from protobuf field string cluster_network_uri = 4; - * @return string - */ - public function getClusterNetworkUri() - { - return $this->cluster_network_uri; - } - - /** - * URI of a GKE cluster network. - * - * Generated from protobuf field string cluster_network_uri = 4; - * @param string $var - * @return $this - */ - public function setClusterNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->cluster_network_uri = $var; - - return $this; - } - - /** - * Internal IP address of a GKE cluster control plane. - * - * Generated from protobuf field string internal_ip = 5; - * @return string - */ - public function getInternalIp() - { - return $this->internal_ip; - } - - /** - * Internal IP address of a GKE cluster control plane. - * - * Generated from protobuf field string internal_ip = 5; - * @param string $var - * @return $this - */ - public function setInternalIp($var) - { - GPBUtil::checkString($var, True); - $this->internal_ip = $var; - - return $this; - } - - /** - * External IP address of a GKE cluster control plane. - * - * Generated from protobuf field string external_ip = 6; - * @return string - */ - public function getExternalIp() - { - return $this->external_ip; - } - - /** - * External IP address of a GKE cluster control plane. - * - * Generated from protobuf field string external_ip = 6; - * @param string $var - * @return $this - */ - public function setExternalIp($var) - { - GPBUtil::checkString($var, True); - $this->external_ip = $var; - - return $this; - } - - /** - * DNS endpoint of a GKE cluster control plane. - * - * Generated from protobuf field string dns_endpoint = 7; - * @return string - */ - public function getDnsEndpoint() - { - return $this->dns_endpoint; - } - - /** - * DNS endpoint of a GKE cluster control plane. - * - * Generated from protobuf field string dns_endpoint = 7; - * @param string $var - * @return $this - */ - public function setDnsEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->dns_endpoint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetConnectivityTestRequest.php deleted file mode 100644 index dcd27f465a8a..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetConnectivityTestRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.networkmanagement.v1.GetConnectivityTestRequest - */ -class GetConnectivityTestRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. `ConnectivityTest` resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. `ConnectivityTest` resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * Please see {@see ReachabilityServiceClient::connectivityTestName()} for help formatting this field. - * - * @return \Google\Cloud\NetworkManagement\V1\GetConnectivityTestRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. `ConnectivityTest` resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); - parent::__construct($data); - } - - /** - * Required. `ConnectivityTest` resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. `ConnectivityTest` resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetVpcFlowLogsConfigRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetVpcFlowLogsConfigRequest.php deleted file mode 100644 index e2b84a50f05c..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GetVpcFlowLogsConfigRequest.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest - */ -class GetVpcFlowLogsConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - For project-level resources: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - * - For project-level resources: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * - For organization-level resources: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * Please see {@see VpcFlowLogsServiceClient::vpcFlowLogsConfigName()} for help formatting this field. - * - * @return \Google\Cloud\NetworkManagement\V1\GetVpcFlowLogsConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - For project-level resources: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - For project-level resources: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the VpcFlowLogsConfig, - * in one of the following formats: - * - For project-level resources: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo.php deleted file mode 100644 index d402ca6ee52f..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.networkmanagement.v1.GoogleServiceInfo - */ -class GoogleServiceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Source IP address. - * - * Generated from protobuf field string source_ip = 1; - */ - protected $source_ip = ''; - /** - * Recognized type of a Google Service. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2; - */ - protected $google_service_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_ip - * Source IP address. - * @type int $google_service_type - * Recognized type of a Google Service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Source IP address. - * - * Generated from protobuf field string source_ip = 1; - * @return string - */ - public function getSourceIp() - { - return $this->source_ip; - } - - /** - * Source IP address. - * - * Generated from protobuf field string source_ip = 1; - * @param string $var - * @return $this - */ - public function setSourceIp($var) - { - GPBUtil::checkString($var, True); - $this->source_ip = $var; - - return $this; - } - - /** - * Recognized type of a Google Service. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2; - * @return int - */ - public function getGoogleServiceType() - { - return $this->google_service_type; - } - - /** - * Recognized type of a Google Service. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2; - * @param int $var - * @return $this - */ - public function setGoogleServiceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo\GoogleServiceType::class); - $this->google_service_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo/GoogleServiceType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo/GoogleServiceType.php deleted file mode 100644 index d763b57d9de6..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/GoogleServiceInfo/GoogleServiceType.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType - */ -class GoogleServiceType -{ - /** - * Unspecified Google Service. - * - * Generated from protobuf enum GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; - */ - const GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; - /** - * Identity aware proxy. - * https://cloud.google.com/iap/docs/using-tcp-forwarding - * - * Generated from protobuf enum IAP = 1; - */ - const IAP = 1; - /** - * One of two services sharing IP ranges: - * * Load Balancer proxy - * * Centralized Health Check prober - * https://cloud.google.com/load-balancing/docs/firewall-rules - * - * Generated from protobuf enum GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; - */ - const GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; - /** - * Connectivity from Cloud DNS to forwarding targets or alternate name - * servers that use private routing. - * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules - * https://cloud.google.com/dns/docs/policies#firewall-rules - * - * Generated from protobuf enum CLOUD_DNS = 3; - */ - const CLOUD_DNS = 3; - /** - * private.googleapis.com and restricted.googleapis.com - * - * Generated from protobuf enum GOOGLE_API = 4; - */ - const GOOGLE_API = 4; - /** - * Google API via Private Service Connect. - * https://cloud.google.com/vpc/docs/configure-private-service-connect-apis - * - * Generated from protobuf enum GOOGLE_API_PSC = 5; - */ - const GOOGLE_API_PSC = 5; - /** - * Google API via VPC Service Controls. - * https://cloud.google.com/vpc/docs/configure-private-service-connect-apis - * - * Generated from protobuf enum GOOGLE_API_VPC_SC = 6; - */ - const GOOGLE_API_VPC_SC = 6; - /** - * Google API via Serverless VPC Access. - * https://cloud.google.com/vpc/docs/serverless-vpc-access - * - * Generated from protobuf enum SERVERLESS_VPC_ACCESS = 7; - */ - const SERVERLESS_VPC_ACCESS = 7; - - private static $valueToName = [ - self::GOOGLE_SERVICE_TYPE_UNSPECIFIED => 'GOOGLE_SERVICE_TYPE_UNSPECIFIED', - self::IAP => 'IAP', - self::GFE_PROXY_OR_HEALTH_CHECK_PROBER => 'GFE_PROXY_OR_HEALTH_CHECK_PROBER', - self::CLOUD_DNS => 'CLOUD_DNS', - self::GOOGLE_API => 'GOOGLE_API', - self::GOOGLE_API_PSC => 'GOOGLE_API_PSC', - self::GOOGLE_API_VPC_SC => 'GOOGLE_API_VPC_SC', - self::SERVERLESS_VPC_ACCESS => 'SERVERLESS_VPC_ACCESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GoogleServiceType::class, \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo_GoogleServiceType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/HybridSubnetInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/HybridSubnetInfo.php deleted file mode 100644 index 67b6ba82c1ed..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/HybridSubnetInfo.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.networkmanagement.v1.HybridSubnetInfo - */ -class HybridSubnetInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a hybrid subnet. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a hybrid subnet. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Name of a Google Cloud region where the hybrid subnet is configured. - * - * Generated from protobuf field string region = 3; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a hybrid subnet. - * @type string $uri - * URI of a hybrid subnet. - * @type string $region - * Name of a Google Cloud region where the hybrid subnet is configured. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a hybrid subnet. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a hybrid subnet. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a hybrid subnet. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a hybrid subnet. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Name of a Google Cloud region where the hybrid subnet is configured. - * - * Generated from protobuf field string region = 3; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Name of a Google Cloud region where the hybrid subnet is configured. - * - * Generated from protobuf field string region = 3; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo.php deleted file mode 100644 index 240bea839b67..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo.php +++ /dev/null @@ -1,425 +0,0 @@ -google.cloud.networkmanagement.v1.InstanceInfo - */ -class InstanceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a Compute Engine instance. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a Compute Engine instance. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Name of the network interface of a Compute Engine instance. - * - * Generated from protobuf field string interface = 3; - */ - protected $interface = ''; - /** - * URI of a Compute Engine network. - * - * Generated from protobuf field string network_uri = 4; - */ - protected $network_uri = ''; - /** - * Internal IP address of the network interface. - * - * Generated from protobuf field string internal_ip = 5; - */ - protected $internal_ip = ''; - /** - * External IP address of the network interface. - * - * Generated from protobuf field string external_ip = 6; - */ - protected $external_ip = ''; - /** - * Network tags configured on the instance. - * - * Generated from protobuf field repeated string network_tags = 7; - */ - private $network_tags; - /** - * Service account authorized for the instance. - * - * Generated from protobuf field string service_account = 8 [deprecated = true]; - * @deprecated - */ - protected $service_account = ''; - /** - * URI of the PSC network attachment the NIC is attached to (if relevant). - * - * Generated from protobuf field string psc_network_attachment_uri = 9; - */ - protected $psc_network_attachment_uri = ''; - /** - * Indicates whether the Compute Engine instance is running. - * Deprecated: use the `status` field instead. - * - * Generated from protobuf field bool running = 10 [deprecated = true]; - * @deprecated - */ - protected $running = false; - /** - * The status of the instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a Compute Engine instance. - * @type string $uri - * URI of a Compute Engine instance. - * @type string $interface - * Name of the network interface of a Compute Engine instance. - * @type string $network_uri - * URI of a Compute Engine network. - * @type string $internal_ip - * Internal IP address of the network interface. - * @type string $external_ip - * External IP address of the network interface. - * @type array|\Google\Protobuf\Internal\RepeatedField $network_tags - * Network tags configured on the instance. - * @type string $service_account - * Service account authorized for the instance. - * @type string $psc_network_attachment_uri - * URI of the PSC network attachment the NIC is attached to (if relevant). - * @type bool $running - * Indicates whether the Compute Engine instance is running. - * Deprecated: use the `status` field instead. - * @type int $status - * The status of the instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a Compute Engine instance. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a Compute Engine instance. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a Compute Engine instance. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a Compute Engine instance. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Name of the network interface of a Compute Engine instance. - * - * Generated from protobuf field string interface = 3; - * @return string - */ - public function getInterface() - { - return $this->interface; - } - - /** - * Name of the network interface of a Compute Engine instance. - * - * Generated from protobuf field string interface = 3; - * @param string $var - * @return $this - */ - public function setInterface($var) - { - GPBUtil::checkString($var, True); - $this->interface = $var; - - return $this; - } - - /** - * URI of a Compute Engine network. - * - * Generated from protobuf field string network_uri = 4; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of a Compute Engine network. - * - * Generated from protobuf field string network_uri = 4; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * Internal IP address of the network interface. - * - * Generated from protobuf field string internal_ip = 5; - * @return string - */ - public function getInternalIp() - { - return $this->internal_ip; - } - - /** - * Internal IP address of the network interface. - * - * Generated from protobuf field string internal_ip = 5; - * @param string $var - * @return $this - */ - public function setInternalIp($var) - { - GPBUtil::checkString($var, True); - $this->internal_ip = $var; - - return $this; - } - - /** - * External IP address of the network interface. - * - * Generated from protobuf field string external_ip = 6; - * @return string - */ - public function getExternalIp() - { - return $this->external_ip; - } - - /** - * External IP address of the network interface. - * - * Generated from protobuf field string external_ip = 6; - * @param string $var - * @return $this - */ - public function setExternalIp($var) - { - GPBUtil::checkString($var, True); - $this->external_ip = $var; - - return $this; - } - - /** - * Network tags configured on the instance. - * - * Generated from protobuf field repeated string network_tags = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNetworkTags() - { - return $this->network_tags; - } - - /** - * Network tags configured on the instance. - * - * Generated from protobuf field repeated string network_tags = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNetworkTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->network_tags = $arr; - - return $this; - } - - /** - * Service account authorized for the instance. - * - * Generated from protobuf field string service_account = 8 [deprecated = true]; - * @return string - * @deprecated - */ - public function getServiceAccount() - { - if ($this->service_account !== '') { - @trigger_error('service_account is deprecated.', E_USER_DEPRECATED); - } - return $this->service_account; - } - - /** - * Service account authorized for the instance. - * - * Generated from protobuf field string service_account = 8 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setServiceAccount($var) - { - @trigger_error('service_account is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * URI of the PSC network attachment the NIC is attached to (if relevant). - * - * Generated from protobuf field string psc_network_attachment_uri = 9; - * @return string - */ - public function getPscNetworkAttachmentUri() - { - return $this->psc_network_attachment_uri; - } - - /** - * URI of the PSC network attachment the NIC is attached to (if relevant). - * - * Generated from protobuf field string psc_network_attachment_uri = 9; - * @param string $var - * @return $this - */ - public function setPscNetworkAttachmentUri($var) - { - GPBUtil::checkString($var, True); - $this->psc_network_attachment_uri = $var; - - return $this; - } - - /** - * Indicates whether the Compute Engine instance is running. - * Deprecated: use the `status` field instead. - * - * Generated from protobuf field bool running = 10 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getRunning() - { - if ($this->running !== false) { - @trigger_error('running is deprecated.', E_USER_DEPRECATED); - } - return $this->running; - } - - /** - * Indicates whether the Compute Engine instance is running. - * Deprecated: use the `status` field instead. - * - * Generated from protobuf field bool running = 10 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setRunning($var) - { - @trigger_error('running is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->running = $var; - - return $this; - } - - /** - * The status of the instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * The status of the instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\InstanceInfo\Status::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo/Status.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo/Status.php deleted file mode 100644 index 5580526238e3..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InstanceInfo/Status.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.networkmanagement.v1.InstanceInfo.Status - */ -class Status -{ - /** - * Default unspecified value. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The instance is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The instance has any status other than "RUNNING". - * - * Generated from protobuf enum NOT_RUNNING = 2; - */ - const NOT_RUNNING = 2; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::NOT_RUNNING => 'NOT_RUNNING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\NetworkManagement\V1\InstanceInfo_Status::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo.php deleted file mode 100644 index cc092b90aae1..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo.php +++ /dev/null @@ -1,279 +0,0 @@ -google.cloud.networkmanagement.v1.InterconnectAttachmentInfo - */ -class InterconnectAttachmentInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of an Interconnect attachment. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of an Interconnect attachment. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * URI of the Interconnect where the Interconnect attachment is - * configured. - * - * Generated from protobuf field string interconnect_uri = 3; - */ - protected $interconnect_uri = ''; - /** - * Name of a Google Cloud region where the Interconnect attachment is - * configured. - * - * Generated from protobuf field string region = 4; - */ - protected $region = ''; - /** - * URI of the Cloud Router to be used for dynamic routing. - * - * Generated from protobuf field string cloud_router_uri = 5; - */ - protected $cloud_router_uri = ''; - /** - * The type of interconnect attachment this is. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; - */ - protected $type = 0; - /** - * Appliance IP address that was matched for L2_DEDICATED attachments. - * - * Generated from protobuf field string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { - */ - protected $l2_attachment_matched_ip_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of an Interconnect attachment. - * @type string $uri - * URI of an Interconnect attachment. - * @type string $interconnect_uri - * URI of the Interconnect where the Interconnect attachment is - * configured. - * @type string $region - * Name of a Google Cloud region where the Interconnect attachment is - * configured. - * @type string $cloud_router_uri - * URI of the Cloud Router to be used for dynamic routing. - * @type int $type - * The type of interconnect attachment this is. - * @type string $l2_attachment_matched_ip_address - * Appliance IP address that was matched for L2_DEDICATED attachments. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of an Interconnect attachment. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of an Interconnect attachment. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of an Interconnect attachment. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of an Interconnect attachment. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * URI of the Interconnect where the Interconnect attachment is - * configured. - * - * Generated from protobuf field string interconnect_uri = 3; - * @return string - */ - public function getInterconnectUri() - { - return $this->interconnect_uri; - } - - /** - * URI of the Interconnect where the Interconnect attachment is - * configured. - * - * Generated from protobuf field string interconnect_uri = 3; - * @param string $var - * @return $this - */ - public function setInterconnectUri($var) - { - GPBUtil::checkString($var, True); - $this->interconnect_uri = $var; - - return $this; - } - - /** - * Name of a Google Cloud region where the Interconnect attachment is - * configured. - * - * Generated from protobuf field string region = 4; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Name of a Google Cloud region where the Interconnect attachment is - * configured. - * - * Generated from protobuf field string region = 4; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * URI of the Cloud Router to be used for dynamic routing. - * - * Generated from protobuf field string cloud_router_uri = 5; - * @return string - */ - public function getCloudRouterUri() - { - return $this->cloud_router_uri; - } - - /** - * URI of the Cloud Router to be used for dynamic routing. - * - * Generated from protobuf field string cloud_router_uri = 5; - * @param string $var - * @return $this - */ - public function setCloudRouterUri($var) - { - GPBUtil::checkString($var, True); - $this->cloud_router_uri = $var; - - return $this; - } - - /** - * The type of interconnect attachment this is. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of interconnect attachment this is. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Appliance IP address that was matched for L2_DEDICATED attachments. - * - * Generated from protobuf field string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { - * @return string - */ - public function getL2AttachmentMatchedIpAddress() - { - return $this->l2_attachment_matched_ip_address; - } - - /** - * Appliance IP address that was matched for L2_DEDICATED attachments. - * - * Generated from protobuf field string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setL2AttachmentMatchedIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->l2_attachment_matched_ip_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo/Type.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo/Type.php deleted file mode 100644 index f1302fae8cdb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/InterconnectAttachmentInfo/Type.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type - */ -class Type -{ - /** - * Unspecified type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Attachment to a dedicated interconnect. - * - * Generated from protobuf enum DEDICATED = 1; - */ - const DEDICATED = 1; - /** - * Attachment to a partner interconnect, created by the customer. - * - * Generated from protobuf enum PARTNER = 2; - */ - const PARTNER = 2; - /** - * Attachment to a partner interconnect, created by the partner. - * - * Generated from protobuf enum PARTNER_PROVIDER = 3; - */ - const PARTNER_PROVIDER = 3; - /** - * Attachment to a L2 interconnect, created by the customer. - * - * Generated from protobuf enum L2_DEDICATED = 4; - */ - const L2_DEDICATED = 4; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::DEDICATED => 'DEDICATED', - self::PARTNER => 'PARTNER', - self::PARTNER_PROVIDER => 'PARTNER_PROVIDER', - self::L2_DEDICATED => 'L2_DEDICATED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo_Type::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyDistribution.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyDistribution.php deleted file mode 100644 index 0c62df4ba113..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyDistribution.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.networkmanagement.v1.LatencyDistribution - */ -class LatencyDistribution extends \Google\Protobuf\Internal\Message -{ - /** - * Representative latency percentiles. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1; - */ - private $latency_percentiles; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\NetworkManagement\V1\LatencyPercentile>|\Google\Protobuf\Internal\RepeatedField $latency_percentiles - * Representative latency percentiles. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * Representative latency percentiles. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLatencyPercentiles() - { - return $this->latency_percentiles; - } - - /** - * Representative latency percentiles. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LatencyPercentile latency_percentiles = 1; - * @param array<\Google\Cloud\NetworkManagement\V1\LatencyPercentile>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLatencyPercentiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\LatencyPercentile::class); - $this->latency_percentiles = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyPercentile.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyPercentile.php deleted file mode 100644 index 850e7f81bad8..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LatencyPercentile.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.networkmanagement.v1.LatencyPercentile - */ -class LatencyPercentile extends \Google\Protobuf\Internal\Message -{ - /** - * Percentage of samples this data point applies to. - * - * Generated from protobuf field int32 percent = 1; - */ - protected $percent = 0; - /** - * percent-th percentile of latency observed, in microseconds. - * Fraction of percent/100 of samples have latency lower or - * equal to the value of this field. - * - * Generated from protobuf field int64 latency_micros = 2; - */ - protected $latency_micros = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $percent - * Percentage of samples this data point applies to. - * @type int|string $latency_micros - * percent-th percentile of latency observed, in microseconds. - * Fraction of percent/100 of samples have latency lower or - * equal to the value of this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * Percentage of samples this data point applies to. - * - * Generated from protobuf field int32 percent = 1; - * @return int - */ - public function getPercent() - { - return $this->percent; - } - - /** - * Percentage of samples this data point applies to. - * - * Generated from protobuf field int32 percent = 1; - * @param int $var - * @return $this - */ - public function setPercent($var) - { - GPBUtil::checkInt32($var); - $this->percent = $var; - - return $this; - } - - /** - * percent-th percentile of latency observed, in microseconds. - * Fraction of percent/100 of samples have latency lower or - * equal to the value of this field. - * - * Generated from protobuf field int64 latency_micros = 2; - * @return int|string - */ - public function getLatencyMicros() - { - return $this->latency_micros; - } - - /** - * percent-th percentile of latency observed, in microseconds. - * Fraction of percent/100 of samples have latency lower or - * equal to the value of this field. - * - * Generated from protobuf field int64 latency_micros = 2; - * @param int|string $var - * @return $this - */ - public function setLatencyMicros($var) - { - GPBUtil::checkInt64($var); - $this->latency_micros = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsRequest.php deleted file mode 100644 index 60845fff13b3..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsRequest.php +++ /dev/null @@ -1,282 +0,0 @@ -google.cloud.networkmanagement.v1.ListConnectivityTestsRequest - */ -class ListConnectivityTestsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the Connectivity Tests: - * `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Number of `ConnectivityTests` to return. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token from an earlier query, as returned in `next_page_token`. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Lists the `ConnectivityTests` that match the filter expression. A filter - * expression filters the resources listed in the response. The expression - * must be of the form ` ` where operators: `<`, `>`, - * `<=`, - * `>=`, - * `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is - * roughly synonymous with equality). can refer to a proto or JSON - * field, or a synthetic field. Field names can be camelCase or snake_case. - * Examples: - * - Filter by name: - * name = "projects/proj-1/locations/global/connectivityTests/test-1 - * - Filter by labels: - * - Resources that have a key called `foo` - * labels.foo:* - * - Resources that have a key called `foo` whose value is `bar` - * labels.foo = bar - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Field to use to sort the list. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent resource of the Connectivity Tests: - * `projects/{project_id}/locations/global` - * Please see {@see ReachabilityServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\NetworkManagement\V1\ListConnectivityTestsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the Connectivity Tests: - * `projects/{project_id}/locations/global` - * @type int $page_size - * Number of `ConnectivityTests` to return. - * @type string $page_token - * Page token from an earlier query, as returned in `next_page_token`. - * @type string $filter - * Lists the `ConnectivityTests` that match the filter expression. A filter - * expression filters the resources listed in the response. The expression - * must be of the form ` ` where operators: `<`, `>`, - * `<=`, - * `>=`, - * `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is - * roughly synonymous with equality). can refer to a proto or JSON - * field, or a synthetic field. Field names can be camelCase or snake_case. - * Examples: - * - Filter by name: - * name = "projects/proj-1/locations/global/connectivityTests/test-1 - * - Filter by labels: - * - Resources that have a key called `foo` - * labels.foo:* - * - Resources that have a key called `foo` whose value is `bar` - * labels.foo = bar - * @type string $order_by - * Field to use to sort the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the Connectivity Tests: - * `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource of the Connectivity Tests: - * `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Number of `ConnectivityTests` to return. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of `ConnectivityTests` to return. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Page token from an earlier query, as returned in `next_page_token`. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token from an earlier query, as returned in `next_page_token`. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Lists the `ConnectivityTests` that match the filter expression. A filter - * expression filters the resources listed in the response. The expression - * must be of the form ` ` where operators: `<`, `>`, - * `<=`, - * `>=`, - * `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is - * roughly synonymous with equality). can refer to a proto or JSON - * field, or a synthetic field. Field names can be camelCase or snake_case. - * Examples: - * - Filter by name: - * name = "projects/proj-1/locations/global/connectivityTests/test-1 - * - Filter by labels: - * - Resources that have a key called `foo` - * labels.foo:* - * - Resources that have a key called `foo` whose value is `bar` - * labels.foo = bar - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Lists the `ConnectivityTests` that match the filter expression. A filter - * expression filters the resources listed in the response. The expression - * must be of the form ` ` where operators: `<`, `>`, - * `<=`, - * `>=`, - * `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is - * roughly synonymous with equality). can refer to a proto or JSON - * field, or a synthetic field. Field names can be camelCase or snake_case. - * Examples: - * - Filter by name: - * name = "projects/proj-1/locations/global/connectivityTests/test-1 - * - Filter by labels: - * - Resources that have a key called `foo` - * labels.foo:* - * - Resources that have a key called `foo` whose value is `bar` - * labels.foo = bar - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Field to use to sort the list. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Field to use to sort the list. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsResponse.php deleted file mode 100644 index c026cd03326a..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListConnectivityTestsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.networkmanagement.v1.ListConnectivityTestsResponse - */ -class ListConnectivityTestsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Connectivity Tests. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1; - */ - private $resources; - /** - * Page token to fetch the next set of Connectivity Tests. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\NetworkManagement\V1\ConnectivityTest>|\Google\Protobuf\Internal\RepeatedField $resources - * List of Connectivity Tests. - * @type string $next_page_token - * Page token to fetch the next set of Connectivity Tests. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached (when querying all locations with `-`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); - parent::__construct($data); - } - - /** - * List of Connectivity Tests. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * List of Connectivity Tests. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1; - * @param array<\Google\Cloud\NetworkManagement\V1\ConnectivityTest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\ConnectivityTest::class); - $this->resources = $arr; - - return $this; - } - - /** - * Page token to fetch the next set of Connectivity Tests. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Page token to fetch the next set of Connectivity Tests. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsRequest.php deleted file mode 100644 index 34a42ff012ba..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsRequest.php +++ /dev/null @@ -1,251 +0,0 @@ -google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest - */ -class ListVpcFlowLogsConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the VpcFlowLogsConfig, - * in one of the following formats: - * - For project-level resources: `projects/{project_id}/locations/global` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Number of `VpcFlowLogsConfigs` to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. - * A filter expression must use the supported [CEL logic operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Field to use to sort the list. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent resource of the VpcFlowLogsConfig, - * in one of the following formats: - * - * - For project-level resources: `projects/{project_id}/locations/global` - * - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * Please see {@see VpcFlowLogsServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\NetworkManagement\V1\ListVpcFlowLogsConfigsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the VpcFlowLogsConfig, - * in one of the following formats: - * - For project-level resources: `projects/{project_id}/locations/global` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * @type int $page_size - * Optional. Number of `VpcFlowLogsConfigs` to return. - * @type string $page_token - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * @type string $filter - * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. - * A filter expression must use the supported [CEL logic operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * @type string $order_by - * Optional. Field to use to sort the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the VpcFlowLogsConfig, - * in one of the following formats: - * - For project-level resources: `projects/{project_id}/locations/global` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource of the VpcFlowLogsConfig, - * in one of the following formats: - * - For project-level resources: `projects/{project_id}/locations/global` - * - For organization-level resources: - * `organizations/{organization_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Number of `VpcFlowLogsConfigs` to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of `VpcFlowLogsConfigs` to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. - * A filter expression must use the supported [CEL logic operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. - * A filter expression must use the supported [CEL logic operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Field to use to sort the list. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Field to use to sort the list. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsResponse.php deleted file mode 100644 index 967bb885bc1c..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ListVpcFlowLogsConfigsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse - */ -class ListVpcFlowLogsConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of VPC Flow Log configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; - */ - private $vpc_flow_logs_configs; - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $vpc_flow_logs_configs - * List of VPC Flow Log configurations. - * @type string $next_page_token - * Page token to fetch the next set of configurations. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached (when querying all locations with `-`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * List of VPC Flow Log configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVpcFlowLogsConfigs() - { - return $this->vpc_flow_logs_configs; - } - - /** - * List of VPC Flow Log configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; - * @param array<\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVpcFlowLogsConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig::class); - $this->vpc_flow_logs_configs = $arr; - - return $this; - } - - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend.php deleted file mode 100644 index b4b0114164fb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.networkmanagement.v1.LoadBalancerBackend - */ -class LoadBalancerBackend extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a Compute Engine instance or network endpoint. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a Compute Engine instance or network endpoint. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * State of the health check firewall configuration. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3; - */ - protected $health_check_firewall_state = 0; - /** - * A list of firewall rule URIs allowing probes from health check IP ranges. - * - * Generated from protobuf field repeated string health_check_allowing_firewall_rules = 4; - */ - private $health_check_allowing_firewall_rules; - /** - * A list of firewall rule URIs blocking probes from health check IP ranges. - * - * Generated from protobuf field repeated string health_check_blocking_firewall_rules = 5; - */ - private $health_check_blocking_firewall_rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a Compute Engine instance or network endpoint. - * @type string $uri - * URI of a Compute Engine instance or network endpoint. - * @type int $health_check_firewall_state - * State of the health check firewall configuration. - * @type array|\Google\Protobuf\Internal\RepeatedField $health_check_allowing_firewall_rules - * A list of firewall rule URIs allowing probes from health check IP ranges. - * @type array|\Google\Protobuf\Internal\RepeatedField $health_check_blocking_firewall_rules - * A list of firewall rule URIs blocking probes from health check IP ranges. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a Compute Engine instance or network endpoint. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a Compute Engine instance or network endpoint. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a Compute Engine instance or network endpoint. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a Compute Engine instance or network endpoint. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * State of the health check firewall configuration. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3; - * @return int - */ - public function getHealthCheckFirewallState() - { - return $this->health_check_firewall_state; - } - - /** - * State of the health check firewall configuration. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3; - * @param int $var - * @return $this - */ - public function setHealthCheckFirewallState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackend\HealthCheckFirewallState::class); - $this->health_check_firewall_state = $var; - - return $this; - } - - /** - * A list of firewall rule URIs allowing probes from health check IP ranges. - * - * Generated from protobuf field repeated string health_check_allowing_firewall_rules = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHealthCheckAllowingFirewallRules() - { - return $this->health_check_allowing_firewall_rules; - } - - /** - * A list of firewall rule URIs allowing probes from health check IP ranges. - * - * Generated from protobuf field repeated string health_check_allowing_firewall_rules = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHealthCheckAllowingFirewallRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->health_check_allowing_firewall_rules = $arr; - - return $this; - } - - /** - * A list of firewall rule URIs blocking probes from health check IP ranges. - * - * Generated from protobuf field repeated string health_check_blocking_firewall_rules = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHealthCheckBlockingFirewallRules() - { - return $this->health_check_blocking_firewall_rules; - } - - /** - * A list of firewall rule URIs blocking probes from health check IP ranges. - * - * Generated from protobuf field repeated string health_check_blocking_firewall_rules = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHealthCheckBlockingFirewallRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->health_check_blocking_firewall_rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend/HealthCheckFirewallState.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend/HealthCheckFirewallState.php deleted file mode 100644 index ebf941b4b52e..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackend/HealthCheckFirewallState.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState - */ -class HealthCheckFirewallState -{ - /** - * State is unspecified. Default state if not populated. - * - * Generated from protobuf enum HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED = 0; - */ - const HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED = 0; - /** - * There are configured firewall rules to allow health check probes to the - * backend. - * - * Generated from protobuf enum CONFIGURED = 1; - */ - const CONFIGURED = 1; - /** - * There are firewall rules configured to allow partial health check ranges - * or block all health check ranges. - * If a health check probe is sent from denied IP ranges, - * the health check to the backend will fail. Then, the backend will be - * marked unhealthy and will not receive traffic sent to the load balancer. - * - * Generated from protobuf enum MISCONFIGURED = 2; - */ - const MISCONFIGURED = 2; - - private static $valueToName = [ - self::HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED => 'HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED', - self::CONFIGURED => 'CONFIGURED', - self::MISCONFIGURED => 'MISCONFIGURED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HealthCheckFirewallState::class, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackend_HealthCheckFirewallState::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo.php deleted file mode 100644 index 0fb0d2efa27b..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo.php +++ /dev/null @@ -1,409 +0,0 @@ -google.cloud.networkmanagement.v1.LoadBalancerBackendInfo - */ -class LoadBalancerBackendInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Display name of the backend. For example, it might be an instance name for - * the instance group backends, or an IP address and port for zonal network - * endpoint group backends. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * URI of the backend instance (if applicable). Populated for instance group - * backends, and zonal NEG backends. - * - * Generated from protobuf field string instance_uri = 2; - */ - protected $instance_uri = ''; - /** - * URI of the backend service this backend belongs to (if applicable). - * - * Generated from protobuf field string backend_service_uri = 3; - */ - protected $backend_service_uri = ''; - /** - * URI of the instance group this backend belongs to (if applicable). - * - * Generated from protobuf field string instance_group_uri = 4; - */ - protected $instance_group_uri = ''; - /** - * URI of the network endpoint group this backend belongs to (if applicable). - * - * Generated from protobuf field string network_endpoint_group_uri = 5; - */ - protected $network_endpoint_group_uri = ''; - /** - * URI of the backend bucket this backend targets (if applicable). - * - * Generated from protobuf field string backend_bucket_uri = 8; - */ - protected $backend_bucket_uri = ''; - /** - * URI of the PSC service attachment this PSC NEG backend targets (if - * applicable). - * - * Generated from protobuf field string psc_service_attachment_uri = 9; - */ - protected $psc_service_attachment_uri = ''; - /** - * PSC Google API target this PSC NEG backend targets (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 10; - */ - protected $psc_google_api_target = ''; - /** - * URI of the health check attached to this backend (if applicable). - * - * Generated from protobuf field string health_check_uri = 6; - */ - protected $health_check_uri = ''; - /** - * Output only. Health check firewalls configuration state for the backend. - * This is a result of the static firewall analysis (verifying that health - * check traffic from required IP ranges to the backend is allowed or not). - * The backend might still be unhealthy even if these firewalls are - * configured. Please refer to the documentation for more information: - * https://cloud.google.com/load-balancing/docs/firewall-rules - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $health_check_firewalls_config_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Display name of the backend. For example, it might be an instance name for - * the instance group backends, or an IP address and port for zonal network - * endpoint group backends. - * @type string $instance_uri - * URI of the backend instance (if applicable). Populated for instance group - * backends, and zonal NEG backends. - * @type string $backend_service_uri - * URI of the backend service this backend belongs to (if applicable). - * @type string $instance_group_uri - * URI of the instance group this backend belongs to (if applicable). - * @type string $network_endpoint_group_uri - * URI of the network endpoint group this backend belongs to (if applicable). - * @type string $backend_bucket_uri - * URI of the backend bucket this backend targets (if applicable). - * @type string $psc_service_attachment_uri - * URI of the PSC service attachment this PSC NEG backend targets (if - * applicable). - * @type string $psc_google_api_target - * PSC Google API target this PSC NEG backend targets (if applicable). - * @type string $health_check_uri - * URI of the health check attached to this backend (if applicable). - * @type int $health_check_firewalls_config_state - * Output only. Health check firewalls configuration state for the backend. - * This is a result of the static firewall analysis (verifying that health - * check traffic from required IP ranges to the backend is allowed or not). - * The backend might still be unhealthy even if these firewalls are - * configured. Please refer to the documentation for more information: - * https://cloud.google.com/load-balancing/docs/firewall-rules - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Display name of the backend. For example, it might be an instance name for - * the instance group backends, or an IP address and port for zonal network - * endpoint group backends. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Display name of the backend. For example, it might be an instance name for - * the instance group backends, or an IP address and port for zonal network - * endpoint group backends. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * URI of the backend instance (if applicable). Populated for instance group - * backends, and zonal NEG backends. - * - * Generated from protobuf field string instance_uri = 2; - * @return string - */ - public function getInstanceUri() - { - return $this->instance_uri; - } - - /** - * URI of the backend instance (if applicable). Populated for instance group - * backends, and zonal NEG backends. - * - * Generated from protobuf field string instance_uri = 2; - * @param string $var - * @return $this - */ - public function setInstanceUri($var) - { - GPBUtil::checkString($var, True); - $this->instance_uri = $var; - - return $this; - } - - /** - * URI of the backend service this backend belongs to (if applicable). - * - * Generated from protobuf field string backend_service_uri = 3; - * @return string - */ - public function getBackendServiceUri() - { - return $this->backend_service_uri; - } - - /** - * URI of the backend service this backend belongs to (if applicable). - * - * Generated from protobuf field string backend_service_uri = 3; - * @param string $var - * @return $this - */ - public function setBackendServiceUri($var) - { - GPBUtil::checkString($var, True); - $this->backend_service_uri = $var; - - return $this; - } - - /** - * URI of the instance group this backend belongs to (if applicable). - * - * Generated from protobuf field string instance_group_uri = 4; - * @return string - */ - public function getInstanceGroupUri() - { - return $this->instance_group_uri; - } - - /** - * URI of the instance group this backend belongs to (if applicable). - * - * Generated from protobuf field string instance_group_uri = 4; - * @param string $var - * @return $this - */ - public function setInstanceGroupUri($var) - { - GPBUtil::checkString($var, True); - $this->instance_group_uri = $var; - - return $this; - } - - /** - * URI of the network endpoint group this backend belongs to (if applicable). - * - * Generated from protobuf field string network_endpoint_group_uri = 5; - * @return string - */ - public function getNetworkEndpointGroupUri() - { - return $this->network_endpoint_group_uri; - } - - /** - * URI of the network endpoint group this backend belongs to (if applicable). - * - * Generated from protobuf field string network_endpoint_group_uri = 5; - * @param string $var - * @return $this - */ - public function setNetworkEndpointGroupUri($var) - { - GPBUtil::checkString($var, True); - $this->network_endpoint_group_uri = $var; - - return $this; - } - - /** - * URI of the backend bucket this backend targets (if applicable). - * - * Generated from protobuf field string backend_bucket_uri = 8; - * @return string - */ - public function getBackendBucketUri() - { - return $this->backend_bucket_uri; - } - - /** - * URI of the backend bucket this backend targets (if applicable). - * - * Generated from protobuf field string backend_bucket_uri = 8; - * @param string $var - * @return $this - */ - public function setBackendBucketUri($var) - { - GPBUtil::checkString($var, True); - $this->backend_bucket_uri = $var; - - return $this; - } - - /** - * URI of the PSC service attachment this PSC NEG backend targets (if - * applicable). - * - * Generated from protobuf field string psc_service_attachment_uri = 9; - * @return string - */ - public function getPscServiceAttachmentUri() - { - return $this->psc_service_attachment_uri; - } - - /** - * URI of the PSC service attachment this PSC NEG backend targets (if - * applicable). - * - * Generated from protobuf field string psc_service_attachment_uri = 9; - * @param string $var - * @return $this - */ - public function setPscServiceAttachmentUri($var) - { - GPBUtil::checkString($var, True); - $this->psc_service_attachment_uri = $var; - - return $this; - } - - /** - * PSC Google API target this PSC NEG backend targets (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 10; - * @return string - */ - public function getPscGoogleApiTarget() - { - return $this->psc_google_api_target; - } - - /** - * PSC Google API target this PSC NEG backend targets (if applicable). - * - * Generated from protobuf field string psc_google_api_target = 10; - * @param string $var - * @return $this - */ - public function setPscGoogleApiTarget($var) - { - GPBUtil::checkString($var, True); - $this->psc_google_api_target = $var; - - return $this; - } - - /** - * URI of the health check attached to this backend (if applicable). - * - * Generated from protobuf field string health_check_uri = 6; - * @return string - */ - public function getHealthCheckUri() - { - return $this->health_check_uri; - } - - /** - * URI of the health check attached to this backend (if applicable). - * - * Generated from protobuf field string health_check_uri = 6; - * @param string $var - * @return $this - */ - public function setHealthCheckUri($var) - { - GPBUtil::checkString($var, True); - $this->health_check_uri = $var; - - return $this; - } - - /** - * Output only. Health check firewalls configuration state for the backend. - * This is a result of the static firewall analysis (verifying that health - * check traffic from required IP ranges to the backend is allowed or not). - * The backend might still be unhealthy even if these firewalls are - * configured. Please refer to the documentation for more information: - * https://cloud.google.com/load-balancing/docs/firewall-rules - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getHealthCheckFirewallsConfigState() - { - return $this->health_check_firewalls_config_state; - } - - /** - * Output only. Health check firewalls configuration state for the backend. - * This is a result of the static firewall analysis (verifying that health - * check traffic from required IP ranges to the backend is allowed or not). - * The backend might still be unhealthy even if these firewalls are - * configured. Please refer to the documentation for more information: - * https://cloud.google.com/load-balancing/docs/firewall-rules - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setHealthCheckFirewallsConfigState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo\HealthCheckFirewallsConfigState::class); - $this->health_check_firewalls_config_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo/HealthCheckFirewallsConfigState.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo/HealthCheckFirewallsConfigState.php deleted file mode 100644 index 4ca34e3878b2..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerBackendInfo/HealthCheckFirewallsConfigState.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState - */ -class HealthCheckFirewallsConfigState -{ - /** - * Configuration state unspecified. It usually means that the backend has - * no health check attached, or there was an unexpected configuration error - * preventing Connectivity tests from verifying health check configuration. - * - * Generated from protobuf enum HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; - */ - const HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; - /** - * Firewall rules (policies) allowing health check traffic from all required - * IP ranges to the backend are configured. - * - * Generated from protobuf enum FIREWALLS_CONFIGURED = 1; - */ - const FIREWALLS_CONFIGURED = 1; - /** - * Firewall rules (policies) allow health check traffic only from a part of - * required IP ranges. - * - * Generated from protobuf enum FIREWALLS_PARTIALLY_CONFIGURED = 2; - */ - const FIREWALLS_PARTIALLY_CONFIGURED = 2; - /** - * Firewall rules (policies) deny health check traffic from all required - * IP ranges to the backend. - * - * Generated from protobuf enum FIREWALLS_NOT_CONFIGURED = 3; - */ - const FIREWALLS_NOT_CONFIGURED = 3; - /** - * The network contains firewall rules of unsupported types, so Connectivity - * tests were not able to verify health check configuration status. Please - * refer to the documentation for the list of unsupported configurations: - * https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs - * - * Generated from protobuf enum FIREWALLS_UNSUPPORTED = 4; - */ - const FIREWALLS_UNSUPPORTED = 4; - - private static $valueToName = [ - self::HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED => 'HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED', - self::FIREWALLS_CONFIGURED => 'FIREWALLS_CONFIGURED', - self::FIREWALLS_PARTIALLY_CONFIGURED => 'FIREWALLS_PARTIALLY_CONFIGURED', - self::FIREWALLS_NOT_CONFIGURED => 'FIREWALLS_NOT_CONFIGURED', - self::FIREWALLS_UNSUPPORTED => 'FIREWALLS_UNSUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HealthCheckFirewallsConfigState::class, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo_HealthCheckFirewallsConfigState::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo.php deleted file mode 100644 index 343d0cfbe314..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo.php +++ /dev/null @@ -1,218 +0,0 @@ -google.cloud.networkmanagement.v1.LoadBalancerInfo - */ -class LoadBalancerInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Type of the load balancer. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1; - */ - protected $load_balancer_type = 0; - /** - * URI of the health check for the load balancer. Deprecated and no longer - * populated as different load balancer backends might have different health - * checks. - * - * Generated from protobuf field string health_check_uri = 2 [deprecated = true]; - * @deprecated - */ - protected $health_check_uri = ''; - /** - * Information for the loadbalancer backends. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LoadBalancerBackend backends = 3; - */ - private $backends; - /** - * Type of load balancer's backend configuration. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType backend_type = 4; - */ - protected $backend_type = 0; - /** - * Backend configuration URI. - * - * Generated from protobuf field string backend_uri = 5; - */ - protected $backend_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $load_balancer_type - * Type of the load balancer. - * @type string $health_check_uri - * URI of the health check for the load balancer. Deprecated and no longer - * populated as different load balancer backends might have different health - * checks. - * @type array<\Google\Cloud\NetworkManagement\V1\LoadBalancerBackend>|\Google\Protobuf\Internal\RepeatedField $backends - * Information for the loadbalancer backends. - * @type int $backend_type - * Type of load balancer's backend configuration. - * @type string $backend_uri - * Backend configuration URI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Type of the load balancer. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1; - * @return int - */ - public function getLoadBalancerType() - { - return $this->load_balancer_type; - } - - /** - * Type of the load balancer. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1; - * @param int $var - * @return $this - */ - public function setLoadBalancerType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo\LoadBalancerType::class); - $this->load_balancer_type = $var; - - return $this; - } - - /** - * URI of the health check for the load balancer. Deprecated and no longer - * populated as different load balancer backends might have different health - * checks. - * - * Generated from protobuf field string health_check_uri = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getHealthCheckUri() - { - if ($this->health_check_uri !== '') { - @trigger_error('health_check_uri is deprecated.', E_USER_DEPRECATED); - } - return $this->health_check_uri; - } - - /** - * URI of the health check for the load balancer. Deprecated and no longer - * populated as different load balancer backends might have different health - * checks. - * - * Generated from protobuf field string health_check_uri = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setHealthCheckUri($var) - { - @trigger_error('health_check_uri is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->health_check_uri = $var; - - return $this; - } - - /** - * Information for the loadbalancer backends. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LoadBalancerBackend backends = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackends() - { - return $this->backends; - } - - /** - * Information for the loadbalancer backends. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.LoadBalancerBackend backends = 3; - * @param array<\Google\Cloud\NetworkManagement\V1\LoadBalancerBackend>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackends($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackend::class); - $this->backends = $arr; - - return $this; - } - - /** - * Type of load balancer's backend configuration. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType backend_type = 4; - * @return int - */ - public function getBackendType() - { - return $this->backend_type; - } - - /** - * Type of load balancer's backend configuration. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType backend_type = 4; - * @param int $var - * @return $this - */ - public function setBackendType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo\BackendType::class); - $this->backend_type = $var; - - return $this; - } - - /** - * Backend configuration URI. - * - * Generated from protobuf field string backend_uri = 5; - * @return string - */ - public function getBackendUri() - { - return $this->backend_uri; - } - - /** - * Backend configuration URI. - * - * Generated from protobuf field string backend_uri = 5; - * @param string $var - * @return $this - */ - public function setBackendUri($var) - { - GPBUtil::checkString($var, True); - $this->backend_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/BackendType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/BackendType.php deleted file mode 100644 index 6b984fd67be6..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/BackendType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType - */ -class BackendType -{ - /** - * Type is unspecified. - * - * Generated from protobuf enum BACKEND_TYPE_UNSPECIFIED = 0; - */ - const BACKEND_TYPE_UNSPECIFIED = 0; - /** - * Backend Service as the load balancer's backend. - * - * Generated from protobuf enum BACKEND_SERVICE = 1; - */ - const BACKEND_SERVICE = 1; - /** - * Target Pool as the load balancer's backend. - * - * Generated from protobuf enum TARGET_POOL = 2; - */ - const TARGET_POOL = 2; - /** - * Target Instance as the load balancer's backend. - * - * Generated from protobuf enum TARGET_INSTANCE = 3; - */ - const TARGET_INSTANCE = 3; - - private static $valueToName = [ - self::BACKEND_TYPE_UNSPECIFIED => 'BACKEND_TYPE_UNSPECIFIED', - self::BACKEND_SERVICE => 'BACKEND_SERVICE', - self::TARGET_POOL => 'TARGET_POOL', - self::TARGET_INSTANCE => 'TARGET_INSTANCE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BackendType::class, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo_BackendType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/LoadBalancerType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/LoadBalancerType.php deleted file mode 100644 index ee000a238478..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerInfo/LoadBalancerType.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType - */ -class LoadBalancerType -{ - /** - * Type is unspecified. - * - * Generated from protobuf enum LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - */ - const LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - /** - * Internal TCP/UDP load balancer. - * - * Generated from protobuf enum INTERNAL_TCP_UDP = 1; - */ - const INTERNAL_TCP_UDP = 1; - /** - * Network TCP/UDP load balancer. - * - * Generated from protobuf enum NETWORK_TCP_UDP = 2; - */ - const NETWORK_TCP_UDP = 2; - /** - * HTTP(S) proxy load balancer. - * - * Generated from protobuf enum HTTP_PROXY = 3; - */ - const HTTP_PROXY = 3; - /** - * TCP proxy load balancer. - * - * Generated from protobuf enum TCP_PROXY = 4; - */ - const TCP_PROXY = 4; - /** - * SSL proxy load balancer. - * - * Generated from protobuf enum SSL_PROXY = 5; - */ - const SSL_PROXY = 5; - - private static $valueToName = [ - self::LOAD_BALANCER_TYPE_UNSPECIFIED => 'LOAD_BALANCER_TYPE_UNSPECIFIED', - self::INTERNAL_TCP_UDP => 'INTERNAL_TCP_UDP', - self::NETWORK_TCP_UDP => 'NETWORK_TCP_UDP', - self::HTTP_PROXY => 'HTTP_PROXY', - self::TCP_PROXY => 'TCP_PROXY', - self::SSL_PROXY => 'SSL_PROXY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LoadBalancerType::class, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo_LoadBalancerType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerType.php deleted file mode 100644 index 12dcb4c5e14b..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/LoadBalancerType.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.networkmanagement.v1.LoadBalancerType - */ -class LoadBalancerType -{ - /** - * Forwarding rule points to a different target than a load balancer or a - * load balancer type is unknown. - * - * Generated from protobuf enum LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - */ - const LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - /** - * Global external HTTP(S) load balancer. - * - * Generated from protobuf enum HTTPS_ADVANCED_LOAD_BALANCER = 1; - */ - const HTTPS_ADVANCED_LOAD_BALANCER = 1; - /** - * Global external HTTP(S) load balancer (classic) - * - * Generated from protobuf enum HTTPS_LOAD_BALANCER = 2; - */ - const HTTPS_LOAD_BALANCER = 2; - /** - * Regional external HTTP(S) load balancer. - * - * Generated from protobuf enum REGIONAL_HTTPS_LOAD_BALANCER = 3; - */ - const REGIONAL_HTTPS_LOAD_BALANCER = 3; - /** - * Internal HTTP(S) load balancer. - * - * Generated from protobuf enum INTERNAL_HTTPS_LOAD_BALANCER = 4; - */ - const INTERNAL_HTTPS_LOAD_BALANCER = 4; - /** - * External SSL proxy load balancer. - * - * Generated from protobuf enum SSL_PROXY_LOAD_BALANCER = 5; - */ - const SSL_PROXY_LOAD_BALANCER = 5; - /** - * External TCP proxy load balancer. - * - * Generated from protobuf enum TCP_PROXY_LOAD_BALANCER = 6; - */ - const TCP_PROXY_LOAD_BALANCER = 6; - /** - * Internal regional TCP proxy load balancer. - * - * Generated from protobuf enum INTERNAL_TCP_PROXY_LOAD_BALANCER = 7; - */ - const INTERNAL_TCP_PROXY_LOAD_BALANCER = 7; - /** - * External TCP/UDP Network load balancer. - * - * Generated from protobuf enum NETWORK_LOAD_BALANCER = 8; - */ - const NETWORK_LOAD_BALANCER = 8; - /** - * Target-pool based external TCP/UDP Network load balancer. - * - * Generated from protobuf enum LEGACY_NETWORK_LOAD_BALANCER = 9; - */ - const LEGACY_NETWORK_LOAD_BALANCER = 9; - /** - * Internal TCP/UDP load balancer. - * - * Generated from protobuf enum TCP_UDP_INTERNAL_LOAD_BALANCER = 10; - */ - const TCP_UDP_INTERNAL_LOAD_BALANCER = 10; - - private static $valueToName = [ - self::LOAD_BALANCER_TYPE_UNSPECIFIED => 'LOAD_BALANCER_TYPE_UNSPECIFIED', - self::HTTPS_ADVANCED_LOAD_BALANCER => 'HTTPS_ADVANCED_LOAD_BALANCER', - self::HTTPS_LOAD_BALANCER => 'HTTPS_LOAD_BALANCER', - self::REGIONAL_HTTPS_LOAD_BALANCER => 'REGIONAL_HTTPS_LOAD_BALANCER', - self::INTERNAL_HTTPS_LOAD_BALANCER => 'INTERNAL_HTTPS_LOAD_BALANCER', - self::SSL_PROXY_LOAD_BALANCER => 'SSL_PROXY_LOAD_BALANCER', - self::TCP_PROXY_LOAD_BALANCER => 'TCP_PROXY_LOAD_BALANCER', - self::INTERNAL_TCP_PROXY_LOAD_BALANCER => 'INTERNAL_TCP_PROXY_LOAD_BALANCER', - self::NETWORK_LOAD_BALANCER => 'NETWORK_LOAD_BALANCER', - self::LEGACY_NETWORK_LOAD_BALANCER => 'LEGACY_NETWORK_LOAD_BALANCER', - self::TCP_UDP_INTERNAL_LOAD_BALANCER => 'TCP_UDP_INTERNAL_LOAD_BALANCER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo.php deleted file mode 100644 index c87c0106c1da..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo.php +++ /dev/null @@ -1,517 +0,0 @@ -google.cloud.networkmanagement.v1.NatInfo - */ -class NatInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Type of NAT. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; - */ - protected $type = 0; - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 2; - */ - protected $protocol = ''; - /** - * URI of the network where NAT translation takes place. - * - * Generated from protobuf field string network_uri = 3; - */ - protected $network_uri = ''; - /** - * Source IP address before NAT translation. - * - * Generated from protobuf field string old_source_ip = 4; - */ - protected $old_source_ip = ''; - /** - * Source IP address after NAT translation. - * - * Generated from protobuf field string new_source_ip = 5; - */ - protected $new_source_ip = ''; - /** - * Destination IP address before NAT translation. - * - * Generated from protobuf field string old_destination_ip = 6; - */ - protected $old_destination_ip = ''; - /** - * Destination IP address after NAT translation. - * - * Generated from protobuf field string new_destination_ip = 7; - */ - protected $new_destination_ip = ''; - /** - * Source port before NAT translation. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 old_source_port = 8; - */ - protected $old_source_port = 0; - /** - * Source port after NAT translation. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 new_source_port = 9; - */ - protected $new_source_port = 0; - /** - * Destination port before NAT translation. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 old_destination_port = 10; - */ - protected $old_destination_port = 0; - /** - * Destination port after NAT translation. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 new_destination_port = 11; - */ - protected $new_destination_port = 0; - /** - * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. - * - * Generated from protobuf field string router_uri = 12; - */ - protected $router_uri = ''; - /** - * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. - * - * Generated from protobuf field string nat_gateway_name = 13; - */ - protected $nat_gateway_name = ''; - /** - * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; - */ - protected $cloud_nat_gateway_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of NAT. - * @type string $protocol - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * @type string $network_uri - * URI of the network where NAT translation takes place. - * @type string $old_source_ip - * Source IP address before NAT translation. - * @type string $new_source_ip - * Source IP address after NAT translation. - * @type string $old_destination_ip - * Destination IP address before NAT translation. - * @type string $new_destination_ip - * Destination IP address after NAT translation. - * @type int $old_source_port - * Source port before NAT translation. Only valid when protocol is TCP or UDP. - * @type int $new_source_port - * Source port after NAT translation. Only valid when protocol is TCP or UDP. - * @type int $old_destination_port - * Destination port before NAT translation. Only valid when protocol is TCP or - * UDP. - * @type int $new_destination_port - * Destination port after NAT translation. Only valid when protocol is TCP or - * UDP. - * @type string $router_uri - * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. - * @type string $nat_gateway_name - * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. - * @type int $cloud_nat_gateway_type - * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Type of NAT. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of NAT. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\NatInfo\Type::class); - $this->type = $var; - - return $this; - } - - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 2; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 2; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * URI of the network where NAT translation takes place. - * - * Generated from protobuf field string network_uri = 3; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of the network where NAT translation takes place. - * - * Generated from protobuf field string network_uri = 3; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * Source IP address before NAT translation. - * - * Generated from protobuf field string old_source_ip = 4; - * @return string - */ - public function getOldSourceIp() - { - return $this->old_source_ip; - } - - /** - * Source IP address before NAT translation. - * - * Generated from protobuf field string old_source_ip = 4; - * @param string $var - * @return $this - */ - public function setOldSourceIp($var) - { - GPBUtil::checkString($var, True); - $this->old_source_ip = $var; - - return $this; - } - - /** - * Source IP address after NAT translation. - * - * Generated from protobuf field string new_source_ip = 5; - * @return string - */ - public function getNewSourceIp() - { - return $this->new_source_ip; - } - - /** - * Source IP address after NAT translation. - * - * Generated from protobuf field string new_source_ip = 5; - * @param string $var - * @return $this - */ - public function setNewSourceIp($var) - { - GPBUtil::checkString($var, True); - $this->new_source_ip = $var; - - return $this; - } - - /** - * Destination IP address before NAT translation. - * - * Generated from protobuf field string old_destination_ip = 6; - * @return string - */ - public function getOldDestinationIp() - { - return $this->old_destination_ip; - } - - /** - * Destination IP address before NAT translation. - * - * Generated from protobuf field string old_destination_ip = 6; - * @param string $var - * @return $this - */ - public function setOldDestinationIp($var) - { - GPBUtil::checkString($var, True); - $this->old_destination_ip = $var; - - return $this; - } - - /** - * Destination IP address after NAT translation. - * - * Generated from protobuf field string new_destination_ip = 7; - * @return string - */ - public function getNewDestinationIp() - { - return $this->new_destination_ip; - } - - /** - * Destination IP address after NAT translation. - * - * Generated from protobuf field string new_destination_ip = 7; - * @param string $var - * @return $this - */ - public function setNewDestinationIp($var) - { - GPBUtil::checkString($var, True); - $this->new_destination_ip = $var; - - return $this; - } - - /** - * Source port before NAT translation. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 old_source_port = 8; - * @return int - */ - public function getOldSourcePort() - { - return $this->old_source_port; - } - - /** - * Source port before NAT translation. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 old_source_port = 8; - * @param int $var - * @return $this - */ - public function setOldSourcePort($var) - { - GPBUtil::checkInt32($var); - $this->old_source_port = $var; - - return $this; - } - - /** - * Source port after NAT translation. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 new_source_port = 9; - * @return int - */ - public function getNewSourcePort() - { - return $this->new_source_port; - } - - /** - * Source port after NAT translation. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 new_source_port = 9; - * @param int $var - * @return $this - */ - public function setNewSourcePort($var) - { - GPBUtil::checkInt32($var); - $this->new_source_port = $var; - - return $this; - } - - /** - * Destination port before NAT translation. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 old_destination_port = 10; - * @return int - */ - public function getOldDestinationPort() - { - return $this->old_destination_port; - } - - /** - * Destination port before NAT translation. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 old_destination_port = 10; - * @param int $var - * @return $this - */ - public function setOldDestinationPort($var) - { - GPBUtil::checkInt32($var); - $this->old_destination_port = $var; - - return $this; - } - - /** - * Destination port after NAT translation. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 new_destination_port = 11; - * @return int - */ - public function getNewDestinationPort() - { - return $this->new_destination_port; - } - - /** - * Destination port after NAT translation. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 new_destination_port = 11; - * @param int $var - * @return $this - */ - public function setNewDestinationPort($var) - { - GPBUtil::checkInt32($var); - $this->new_destination_port = $var; - - return $this; - } - - /** - * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. - * - * Generated from protobuf field string router_uri = 12; - * @return string - */ - public function getRouterUri() - { - return $this->router_uri; - } - - /** - * Uri of the Cloud Router. Only valid when type is CLOUD_NAT. - * - * Generated from protobuf field string router_uri = 12; - * @param string $var - * @return $this - */ - public function setRouterUri($var) - { - GPBUtil::checkString($var, True); - $this->router_uri = $var; - - return $this; - } - - /** - * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. - * - * Generated from protobuf field string nat_gateway_name = 13; - * @return string - */ - public function getNatGatewayName() - { - return $this->nat_gateway_name; - } - - /** - * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. - * - * Generated from protobuf field string nat_gateway_name = 13; - * @param string $var - * @return $this - */ - public function setNatGatewayName($var) - { - GPBUtil::checkString($var, True); - $this->nat_gateway_name = $var; - - return $this; - } - - /** - * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; - * @return int - */ - public function getCloudNatGatewayType() - { - return $this->cloud_nat_gateway_type; - } - - /** - * Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14; - * @param int $var - * @return $this - */ - public function setCloudNatGatewayType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\NatInfo\CloudNatGatewayType::class); - $this->cloud_nat_gateway_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/Type.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/Type.php deleted file mode 100644 index 6d2efd3bde41..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NatInfo/Type.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.networkmanagement.v1.NatInfo.Type - */ -class Type -{ - /** - * Type is unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * From Compute Engine instance's internal address to external address. - * - * Generated from protobuf enum INTERNAL_TO_EXTERNAL = 1; - */ - const INTERNAL_TO_EXTERNAL = 1; - /** - * From Compute Engine instance's external address to internal address. - * - * Generated from protobuf enum EXTERNAL_TO_INTERNAL = 2; - */ - const EXTERNAL_TO_INTERNAL = 2; - /** - * Cloud NAT Gateway. - * - * Generated from protobuf enum CLOUD_NAT = 3; - */ - const CLOUD_NAT = 3; - /** - * Private service connect NAT. - * - * Generated from protobuf enum PRIVATE_SERVICE_CONNECT = 4; - */ - const PRIVATE_SERVICE_CONNECT = 4; - /** - * GKE Pod IP address masquerading. - * - * Generated from protobuf enum GKE_POD_IP_MASQUERADING = 5; - */ - const GKE_POD_IP_MASQUERADING = 5; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::INTERNAL_TO_EXTERNAL => 'INTERNAL_TO_EXTERNAL', - self::EXTERNAL_TO_INTERNAL => 'EXTERNAL_TO_INTERNAL', - self::CLOUD_NAT => 'CLOUD_NAT', - self::PRIVATE_SERVICE_CONNECT => 'PRIVATE_SERVICE_CONNECT', - self::GKE_POD_IP_MASQUERADING => 'GKE_POD_IP_MASQUERADING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\NetworkManagement\V1\NatInfo_Type::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NetworkInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NetworkInfo.php deleted file mode 100644 index 0c8b22a9f1ad..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/NetworkInfo.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.networkmanagement.v1.NetworkInfo - */ -class NetworkInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a Compute Engine network. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a Compute Engine network. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * URI of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string matched_subnet_uri = 5; - */ - protected $matched_subnet_uri = ''; - /** - * The IP range of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string matched_ip_range = 4; - */ - protected $matched_ip_range = ''; - /** - * The region of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string region = 6; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a Compute Engine network. - * @type string $uri - * URI of a Compute Engine network. - * @type string $matched_subnet_uri - * URI of the subnet matching the source IP address of the test. - * @type string $matched_ip_range - * The IP range of the subnet matching the source IP address of the test. - * @type string $region - * The region of the subnet matching the source IP address of the test. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a Compute Engine network. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a Compute Engine network. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a Compute Engine network. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a Compute Engine network. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * URI of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string matched_subnet_uri = 5; - * @return string - */ - public function getMatchedSubnetUri() - { - return $this->matched_subnet_uri; - } - - /** - * URI of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string matched_subnet_uri = 5; - * @param string $var - * @return $this - */ - public function setMatchedSubnetUri($var) - { - GPBUtil::checkString($var, True); - $this->matched_subnet_uri = $var; - - return $this; - } - - /** - * The IP range of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string matched_ip_range = 4; - * @return string - */ - public function getMatchedIpRange() - { - return $this->matched_ip_range; - } - - /** - * The IP range of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string matched_ip_range = 4; - * @param string $var - * @return $this - */ - public function setMatchedIpRange($var) - { - GPBUtil::checkString($var, True); - $this->matched_ip_range = $var; - - return $this; - } - - /** - * The region of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string region = 6; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * The region of the subnet matching the source IP address of the test. - * - * Generated from protobuf field string region = 6; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/OperationMetadata.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/OperationMetadata.php deleted file mode 100644 index c063a6d1f374..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/OperationMetadata.php +++ /dev/null @@ -1,295 +0,0 @@ -google.cloud.networkmanagement.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - /** - * Target of the operation - for example - * projects/project-1/locations/global/connectivityTests/test-1 - * - * Generated from protobuf field string target = 3; - */ - protected $target = ''; - /** - * Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4; - */ - protected $verb = ''; - /** - * Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 5; - */ - protected $status_detail = ''; - /** - * Specifies if cancellation was requested for the operation. - * - * Generated from protobuf field bool cancel_requested = 6; - */ - protected $cancel_requested = false; - /** - * API version. - * - * Generated from protobuf field string api_version = 7; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * The time the operation finished running. - * @type string $target - * Target of the operation - for example - * projects/project-1/locations/global/connectivityTests/test-1 - * @type string $verb - * Name of the verb executed by the operation. - * @type string $status_detail - * Human-readable status of the operation, if any. - * @type bool $cancel_requested - * Specifies if cancellation was requested for the operation. - * @type string $api_version - * API version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); - parent::__construct($data); - } - - /** - * The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Target of the operation - for example - * projects/project-1/locations/global/connectivityTests/test-1 - * - * Generated from protobuf field string target = 3; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Target of the operation - for example - * projects/project-1/locations/global/connectivityTests/test-1 - * - * Generated from protobuf field string target = 3; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 5; - * @return string - */ - public function getStatusDetail() - { - return $this->status_detail; - } - - /** - * Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 5; - * @param string $var - * @return $this - */ - public function setStatusDetail($var) - { - GPBUtil::checkString($var, True); - $this->status_detail = $var; - - return $this; - } - - /** - * Specifies if cancellation was requested for the operation. - * - * Generated from protobuf field bool cancel_requested = 6; - * @return bool - */ - public function getCancelRequested() - { - return $this->cancel_requested; - } - - /** - * Specifies if cancellation was requested for the operation. - * - * Generated from protobuf field bool cancel_requested = 6; - * @param bool $var - * @return $this - */ - public function setCancelRequested($var) - { - GPBUtil::checkBool($var); - $this->cancel_requested = $var; - - return $this; - } - - /** - * API version. - * - * Generated from protobuf field string api_version = 7; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * API version. - * - * Generated from protobuf field string api_version = 7; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails.php deleted file mode 100644 index e89df32ab5a9..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails.php +++ /dev/null @@ -1,485 +0,0 @@ -google.cloud.networkmanagement.v1.ProbingDetails - */ -class ProbingDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The overall result of active probing. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - */ - protected $result = 0; - /** - * The time that reachability was assessed through active probing. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - */ - protected $verify_time = null; - /** - * Details about an internal failure or the cancellation of active probing. - * - * Generated from protobuf field .google.rpc.Status error = 3; - */ - protected $error = null; - /** - * The reason probing was aborted. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; - */ - protected $abort_cause = 0; - /** - * Number of probes sent. - * - * Generated from protobuf field int32 sent_probe_count = 5; - */ - protected $sent_probe_count = 0; - /** - * Number of probes that reached the destination. - * - * Generated from protobuf field int32 successful_probe_count = 6; - */ - protected $successful_probe_count = 0; - /** - * The source and destination endpoints derived from the test input and used - * for active probing. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; - */ - protected $endpoint_info = null; - /** - * Latency as measured by active probing in one direction: - * from the source to the destination endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; - */ - protected $probing_latency = null; - /** - * The EdgeLocation from which a packet, destined to the internet, will egress - * the Google network. - * This will only be populated for a connectivity test which has an internet - * destination address. - * The absence of this field *must not* be used as an indication that the - * destination is part of the Google network. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; - */ - protected $destination_egress_location = null; - /** - * Probing results for all edge devices. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; - */ - private $edge_responses; - /** - * Whether all relevant edge devices were probed. - * - * Generated from protobuf field bool probed_all_devices = 11; - */ - protected $probed_all_devices = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $result - * The overall result of active probing. - * @type \Google\Protobuf\Timestamp $verify_time - * The time that reachability was assessed through active probing. - * @type \Google\Rpc\Status $error - * Details about an internal failure or the cancellation of active probing. - * @type int $abort_cause - * The reason probing was aborted. - * @type int $sent_probe_count - * Number of probes sent. - * @type int $successful_probe_count - * Number of probes that reached the destination. - * @type \Google\Cloud\NetworkManagement\V1\EndpointInfo $endpoint_info - * The source and destination endpoints derived from the test input and used - * for active probing. - * @type \Google\Cloud\NetworkManagement\V1\LatencyDistribution $probing_latency - * Latency as measured by active probing in one direction: - * from the source to the destination endpoint. - * @type \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation $destination_egress_location - * The EdgeLocation from which a packet, destined to the internet, will egress - * the Google network. - * This will only be populated for a connectivity test which has an internet - * destination address. - * The absence of this field *must not* be used as an indication that the - * destination is part of the Google network. - * @type array<\Google\Cloud\NetworkManagement\V1\ProbingDetails\SingleEdgeResponse>|\Google\Protobuf\Internal\RepeatedField $edge_responses - * Probing results for all edge devices. - * @type bool $probed_all_devices - * Whether all relevant edge devices were probed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * The overall result of active probing. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * @return int - */ - public function getResult() - { - return $this->result; - } - - /** - * The overall result of active probing. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * @param int $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\ProbingResult::class); - $this->result = $var; - - return $this; - } - - /** - * The time that reachability was assessed through active probing. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getVerifyTime() - { - return $this->verify_time; - } - - public function hasVerifyTime() - { - return isset($this->verify_time); - } - - public function clearVerifyTime() - { - unset($this->verify_time); - } - - /** - * The time that reachability was assessed through active probing. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setVerifyTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->verify_time = $var; - - return $this; - } - - /** - * Details about an internal failure or the cancellation of active probing. - * - * Generated from protobuf field .google.rpc.Status error = 3; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * Details about an internal failure or the cancellation of active probing. - * - * Generated from protobuf field .google.rpc.Status error = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->error = $var; - - return $this; - } - - /** - * The reason probing was aborted. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * @return int - */ - public function getAbortCause() - { - return $this->abort_cause; - } - - /** - * The reason probing was aborted. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * @param int $var - * @return $this - */ - public function setAbortCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\ProbingAbortCause::class); - $this->abort_cause = $var; - - return $this; - } - - /** - * Number of probes sent. - * - * Generated from protobuf field int32 sent_probe_count = 5; - * @return int - */ - public function getSentProbeCount() - { - return $this->sent_probe_count; - } - - /** - * Number of probes sent. - * - * Generated from protobuf field int32 sent_probe_count = 5; - * @param int $var - * @return $this - */ - public function setSentProbeCount($var) - { - GPBUtil::checkInt32($var); - $this->sent_probe_count = $var; - - return $this; - } - - /** - * Number of probes that reached the destination. - * - * Generated from protobuf field int32 successful_probe_count = 6; - * @return int - */ - public function getSuccessfulProbeCount() - { - return $this->successful_probe_count; - } - - /** - * Number of probes that reached the destination. - * - * Generated from protobuf field int32 successful_probe_count = 6; - * @param int $var - * @return $this - */ - public function setSuccessfulProbeCount($var) - { - GPBUtil::checkInt32($var); - $this->successful_probe_count = $var; - - return $this; - } - - /** - * The source and destination endpoints derived from the test input and used - * for active probing. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; - * @return \Google\Cloud\NetworkManagement\V1\EndpointInfo|null - */ - public function getEndpointInfo() - { - return $this->endpoint_info; - } - - public function hasEndpointInfo() - { - return isset($this->endpoint_info); - } - - public function clearEndpointInfo() - { - unset($this->endpoint_info); - } - - /** - * The source and destination endpoints derived from the test input and used - * for active probing. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; - * @param \Google\Cloud\NetworkManagement\V1\EndpointInfo $var - * @return $this - */ - public function setEndpointInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\EndpointInfo::class); - $this->endpoint_info = $var; - - return $this; - } - - /** - * Latency as measured by active probing in one direction: - * from the source to the destination endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; - * @return \Google\Cloud\NetworkManagement\V1\LatencyDistribution|null - */ - public function getProbingLatency() - { - return $this->probing_latency; - } - - public function hasProbingLatency() - { - return isset($this->probing_latency); - } - - public function clearProbingLatency() - { - unset($this->probing_latency); - } - - /** - * Latency as measured by active probing in one direction: - * from the source to the destination endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; - * @param \Google\Cloud\NetworkManagement\V1\LatencyDistribution $var - * @return $this - */ - public function setProbingLatency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\LatencyDistribution::class); - $this->probing_latency = $var; - - return $this; - } - - /** - * The EdgeLocation from which a packet, destined to the internet, will egress - * the Google network. - * This will only be populated for a connectivity test which has an internet - * destination address. - * The absence of this field *must not* be used as an indication that the - * destination is part of the Google network. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * @return \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation|null - */ - public function getDestinationEgressLocation() - { - return $this->destination_egress_location; - } - - public function hasDestinationEgressLocation() - { - return isset($this->destination_egress_location); - } - - public function clearDestinationEgressLocation() - { - unset($this->destination_egress_location); - } - - /** - * The EdgeLocation from which a packet, destined to the internet, will egress - * the Google network. - * This will only be populated for a connectivity test which has an internet - * destination address. - * The absence of this field *must not* be used as an indication that the - * destination is part of the Google network. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * @param \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation $var - * @return $this - */ - public function setDestinationEgressLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation::class); - $this->destination_egress_location = $var; - - return $this; - } - - /** - * Probing results for all edge devices. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEdgeResponses() - { - return $this->edge_responses; - } - - /** - * Probing results for all edge devices. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; - * @param array<\Google\Cloud\NetworkManagement\V1\ProbingDetails\SingleEdgeResponse>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEdgeResponses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\ProbingDetails\SingleEdgeResponse::class); - $this->edge_responses = $arr; - - return $this; - } - - /** - * Whether all relevant edge devices were probed. - * - * Generated from protobuf field bool probed_all_devices = 11; - * @return bool - */ - public function getProbedAllDevices() - { - return $this->probed_all_devices; - } - - /** - * Whether all relevant edge devices were probed. - * - * Generated from protobuf field bool probed_all_devices = 11; - * @param bool $var - * @return $this - */ - public function setProbedAllDevices($var) - { - GPBUtil::checkBool($var); - $this->probed_all_devices = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/EdgeLocation.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/EdgeLocation.php deleted file mode 100644 index b2c41ea9e303..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/EdgeLocation.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation - */ -class EdgeLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the metropolitan area. - * - * Generated from protobuf field string metropolitan_area = 1; - */ - protected $metropolitan_area = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metropolitan_area - * Name of the metropolitan area. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * Name of the metropolitan area. - * - * Generated from protobuf field string metropolitan_area = 1; - * @return string - */ - public function getMetropolitanArea() - { - return $this->metropolitan_area; - } - - /** - * Name of the metropolitan area. - * - * Generated from protobuf field string metropolitan_area = 1; - * @param string $var - * @return $this - */ - public function setMetropolitanArea($var) - { - GPBUtil::checkString($var, True); - $this->metropolitan_area = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EdgeLocation::class, \Google\Cloud\NetworkManagement\V1\ProbingDetails_EdgeLocation::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingAbortCause.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingAbortCause.php deleted file mode 100644 index a35527cc41eb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingAbortCause.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause - */ -class ProbingAbortCause -{ - /** - * No reason was specified. - * - * Generated from protobuf enum PROBING_ABORT_CAUSE_UNSPECIFIED = 0; - */ - const PROBING_ABORT_CAUSE_UNSPECIFIED = 0; - /** - * The user lacks permission to access some of the - * network resources required to run the test. - * - * Generated from protobuf enum PERMISSION_DENIED = 1; - */ - const PERMISSION_DENIED = 1; - /** - * No valid source endpoint could be derived from the request. - * - * Generated from protobuf enum NO_SOURCE_LOCATION = 2; - */ - const NO_SOURCE_LOCATION = 2; - - private static $valueToName = [ - self::PROBING_ABORT_CAUSE_UNSPECIFIED => 'PROBING_ABORT_CAUSE_UNSPECIFIED', - self::PERMISSION_DENIED => 'PERMISSION_DENIED', - self::NO_SOURCE_LOCATION => 'NO_SOURCE_LOCATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ProbingAbortCause::class, \Google\Cloud\NetworkManagement\V1\ProbingDetails_ProbingAbortCause::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingResult.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingResult.php deleted file mode 100644 index 567ea2be878f..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/ProbingResult.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult - */ -class ProbingResult -{ - /** - * No result was specified. - * - * Generated from protobuf enum PROBING_RESULT_UNSPECIFIED = 0; - */ - const PROBING_RESULT_UNSPECIFIED = 0; - /** - * At least 95% of packets reached the destination. - * - * Generated from protobuf enum REACHABLE = 1; - */ - const REACHABLE = 1; - /** - * No packets reached the destination. - * - * Generated from protobuf enum UNREACHABLE = 2; - */ - const UNREACHABLE = 2; - /** - * Less than 95% of packets reached the destination. - * - * Generated from protobuf enum REACHABILITY_INCONSISTENT = 3; - */ - const REACHABILITY_INCONSISTENT = 3; - /** - * Reachability could not be determined. Possible reasons are: - * * The user lacks permission to access some of the network resources - * required to run the test. - * * No valid source endpoint could be derived from the request. - * * An internal error occurred. - * - * Generated from protobuf enum UNDETERMINED = 4; - */ - const UNDETERMINED = 4; - - private static $valueToName = [ - self::PROBING_RESULT_UNSPECIFIED => 'PROBING_RESULT_UNSPECIFIED', - self::REACHABLE => 'REACHABLE', - self::UNREACHABLE => 'UNREACHABLE', - self::REACHABILITY_INCONSISTENT => 'REACHABILITY_INCONSISTENT', - self::UNDETERMINED => 'UNDETERMINED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ProbingResult::class, \Google\Cloud\NetworkManagement\V1\ProbingDetails_ProbingResult::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/SingleEdgeResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/SingleEdgeResponse.php deleted file mode 100644 index 868212d38d1f..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProbingDetails/SingleEdgeResponse.php +++ /dev/null @@ -1,288 +0,0 @@ -google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse - */ -class SingleEdgeResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The overall result of active probing for this egress device. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - */ - protected $result = 0; - /** - * Number of probes sent. - * - * Generated from protobuf field int32 sent_probe_count = 2; - */ - protected $sent_probe_count = 0; - /** - * Number of probes that reached the destination. - * - * Generated from protobuf field int32 successful_probe_count = 3; - */ - protected $successful_probe_count = 0; - /** - * Latency as measured by active probing in one direction: from the source - * to the destination endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; - */ - protected $probing_latency = null; - /** - * The EdgeLocation from which a packet, destined to the internet, will - * egress the Google network. - * This will only be populated for a connectivity test which has an internet - * destination address. - * The absence of this field *must not* be used as an indication that the - * destination is part of the Google network. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; - */ - protected $destination_egress_location = null; - /** - * Router name in the format '{router}.{metroshard}'. For example: - * pf01.aaa01, pr02.aaa01. - * - * Generated from protobuf field string destination_router = 6; - */ - protected $destination_router = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $result - * The overall result of active probing for this egress device. - * @type int $sent_probe_count - * Number of probes sent. - * @type int $successful_probe_count - * Number of probes that reached the destination. - * @type \Google\Cloud\NetworkManagement\V1\LatencyDistribution $probing_latency - * Latency as measured by active probing in one direction: from the source - * to the destination endpoint. - * @type \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation $destination_egress_location - * The EdgeLocation from which a packet, destined to the internet, will - * egress the Google network. - * This will only be populated for a connectivity test which has an internet - * destination address. - * The absence of this field *must not* be used as an indication that the - * destination is part of the Google network. - * @type string $destination_router - * Router name in the format '{router}.{metroshard}'. For example: - * pf01.aaa01, pr02.aaa01. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * The overall result of active probing for this egress device. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * @return int - */ - public function getResult() - { - return $this->result; - } - - /** - * The overall result of active probing for this egress device. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * @param int $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\ProbingResult::class); - $this->result = $var; - - return $this; - } - - /** - * Number of probes sent. - * - * Generated from protobuf field int32 sent_probe_count = 2; - * @return int - */ - public function getSentProbeCount() - { - return $this->sent_probe_count; - } - - /** - * Number of probes sent. - * - * Generated from protobuf field int32 sent_probe_count = 2; - * @param int $var - * @return $this - */ - public function setSentProbeCount($var) - { - GPBUtil::checkInt32($var); - $this->sent_probe_count = $var; - - return $this; - } - - /** - * Number of probes that reached the destination. - * - * Generated from protobuf field int32 successful_probe_count = 3; - * @return int - */ - public function getSuccessfulProbeCount() - { - return $this->successful_probe_count; - } - - /** - * Number of probes that reached the destination. - * - * Generated from protobuf field int32 successful_probe_count = 3; - * @param int $var - * @return $this - */ - public function setSuccessfulProbeCount($var) - { - GPBUtil::checkInt32($var); - $this->successful_probe_count = $var; - - return $this; - } - - /** - * Latency as measured by active probing in one direction: from the source - * to the destination endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; - * @return \Google\Cloud\NetworkManagement\V1\LatencyDistribution|null - */ - public function getProbingLatency() - { - return $this->probing_latency; - } - - public function hasProbingLatency() - { - return isset($this->probing_latency); - } - - public function clearProbingLatency() - { - unset($this->probing_latency); - } - - /** - * Latency as measured by active probing in one direction: from the source - * to the destination endpoint. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; - * @param \Google\Cloud\NetworkManagement\V1\LatencyDistribution $var - * @return $this - */ - public function setProbingLatency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\LatencyDistribution::class); - $this->probing_latency = $var; - - return $this; - } - - /** - * The EdgeLocation from which a packet, destined to the internet, will - * egress the Google network. - * This will only be populated for a connectivity test which has an internet - * destination address. - * The absence of this field *must not* be used as an indication that the - * destination is part of the Google network. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; - * @return \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation|null - */ - public function getDestinationEgressLocation() - { - return $this->destination_egress_location; - } - - public function hasDestinationEgressLocation() - { - return isset($this->destination_egress_location); - } - - public function clearDestinationEgressLocation() - { - unset($this->destination_egress_location); - } - - /** - * The EdgeLocation from which a packet, destined to the internet, will - * egress the Google network. - * This will only be populated for a connectivity test which has an internet - * destination address. - * The absence of this field *must not* be used as an indication that the - * destination is part of the Google network. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; - * @param \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation $var - * @return $this - */ - public function setDestinationEgressLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ProbingDetails\EdgeLocation::class); - $this->destination_egress_location = $var; - - return $this; - } - - /** - * Router name in the format '{router}.{metroshard}'. For example: - * pf01.aaa01, pr02.aaa01. - * - * Generated from protobuf field string destination_router = 6; - * @return string - */ - public function getDestinationRouter() - { - return $this->destination_router; - } - - /** - * Router name in the format '{router}.{metroshard}'. For example: - * pf01.aaa01, pr02.aaa01. - * - * Generated from protobuf field string destination_router = 6; - * @param string $var - * @return $this - */ - public function setDestinationRouter($var) - { - GPBUtil::checkString($var, True); - $this->destination_router = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SingleEdgeResponse::class, \Google\Cloud\NetworkManagement\V1\ProbingDetails_SingleEdgeResponse::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProxyConnectionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProxyConnectionInfo.php deleted file mode 100644 index feb1c10943c7..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ProxyConnectionInfo.php +++ /dev/null @@ -1,419 +0,0 @@ -google.cloud.networkmanagement.v1.ProxyConnectionInfo - */ -class ProxyConnectionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 1; - */ - protected $protocol = ''; - /** - * Source IP address of an original connection. - * - * Generated from protobuf field string old_source_ip = 2; - */ - protected $old_source_ip = ''; - /** - * Source IP address of a new connection. - * - * Generated from protobuf field string new_source_ip = 3; - */ - protected $new_source_ip = ''; - /** - * Destination IP address of an original connection - * - * Generated from protobuf field string old_destination_ip = 4; - */ - protected $old_destination_ip = ''; - /** - * Destination IP address of a new connection. - * - * Generated from protobuf field string new_destination_ip = 5; - */ - protected $new_destination_ip = ''; - /** - * Source port of an original connection. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 old_source_port = 6; - */ - protected $old_source_port = 0; - /** - * Source port of a new connection. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 new_source_port = 7; - */ - protected $new_source_port = 0; - /** - * Destination port of an original connection. Only valid when protocol is TCP - * or UDP. - * - * Generated from protobuf field int32 old_destination_port = 8; - */ - protected $old_destination_port = 0; - /** - * Destination port of a new connection. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 new_destination_port = 9; - */ - protected $new_destination_port = 0; - /** - * Uri of proxy subnet. - * - * Generated from protobuf field string subnet_uri = 10; - */ - protected $subnet_uri = ''; - /** - * URI of the network where connection is proxied. - * - * Generated from protobuf field string network_uri = 11; - */ - protected $network_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $protocol - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * @type string $old_source_ip - * Source IP address of an original connection. - * @type string $new_source_ip - * Source IP address of a new connection. - * @type string $old_destination_ip - * Destination IP address of an original connection - * @type string $new_destination_ip - * Destination IP address of a new connection. - * @type int $old_source_port - * Source port of an original connection. Only valid when protocol is TCP or - * UDP. - * @type int $new_source_port - * Source port of a new connection. Only valid when protocol is TCP or UDP. - * @type int $old_destination_port - * Destination port of an original connection. Only valid when protocol is TCP - * or UDP. - * @type int $new_destination_port - * Destination port of a new connection. Only valid when protocol is TCP or - * UDP. - * @type string $subnet_uri - * Uri of proxy subnet. - * @type string $network_uri - * URI of the network where connection is proxied. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 1; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * IP protocol in string format, for example: "TCP", "UDP", "ICMP". - * - * Generated from protobuf field string protocol = 1; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * Source IP address of an original connection. - * - * Generated from protobuf field string old_source_ip = 2; - * @return string - */ - public function getOldSourceIp() - { - return $this->old_source_ip; - } - - /** - * Source IP address of an original connection. - * - * Generated from protobuf field string old_source_ip = 2; - * @param string $var - * @return $this - */ - public function setOldSourceIp($var) - { - GPBUtil::checkString($var, True); - $this->old_source_ip = $var; - - return $this; - } - - /** - * Source IP address of a new connection. - * - * Generated from protobuf field string new_source_ip = 3; - * @return string - */ - public function getNewSourceIp() - { - return $this->new_source_ip; - } - - /** - * Source IP address of a new connection. - * - * Generated from protobuf field string new_source_ip = 3; - * @param string $var - * @return $this - */ - public function setNewSourceIp($var) - { - GPBUtil::checkString($var, True); - $this->new_source_ip = $var; - - return $this; - } - - /** - * Destination IP address of an original connection - * - * Generated from protobuf field string old_destination_ip = 4; - * @return string - */ - public function getOldDestinationIp() - { - return $this->old_destination_ip; - } - - /** - * Destination IP address of an original connection - * - * Generated from protobuf field string old_destination_ip = 4; - * @param string $var - * @return $this - */ - public function setOldDestinationIp($var) - { - GPBUtil::checkString($var, True); - $this->old_destination_ip = $var; - - return $this; - } - - /** - * Destination IP address of a new connection. - * - * Generated from protobuf field string new_destination_ip = 5; - * @return string - */ - public function getNewDestinationIp() - { - return $this->new_destination_ip; - } - - /** - * Destination IP address of a new connection. - * - * Generated from protobuf field string new_destination_ip = 5; - * @param string $var - * @return $this - */ - public function setNewDestinationIp($var) - { - GPBUtil::checkString($var, True); - $this->new_destination_ip = $var; - - return $this; - } - - /** - * Source port of an original connection. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 old_source_port = 6; - * @return int - */ - public function getOldSourcePort() - { - return $this->old_source_port; - } - - /** - * Source port of an original connection. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 old_source_port = 6; - * @param int $var - * @return $this - */ - public function setOldSourcePort($var) - { - GPBUtil::checkInt32($var); - $this->old_source_port = $var; - - return $this; - } - - /** - * Source port of a new connection. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 new_source_port = 7; - * @return int - */ - public function getNewSourcePort() - { - return $this->new_source_port; - } - - /** - * Source port of a new connection. Only valid when protocol is TCP or UDP. - * - * Generated from protobuf field int32 new_source_port = 7; - * @param int $var - * @return $this - */ - public function setNewSourcePort($var) - { - GPBUtil::checkInt32($var); - $this->new_source_port = $var; - - return $this; - } - - /** - * Destination port of an original connection. Only valid when protocol is TCP - * or UDP. - * - * Generated from protobuf field int32 old_destination_port = 8; - * @return int - */ - public function getOldDestinationPort() - { - return $this->old_destination_port; - } - - /** - * Destination port of an original connection. Only valid when protocol is TCP - * or UDP. - * - * Generated from protobuf field int32 old_destination_port = 8; - * @param int $var - * @return $this - */ - public function setOldDestinationPort($var) - { - GPBUtil::checkInt32($var); - $this->old_destination_port = $var; - - return $this; - } - - /** - * Destination port of a new connection. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 new_destination_port = 9; - * @return int - */ - public function getNewDestinationPort() - { - return $this->new_destination_port; - } - - /** - * Destination port of a new connection. Only valid when protocol is TCP or - * UDP. - * - * Generated from protobuf field int32 new_destination_port = 9; - * @param int $var - * @return $this - */ - public function setNewDestinationPort($var) - { - GPBUtil::checkInt32($var); - $this->new_destination_port = $var; - - return $this; - } - - /** - * Uri of proxy subnet. - * - * Generated from protobuf field string subnet_uri = 10; - * @return string - */ - public function getSubnetUri() - { - return $this->subnet_uri; - } - - /** - * Uri of proxy subnet. - * - * Generated from protobuf field string subnet_uri = 10; - * @param string $var - * @return $this - */ - public function setSubnetUri($var) - { - GPBUtil::checkString($var, True); - $this->subnet_uri = $var; - - return $this; - } - - /** - * URI of the network where connection is proxied. - * - * Generated from protobuf field string network_uri = 11; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of the network where connection is proxied. - * - * Generated from protobuf field string network_uri = 11; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsRequest.php deleted file mode 100644 index d2fd965b10ac..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest - */ -class QueryOrgVpcFlowLogsConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the VpcFlowLogsConfig, specified in - * the following format: `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Number of `VpcFlowLogsConfigs` to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. - * A filter expression must use the supported [CEL logic operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the VpcFlowLogsConfig, specified in - * the following format: `projects/{project_id}/locations/global` - * @type int $page_size - * Optional. Number of `VpcFlowLogsConfigs` to return. - * @type string $page_token - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * @type string $filter - * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. - * A filter expression must use the supported [CEL logic operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the VpcFlowLogsConfig, specified in - * the following format: `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource of the VpcFlowLogsConfig, specified in - * the following format: `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Number of `VpcFlowLogsConfigs` to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of `VpcFlowLogsConfigs` to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. - * A filter expression must use the supported [CEL logic operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. - * A filter expression must use the supported [CEL logic operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsResponse.php deleted file mode 100644 index 67c0df952643..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/QueryOrgVpcFlowLogsConfigsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse - */ -class QueryOrgVpcFlowLogsConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of VPC Flow Log configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; - */ - private $vpc_flow_logs_configs; - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $vpc_flow_logs_configs - * List of VPC Flow Log configurations. - * @type string $next_page_token - * Page token to fetch the next set of configurations. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached (when querying all locations with `-`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * List of VPC Flow Log configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVpcFlowLogsConfigs() - { - return $this->vpc_flow_logs_configs; - } - - /** - * List of VPC Flow Log configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; - * @param array<\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVpcFlowLogsConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig::class); - $this->vpc_flow_logs_configs = $arr; - - return $this; - } - - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails.php deleted file mode 100644 index 487aecd9228d..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.networkmanagement.v1.ReachabilityDetails - */ -class ReachabilityDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The overall result of the test's configuration analysis. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails.Result result = 1; - */ - protected $result = 0; - /** - * The time of the configuration analysis. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - */ - protected $verify_time = null; - /** - * The details of a failure or a cancellation of reachability analysis. - * - * Generated from protobuf field .google.rpc.Status error = 3; - */ - protected $error = null; - /** - * Result may contain a list of traces if a test has multiple possible - * paths in the network, such as when destination endpoint is a load balancer - * with multiple backends. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Trace traces = 5; - */ - private $traces; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $result - * The overall result of the test's configuration analysis. - * @type \Google\Protobuf\Timestamp $verify_time - * The time of the configuration analysis. - * @type \Google\Rpc\Status $error - * The details of a failure or a cancellation of reachability analysis. - * @type array<\Google\Cloud\NetworkManagement\V1\Trace>|\Google\Protobuf\Internal\RepeatedField $traces - * Result may contain a list of traces if a test has multiple possible - * paths in the network, such as when destination endpoint is a load balancer - * with multiple backends. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce(); - parent::__construct($data); - } - - /** - * The overall result of the test's configuration analysis. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails.Result result = 1; - * @return int - */ - public function getResult() - { - return $this->result; - } - - /** - * The overall result of the test's configuration analysis. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ReachabilityDetails.Result result = 1; - * @param int $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\ReachabilityDetails\Result::class); - $this->result = $var; - - return $this; - } - - /** - * The time of the configuration analysis. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getVerifyTime() - { - return $this->verify_time; - } - - public function hasVerifyTime() - { - return isset($this->verify_time); - } - - public function clearVerifyTime() - { - unset($this->verify_time); - } - - /** - * The time of the configuration analysis. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setVerifyTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->verify_time = $var; - - return $this; - } - - /** - * The details of a failure or a cancellation of reachability analysis. - * - * Generated from protobuf field .google.rpc.Status error = 3; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * The details of a failure or a cancellation of reachability analysis. - * - * Generated from protobuf field .google.rpc.Status error = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->error = $var; - - return $this; - } - - /** - * Result may contain a list of traces if a test has multiple possible - * paths in the network, such as when destination endpoint is a load balancer - * with multiple backends. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Trace traces = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTraces() - { - return $this->traces; - } - - /** - * Result may contain a list of traces if a test has multiple possible - * paths in the network, such as when destination endpoint is a load balancer - * with multiple backends. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Trace traces = 5; - * @param array<\Google\Cloud\NetworkManagement\V1\Trace>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTraces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\Trace::class); - $this->traces = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails/Result.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails/Result.php deleted file mode 100644 index 5b4ca4a91831..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ReachabilityDetails/Result.php +++ /dev/null @@ -1,94 +0,0 @@ -google.cloud.networkmanagement.v1.ReachabilityDetails.Result - */ -class Result -{ - /** - * No result was specified. - * - * Generated from protobuf enum RESULT_UNSPECIFIED = 0; - */ - const RESULT_UNSPECIFIED = 0; - /** - * Possible scenarios are: - * * The configuration analysis determined that a packet originating from - * the source is expected to reach the destination. - * * The analysis didn't complete because the user lacks permission for - * some of the resources in the trace. However, at the time the user's - * permission became insufficient, the trace had been successful so far. - * - * Generated from protobuf enum REACHABLE = 1; - */ - const REACHABLE = 1; - /** - * A packet originating from the source is expected to be dropped before - * reaching the destination. - * - * Generated from protobuf enum UNREACHABLE = 2; - */ - const UNREACHABLE = 2; - /** - * The source and destination endpoints do not uniquely identify - * the test location in the network, and the reachability result contains - * multiple traces. For some traces, a packet could be delivered, and for - * others, it would not be. This result is also assigned to - * configuration analysis of return path if on its own it should be - * REACHABLE, but configuration analysis of forward path is AMBIGUOUS. - * - * Generated from protobuf enum AMBIGUOUS = 4; - */ - const AMBIGUOUS = 4; - /** - * The configuration analysis did not complete. Possible reasons are: - * * A permissions error occurred--for example, the user might not have - * read permission for all of the resources named in the test. - * * An internal error occurred. - * * The analyzer received an invalid or unsupported argument or was unable - * to identify a known endpoint. - * - * Generated from protobuf enum UNDETERMINED = 5; - */ - const UNDETERMINED = 5; - - private static $valueToName = [ - self::RESULT_UNSPECIFIED => 'RESULT_UNSPECIFIED', - self::REACHABLE => 'REACHABLE', - self::UNREACHABLE => 'UNREACHABLE', - self::AMBIGUOUS => 'AMBIGUOUS', - self::UNDETERMINED => 'UNDETERMINED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Result::class, \Google\Cloud\NetworkManagement\V1\ReachabilityDetails_Result::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisClusterInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisClusterInfo.php deleted file mode 100644 index ed64842b8cbd..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisClusterInfo.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.networkmanagement.v1.RedisClusterInfo - */ -class RedisClusterInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a Redis Cluster. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a Redis Cluster in format - * "projects/{project_id}/locations/{location}/clusters/{cluster_id}" - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * URI of the network containing the Redis Cluster endpoints in format - * "projects/{project_id}/global/networks/{network_id}". - * - * Generated from protobuf field string network_uri = 3; - */ - protected $network_uri = ''; - /** - * Discovery endpoint IP address of a Redis Cluster. - * - * Generated from protobuf field string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { - */ - protected $discovery_endpoint_ip_address = ''; - /** - * Secondary endpoint IP address of a Redis Cluster. - * - * Generated from protobuf field string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { - */ - protected $secondary_endpoint_ip_address = ''; - /** - * Name of the region in which the Redis Cluster is defined. For example, - * "us-central1". - * - * Generated from protobuf field string location = 6; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a Redis Cluster. - * @type string $uri - * URI of a Redis Cluster in format - * "projects/{project_id}/locations/{location}/clusters/{cluster_id}" - * @type string $network_uri - * URI of the network containing the Redis Cluster endpoints in format - * "projects/{project_id}/global/networks/{network_id}". - * @type string $discovery_endpoint_ip_address - * Discovery endpoint IP address of a Redis Cluster. - * @type string $secondary_endpoint_ip_address - * Secondary endpoint IP address of a Redis Cluster. - * @type string $location - * Name of the region in which the Redis Cluster is defined. For example, - * "us-central1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a Redis Cluster. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a Redis Cluster. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a Redis Cluster in format - * "projects/{project_id}/locations/{location}/clusters/{cluster_id}" - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a Redis Cluster in format - * "projects/{project_id}/locations/{location}/clusters/{cluster_id}" - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * URI of the network containing the Redis Cluster endpoints in format - * "projects/{project_id}/global/networks/{network_id}". - * - * Generated from protobuf field string network_uri = 3; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of the network containing the Redis Cluster endpoints in format - * "projects/{project_id}/global/networks/{network_id}". - * - * Generated from protobuf field string network_uri = 3; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * Discovery endpoint IP address of a Redis Cluster. - * - * Generated from protobuf field string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { - * @return string - */ - public function getDiscoveryEndpointIpAddress() - { - return $this->discovery_endpoint_ip_address; - } - - /** - * Discovery endpoint IP address of a Redis Cluster. - * - * Generated from protobuf field string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setDiscoveryEndpointIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->discovery_endpoint_ip_address = $var; - - return $this; - } - - /** - * Secondary endpoint IP address of a Redis Cluster. - * - * Generated from protobuf field string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { - * @return string - */ - public function getSecondaryEndpointIpAddress() - { - return $this->secondary_endpoint_ip_address; - } - - /** - * Secondary endpoint IP address of a Redis Cluster. - * - * Generated from protobuf field string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setSecondaryEndpointIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->secondary_endpoint_ip_address = $var; - - return $this; - } - - /** - * Name of the region in which the Redis Cluster is defined. For example, - * "us-central1". - * - * Generated from protobuf field string location = 6; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Name of the region in which the Redis Cluster is defined. For example, - * "us-central1". - * - * Generated from protobuf field string location = 6; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisInstanceInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisInstanceInfo.php deleted file mode 100644 index 7e8a8f9bf987..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RedisInstanceInfo.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.networkmanagement.v1.RedisInstanceInfo - */ -class RedisInstanceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a Cloud Redis Instance. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a Cloud Redis Instance. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * URI of a Cloud Redis Instance network. - * - * Generated from protobuf field string network_uri = 3; - */ - protected $network_uri = ''; - /** - * Primary endpoint IP address of a Cloud Redis Instance. - * - * Generated from protobuf field string primary_endpoint_ip = 4; - */ - protected $primary_endpoint_ip = ''; - /** - * Read endpoint IP address of a Cloud Redis Instance (if applicable). - * - * Generated from protobuf field string read_endpoint_ip = 5; - */ - protected $read_endpoint_ip = ''; - /** - * Region in which the Cloud Redis Instance is defined. - * - * Generated from protobuf field string region = 6; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a Cloud Redis Instance. - * @type string $uri - * URI of a Cloud Redis Instance. - * @type string $network_uri - * URI of a Cloud Redis Instance network. - * @type string $primary_endpoint_ip - * Primary endpoint IP address of a Cloud Redis Instance. - * @type string $read_endpoint_ip - * Read endpoint IP address of a Cloud Redis Instance (if applicable). - * @type string $region - * Region in which the Cloud Redis Instance is defined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a Cloud Redis Instance. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a Cloud Redis Instance. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a Cloud Redis Instance. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a Cloud Redis Instance. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * URI of a Cloud Redis Instance network. - * - * Generated from protobuf field string network_uri = 3; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of a Cloud Redis Instance network. - * - * Generated from protobuf field string network_uri = 3; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * Primary endpoint IP address of a Cloud Redis Instance. - * - * Generated from protobuf field string primary_endpoint_ip = 4; - * @return string - */ - public function getPrimaryEndpointIp() - { - return $this->primary_endpoint_ip; - } - - /** - * Primary endpoint IP address of a Cloud Redis Instance. - * - * Generated from protobuf field string primary_endpoint_ip = 4; - * @param string $var - * @return $this - */ - public function setPrimaryEndpointIp($var) - { - GPBUtil::checkString($var, True); - $this->primary_endpoint_ip = $var; - - return $this; - } - - /** - * Read endpoint IP address of a Cloud Redis Instance (if applicable). - * - * Generated from protobuf field string read_endpoint_ip = 5; - * @return string - */ - public function getReadEndpointIp() - { - return $this->read_endpoint_ip; - } - - /** - * Read endpoint IP address of a Cloud Redis Instance (if applicable). - * - * Generated from protobuf field string read_endpoint_ip = 5; - * @param string $var - * @return $this - */ - public function setReadEndpointIp($var) - { - GPBUtil::checkString($var, True); - $this->read_endpoint_ip = $var; - - return $this; - } - - /** - * Region in which the Cloud Redis Instance is defined. - * - * Generated from protobuf field string region = 6; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region in which the Cloud Redis Instance is defined. - * - * Generated from protobuf field string region = 6; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RerunConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RerunConnectivityTestRequest.php deleted file mode 100644 index 6a28cefac964..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RerunConnectivityTestRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.networkmanagement.v1.RerunConnectivityTestRequest - */ -class RerunConnectivityTestRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); - parent::__construct($data); - } - - /** - * Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Connectivity Test resource name using the form: - * `projects/{project_id}/locations/global/connectivityTests/{test_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo.php deleted file mode 100644 index 8d676cc45a4d..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo.php +++ /dev/null @@ -1,978 +0,0 @@ -google.cloud.networkmanagement.v1.RouteInfo - */ -class RouteInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Type of route. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8; - */ - protected $route_type = 0; - /** - * Type of next hop. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9; - */ - protected $next_hop_type = 0; - /** - * Indicates where route is applicable. Deprecated, routes with NCC_HUB scope - * are not included in the trace in new tests. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14 [deprecated = true]; - * @deprecated - */ - protected $route_scope = 0; - /** - * Name of a route. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) - * and POLICY_BASED routes only. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED - * routes only. If set for POLICY_BASED route, this is a region of VLAN - * attachments for Cloud Interconnect the route applies to. - * - * Generated from protobuf field string region = 19; - */ - protected $region = ''; - /** - * Destination IP range of the route. - * - * Generated from protobuf field string dest_ip_range = 3; - */ - protected $dest_ip_range = ''; - /** - * String type of the next hop of the route (for example, "VPN tunnel"). - * Deprecated in favor of the next_hop_type and next_hop_uri fields, not used - * in new tests. - * - * Generated from protobuf field string next_hop = 4 [deprecated = true]; - * @deprecated - */ - protected $next_hop = ''; - /** - * URI of a VPC network where route is located. - * - * Generated from protobuf field string network_uri = 5; - */ - protected $network_uri = ''; - /** - * Priority of the route. - * - * Generated from protobuf field int32 priority = 6; - */ - protected $priority = 0; - /** - * Instance tags of the route. - * - * Generated from protobuf field repeated string instance_tags = 7; - */ - private $instance_tags; - /** - * Source IP address range of the route. POLICY_BASED routes only. - * - * Generated from protobuf field string src_ip_range = 10; - */ - protected $src_ip_range = ''; - /** - * Destination port ranges of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string dest_port_ranges = 11; - */ - private $dest_port_ranges; - /** - * Source port ranges of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string src_port_ranges = 12; - */ - private $src_port_ranges; - /** - * Protocols of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string protocols = 13; - */ - private $protocols; - /** - * URI of the NCC Hub the route is advertised by. PEERING_SUBNET and - * PEERING_DYNAMIC routes that are advertised by NCC Hub only. - * - * Generated from protobuf field optional string ncc_hub_uri = 15; - */ - protected $ncc_hub_uri = null; - /** - * URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes - * that are advertised by NCC Hub only. - * - * Generated from protobuf field optional string ncc_spoke_uri = 16; - */ - protected $ncc_spoke_uri = null; - /** - * For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised - * the corresponding IP prefix. - * - * Generated from protobuf field optional string advertised_route_source_router_uri = 17; - */ - protected $advertised_route_source_router_uri = null; - /** - * For ADVERTISED routes, the URI of their next hop, i.e. the URI of the - * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) - * the advertised prefix is advertised through, or URI of the source peered - * network. Deprecated in favor of the next_hop_uri field, not used in new - * tests. - * - * Generated from protobuf field optional string advertised_route_next_hop_uri = 18 [deprecated = true]; - * @deprecated - */ - protected $advertised_route_next_hop_uri = null; - /** - * URI of the next hop resource. - * - * Generated from protobuf field string next_hop_uri = 20; - */ - protected $next_hop_uri = ''; - /** - * URI of a VPC network where the next hop resource is located. - * - * Generated from protobuf field string next_hop_network_uri = 21; - */ - protected $next_hop_network_uri = ''; - /** - * For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating - * SUBNET/STATIC route. - * - * Generated from protobuf field string originating_route_uri = 22; - */ - protected $originating_route_uri = ''; - /** - * For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of - * the originating SUBNET/STATIC/DYNAMIC route. - * - * Generated from protobuf field string originating_route_display_name = 23; - */ - protected $originating_route_display_name = ''; - /** - * For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC - * Hub, the URI of the corresponding route in NCC Hub's routing table. - * - * Generated from protobuf field string ncc_hub_route_uri = 24; - */ - protected $ncc_hub_route_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $route_type - * Type of route. - * @type int $next_hop_type - * Type of next hop. - * @type int $route_scope - * Indicates where route is applicable. Deprecated, routes with NCC_HUB scope - * are not included in the trace in new tests. - * @type string $display_name - * Name of a route. - * @type string $uri - * URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) - * and POLICY_BASED routes only. - * @type string $region - * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED - * routes only. If set for POLICY_BASED route, this is a region of VLAN - * attachments for Cloud Interconnect the route applies to. - * @type string $dest_ip_range - * Destination IP range of the route. - * @type string $next_hop - * String type of the next hop of the route (for example, "VPN tunnel"). - * Deprecated in favor of the next_hop_type and next_hop_uri fields, not used - * in new tests. - * @type string $network_uri - * URI of a VPC network where route is located. - * @type int $priority - * Priority of the route. - * @type array|\Google\Protobuf\Internal\RepeatedField $instance_tags - * Instance tags of the route. - * @type string $src_ip_range - * Source IP address range of the route. POLICY_BASED routes only. - * @type array|\Google\Protobuf\Internal\RepeatedField $dest_port_ranges - * Destination port ranges of the route. POLICY_BASED routes only. - * @type array|\Google\Protobuf\Internal\RepeatedField $src_port_ranges - * Source port ranges of the route. POLICY_BASED routes only. - * @type array|\Google\Protobuf\Internal\RepeatedField $protocols - * Protocols of the route. POLICY_BASED routes only. - * @type string $ncc_hub_uri - * URI of the NCC Hub the route is advertised by. PEERING_SUBNET and - * PEERING_DYNAMIC routes that are advertised by NCC Hub only. - * @type string $ncc_spoke_uri - * URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes - * that are advertised by NCC Hub only. - * @type string $advertised_route_source_router_uri - * For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised - * the corresponding IP prefix. - * @type string $advertised_route_next_hop_uri - * For ADVERTISED routes, the URI of their next hop, i.e. the URI of the - * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) - * the advertised prefix is advertised through, or URI of the source peered - * network. Deprecated in favor of the next_hop_uri field, not used in new - * tests. - * @type string $next_hop_uri - * URI of the next hop resource. - * @type string $next_hop_network_uri - * URI of a VPC network where the next hop resource is located. - * @type string $originating_route_uri - * For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating - * SUBNET/STATIC route. - * @type string $originating_route_display_name - * For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of - * the originating SUBNET/STATIC/DYNAMIC route. - * @type string $ncc_hub_route_uri - * For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC - * Hub, the URI of the corresponding route in NCC Hub's routing table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Type of route. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8; - * @return int - */ - public function getRouteType() - { - return $this->route_type; - } - - /** - * Type of route. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8; - * @param int $var - * @return $this - */ - public function setRouteType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\RouteInfo\RouteType::class); - $this->route_type = $var; - - return $this; - } - - /** - * Type of next hop. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9; - * @return int - */ - public function getNextHopType() - { - return $this->next_hop_type; - } - - /** - * Type of next hop. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9; - * @param int $var - * @return $this - */ - public function setNextHopType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\RouteInfo\NextHopType::class); - $this->next_hop_type = $var; - - return $this; - } - - /** - * Indicates where route is applicable. Deprecated, routes with NCC_HUB scope - * are not included in the trace in new tests. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14 [deprecated = true]; - * @return int - * @deprecated - */ - public function getRouteScope() - { - if ($this->route_scope !== 0) { - @trigger_error('route_scope is deprecated.', E_USER_DEPRECATED); - } - return $this->route_scope; - } - - /** - * Indicates where route is applicable. Deprecated, routes with NCC_HUB scope - * are not included in the trace in new tests. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setRouteScope($var) - { - @trigger_error('route_scope is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\RouteInfo\RouteScope::class); - $this->route_scope = $var; - - return $this; - } - - /** - * Name of a route. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a route. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) - * and POLICY_BASED routes only. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) - * and POLICY_BASED routes only. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED - * routes only. If set for POLICY_BASED route, this is a region of VLAN - * attachments for Cloud Interconnect the route applies to. - * - * Generated from protobuf field string region = 19; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED - * routes only. If set for POLICY_BASED route, this is a region of VLAN - * attachments for Cloud Interconnect the route applies to. - * - * Generated from protobuf field string region = 19; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * Destination IP range of the route. - * - * Generated from protobuf field string dest_ip_range = 3; - * @return string - */ - public function getDestIpRange() - { - return $this->dest_ip_range; - } - - /** - * Destination IP range of the route. - * - * Generated from protobuf field string dest_ip_range = 3; - * @param string $var - * @return $this - */ - public function setDestIpRange($var) - { - GPBUtil::checkString($var, True); - $this->dest_ip_range = $var; - - return $this; - } - - /** - * String type of the next hop of the route (for example, "VPN tunnel"). - * Deprecated in favor of the next_hop_type and next_hop_uri fields, not used - * in new tests. - * - * Generated from protobuf field string next_hop = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNextHop() - { - if ($this->next_hop !== '') { - @trigger_error('next_hop is deprecated.', E_USER_DEPRECATED); - } - return $this->next_hop; - } - - /** - * String type of the next hop of the route (for example, "VPN tunnel"). - * Deprecated in favor of the next_hop_type and next_hop_uri fields, not used - * in new tests. - * - * Generated from protobuf field string next_hop = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNextHop($var) - { - @trigger_error('next_hop is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->next_hop = $var; - - return $this; - } - - /** - * URI of a VPC network where route is located. - * - * Generated from protobuf field string network_uri = 5; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of a VPC network where route is located. - * - * Generated from protobuf field string network_uri = 5; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * Priority of the route. - * - * Generated from protobuf field int32 priority = 6; - * @return int - */ - public function getPriority() - { - return $this->priority; - } - - /** - * Priority of the route. - * - * Generated from protobuf field int32 priority = 6; - * @param int $var - * @return $this - */ - public function setPriority($var) - { - GPBUtil::checkInt32($var); - $this->priority = $var; - - return $this; - } - - /** - * Instance tags of the route. - * - * Generated from protobuf field repeated string instance_tags = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInstanceTags() - { - return $this->instance_tags; - } - - /** - * Instance tags of the route. - * - * Generated from protobuf field repeated string instance_tags = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInstanceTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->instance_tags = $arr; - - return $this; - } - - /** - * Source IP address range of the route. POLICY_BASED routes only. - * - * Generated from protobuf field string src_ip_range = 10; - * @return string - */ - public function getSrcIpRange() - { - return $this->src_ip_range; - } - - /** - * Source IP address range of the route. POLICY_BASED routes only. - * - * Generated from protobuf field string src_ip_range = 10; - * @param string $var - * @return $this - */ - public function setSrcIpRange($var) - { - GPBUtil::checkString($var, True); - $this->src_ip_range = $var; - - return $this; - } - - /** - * Destination port ranges of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string dest_port_ranges = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDestPortRanges() - { - return $this->dest_port_ranges; - } - - /** - * Destination port ranges of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string dest_port_ranges = 11; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDestPortRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->dest_port_ranges = $arr; - - return $this; - } - - /** - * Source port ranges of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string src_port_ranges = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSrcPortRanges() - { - return $this->src_port_ranges; - } - - /** - * Source port ranges of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string src_port_ranges = 12; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSrcPortRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->src_port_ranges = $arr; - - return $this; - } - - /** - * Protocols of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string protocols = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProtocols() - { - return $this->protocols; - } - - /** - * Protocols of the route. POLICY_BASED routes only. - * - * Generated from protobuf field repeated string protocols = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProtocols($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->protocols = $arr; - - return $this; - } - - /** - * URI of the NCC Hub the route is advertised by. PEERING_SUBNET and - * PEERING_DYNAMIC routes that are advertised by NCC Hub only. - * - * Generated from protobuf field optional string ncc_hub_uri = 15; - * @return string - */ - public function getNccHubUri() - { - return isset($this->ncc_hub_uri) ? $this->ncc_hub_uri : ''; - } - - public function hasNccHubUri() - { - return isset($this->ncc_hub_uri); - } - - public function clearNccHubUri() - { - unset($this->ncc_hub_uri); - } - - /** - * URI of the NCC Hub the route is advertised by. PEERING_SUBNET and - * PEERING_DYNAMIC routes that are advertised by NCC Hub only. - * - * Generated from protobuf field optional string ncc_hub_uri = 15; - * @param string $var - * @return $this - */ - public function setNccHubUri($var) - { - GPBUtil::checkString($var, True); - $this->ncc_hub_uri = $var; - - return $this; - } - - /** - * URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes - * that are advertised by NCC Hub only. - * - * Generated from protobuf field optional string ncc_spoke_uri = 16; - * @return string - */ - public function getNccSpokeUri() - { - return isset($this->ncc_spoke_uri) ? $this->ncc_spoke_uri : ''; - } - - public function hasNccSpokeUri() - { - return isset($this->ncc_spoke_uri); - } - - public function clearNccSpokeUri() - { - unset($this->ncc_spoke_uri); - } - - /** - * URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes - * that are advertised by NCC Hub only. - * - * Generated from protobuf field optional string ncc_spoke_uri = 16; - * @param string $var - * @return $this - */ - public function setNccSpokeUri($var) - { - GPBUtil::checkString($var, True); - $this->ncc_spoke_uri = $var; - - return $this; - } - - /** - * For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised - * the corresponding IP prefix. - * - * Generated from protobuf field optional string advertised_route_source_router_uri = 17; - * @return string - */ - public function getAdvertisedRouteSourceRouterUri() - { - return isset($this->advertised_route_source_router_uri) ? $this->advertised_route_source_router_uri : ''; - } - - public function hasAdvertisedRouteSourceRouterUri() - { - return isset($this->advertised_route_source_router_uri); - } - - public function clearAdvertisedRouteSourceRouterUri() - { - unset($this->advertised_route_source_router_uri); - } - - /** - * For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised - * the corresponding IP prefix. - * - * Generated from protobuf field optional string advertised_route_source_router_uri = 17; - * @param string $var - * @return $this - */ - public function setAdvertisedRouteSourceRouterUri($var) - { - GPBUtil::checkString($var, True); - $this->advertised_route_source_router_uri = $var; - - return $this; - } - - /** - * For ADVERTISED routes, the URI of their next hop, i.e. the URI of the - * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) - * the advertised prefix is advertised through, or URI of the source peered - * network. Deprecated in favor of the next_hop_uri field, not used in new - * tests. - * - * Generated from protobuf field optional string advertised_route_next_hop_uri = 18 [deprecated = true]; - * @return string - * @deprecated - */ - public function getAdvertisedRouteNextHopUri() - { - if (isset($this->advertised_route_next_hop_uri)) { - @trigger_error('advertised_route_next_hop_uri is deprecated.', E_USER_DEPRECATED); - } - return isset($this->advertised_route_next_hop_uri) ? $this->advertised_route_next_hop_uri : ''; - } - - public function hasAdvertisedRouteNextHopUri() - { - if (isset($this->advertised_route_next_hop_uri)) { - @trigger_error('advertised_route_next_hop_uri is deprecated.', E_USER_DEPRECATED); - } - return isset($this->advertised_route_next_hop_uri); - } - - public function clearAdvertisedRouteNextHopUri() - { - @trigger_error('advertised_route_next_hop_uri is deprecated.', E_USER_DEPRECATED); - unset($this->advertised_route_next_hop_uri); - } - - /** - * For ADVERTISED routes, the URI of their next hop, i.e. the URI of the - * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) - * the advertised prefix is advertised through, or URI of the source peered - * network. Deprecated in favor of the next_hop_uri field, not used in new - * tests. - * - * Generated from protobuf field optional string advertised_route_next_hop_uri = 18 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setAdvertisedRouteNextHopUri($var) - { - @trigger_error('advertised_route_next_hop_uri is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->advertised_route_next_hop_uri = $var; - - return $this; - } - - /** - * URI of the next hop resource. - * - * Generated from protobuf field string next_hop_uri = 20; - * @return string - */ - public function getNextHopUri() - { - return $this->next_hop_uri; - } - - /** - * URI of the next hop resource. - * - * Generated from protobuf field string next_hop_uri = 20; - * @param string $var - * @return $this - */ - public function setNextHopUri($var) - { - GPBUtil::checkString($var, True); - $this->next_hop_uri = $var; - - return $this; - } - - /** - * URI of a VPC network where the next hop resource is located. - * - * Generated from protobuf field string next_hop_network_uri = 21; - * @return string - */ - public function getNextHopNetworkUri() - { - return $this->next_hop_network_uri; - } - - /** - * URI of a VPC network where the next hop resource is located. - * - * Generated from protobuf field string next_hop_network_uri = 21; - * @param string $var - * @return $this - */ - public function setNextHopNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->next_hop_network_uri = $var; - - return $this; - } - - /** - * For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating - * SUBNET/STATIC route. - * - * Generated from protobuf field string originating_route_uri = 22; - * @return string - */ - public function getOriginatingRouteUri() - { - return $this->originating_route_uri; - } - - /** - * For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating - * SUBNET/STATIC route. - * - * Generated from protobuf field string originating_route_uri = 22; - * @param string $var - * @return $this - */ - public function setOriginatingRouteUri($var) - { - GPBUtil::checkString($var, True); - $this->originating_route_uri = $var; - - return $this; - } - - /** - * For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of - * the originating SUBNET/STATIC/DYNAMIC route. - * - * Generated from protobuf field string originating_route_display_name = 23; - * @return string - */ - public function getOriginatingRouteDisplayName() - { - return $this->originating_route_display_name; - } - - /** - * For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of - * the originating SUBNET/STATIC/DYNAMIC route. - * - * Generated from protobuf field string originating_route_display_name = 23; - * @param string $var - * @return $this - */ - public function setOriginatingRouteDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->originating_route_display_name = $var; - - return $this; - } - - /** - * For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC - * Hub, the URI of the corresponding route in NCC Hub's routing table. - * - * Generated from protobuf field string ncc_hub_route_uri = 24; - * @return string - */ - public function getNccHubRouteUri() - { - return $this->ncc_hub_route_uri; - } - - /** - * For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC - * Hub, the URI of the corresponding route in NCC Hub's routing table. - * - * Generated from protobuf field string ncc_hub_route_uri = 24; - * @param string $var - * @return $this - */ - public function setNccHubRouteUri($var) - { - GPBUtil::checkString($var, True); - $this->ncc_hub_route_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/NextHopType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/NextHopType.php deleted file mode 100644 index eaa8f61906e5..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/NextHopType.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.networkmanagement.v1.RouteInfo.NextHopType - */ -class NextHopType -{ - /** - * Unspecified type. Default value. - * - * Generated from protobuf enum NEXT_HOP_TYPE_UNSPECIFIED = 0; - */ - const NEXT_HOP_TYPE_UNSPECIFIED = 0; - /** - * Next hop is an IP address. - * - * Generated from protobuf enum NEXT_HOP_IP = 1; - */ - const NEXT_HOP_IP = 1; - /** - * Next hop is a Compute Engine instance. - * - * Generated from protobuf enum NEXT_HOP_INSTANCE = 2; - */ - const NEXT_HOP_INSTANCE = 2; - /** - * Next hop is a VPC network gateway. - * - * Generated from protobuf enum NEXT_HOP_NETWORK = 3; - */ - const NEXT_HOP_NETWORK = 3; - /** - * Next hop is a peering VPC. This scenario only happens when the user - * doesn't have permissions to the project where the next hop resource is - * located. - * - * Generated from protobuf enum NEXT_HOP_PEERING = 4; - */ - const NEXT_HOP_PEERING = 4; - /** - * Next hop is an interconnect. - * - * Generated from protobuf enum NEXT_HOP_INTERCONNECT = 5; - */ - const NEXT_HOP_INTERCONNECT = 5; - /** - * Next hop is a VPN tunnel. - * - * Generated from protobuf enum NEXT_HOP_VPN_TUNNEL = 6; - */ - const NEXT_HOP_VPN_TUNNEL = 6; - /** - * Next hop is a VPN gateway. This scenario only happens when tracing - * connectivity from an on-premises network to Google Cloud through a VPN. - * The analysis simulates a packet departing from the on-premises network - * through a VPN tunnel and arriving at a Cloud VPN gateway. - * - * Generated from protobuf enum NEXT_HOP_VPN_GATEWAY = 7; - */ - const NEXT_HOP_VPN_GATEWAY = 7; - /** - * Next hop is an internet gateway. - * - * Generated from protobuf enum NEXT_HOP_INTERNET_GATEWAY = 8; - */ - const NEXT_HOP_INTERNET_GATEWAY = 8; - /** - * Next hop is blackhole; that is, the next hop either does not exist or is - * unusable. - * - * Generated from protobuf enum NEXT_HOP_BLACKHOLE = 9; - */ - const NEXT_HOP_BLACKHOLE = 9; - /** - * Next hop is the forwarding rule of an Internal Load Balancer. - * - * Generated from protobuf enum NEXT_HOP_ILB = 10; - */ - const NEXT_HOP_ILB = 10; - /** - * Next hop is a - * [router appliance - * instance](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/ra-overview). - * - * Generated from protobuf enum NEXT_HOP_ROUTER_APPLIANCE = 11; - */ - const NEXT_HOP_ROUTER_APPLIANCE = 11; - /** - * Next hop is an NCC hub. This scenario only happens when the user doesn't - * have permissions to the project where the next hop resource is located. - * - * Generated from protobuf enum NEXT_HOP_NCC_HUB = 12; - */ - const NEXT_HOP_NCC_HUB = 12; - /** - * Next hop is Secure Web Proxy Gateway. - * - * Generated from protobuf enum SECURE_WEB_PROXY_GATEWAY = 13; - */ - const SECURE_WEB_PROXY_GATEWAY = 13; - - private static $valueToName = [ - self::NEXT_HOP_TYPE_UNSPECIFIED => 'NEXT_HOP_TYPE_UNSPECIFIED', - self::NEXT_HOP_IP => 'NEXT_HOP_IP', - self::NEXT_HOP_INSTANCE => 'NEXT_HOP_INSTANCE', - self::NEXT_HOP_NETWORK => 'NEXT_HOP_NETWORK', - self::NEXT_HOP_PEERING => 'NEXT_HOP_PEERING', - self::NEXT_HOP_INTERCONNECT => 'NEXT_HOP_INTERCONNECT', - self::NEXT_HOP_VPN_TUNNEL => 'NEXT_HOP_VPN_TUNNEL', - self::NEXT_HOP_VPN_GATEWAY => 'NEXT_HOP_VPN_GATEWAY', - self::NEXT_HOP_INTERNET_GATEWAY => 'NEXT_HOP_INTERNET_GATEWAY', - self::NEXT_HOP_BLACKHOLE => 'NEXT_HOP_BLACKHOLE', - self::NEXT_HOP_ILB => 'NEXT_HOP_ILB', - self::NEXT_HOP_ROUTER_APPLIANCE => 'NEXT_HOP_ROUTER_APPLIANCE', - self::NEXT_HOP_NCC_HUB => 'NEXT_HOP_NCC_HUB', - self::SECURE_WEB_PROXY_GATEWAY => 'SECURE_WEB_PROXY_GATEWAY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NextHopType::class, \Google\Cloud\NetworkManagement\V1\RouteInfo_NextHopType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteScope.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteScope.php deleted file mode 100644 index 63ab17217fcb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteScope.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.networkmanagement.v1.RouteInfo.RouteScope - */ -class RouteScope -{ - /** - * Unspecified scope. Default value. - * - * Generated from protobuf enum ROUTE_SCOPE_UNSPECIFIED = 0; - */ - const ROUTE_SCOPE_UNSPECIFIED = 0; - /** - * Route is applicable to packets in Network. - * - * Generated from protobuf enum NETWORK = 1; - */ - const NETWORK = 1; - /** - * Route is applicable to packets using NCC Hub's routing table. - * - * Generated from protobuf enum NCC_HUB = 2; - */ - const NCC_HUB = 2; - - private static $valueToName = [ - self::ROUTE_SCOPE_UNSPECIFIED => 'ROUTE_SCOPE_UNSPECIFIED', - self::NETWORK => 'NETWORK', - self::NCC_HUB => 'NCC_HUB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RouteScope::class, \Google\Cloud\NetworkManagement\V1\RouteInfo_RouteScope::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteType.php deleted file mode 100644 index 0cff7417cde1..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/RouteInfo/RouteType.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.networkmanagement.v1.RouteInfo.RouteType - */ -class RouteType -{ - /** - * Unspecified type. Default value. - * - * Generated from protobuf enum ROUTE_TYPE_UNSPECIFIED = 0; - */ - const ROUTE_TYPE_UNSPECIFIED = 0; - /** - * Route is a subnet route automatically created by the system. - * - * Generated from protobuf enum SUBNET = 1; - */ - const SUBNET = 1; - /** - * Static route created by the user, including the default route to the - * internet. - * - * Generated from protobuf enum STATIC = 2; - */ - const PBSTATIC = 2; - /** - * Dynamic route exchanged between BGP peers. - * - * Generated from protobuf enum DYNAMIC = 3; - */ - const DYNAMIC = 3; - /** - * A subnet route received from peering network or NCC Hub. - * - * Generated from protobuf enum PEERING_SUBNET = 4; - */ - const PEERING_SUBNET = 4; - /** - * A static route received from peering network. - * - * Generated from protobuf enum PEERING_STATIC = 5; - */ - const PEERING_STATIC = 5; - /** - * A dynamic route received from peering network or NCC Hub. - * - * Generated from protobuf enum PEERING_DYNAMIC = 6; - */ - const PEERING_DYNAMIC = 6; - /** - * Policy based route. - * - * Generated from protobuf enum POLICY_BASED = 7; - */ - const POLICY_BASED = 7; - /** - * Advertised route. Synthetic route which is used to transition from the - * StartFromPrivateNetwork state in Connectivity tests. - * - * Generated from protobuf enum ADVERTISED = 101; - */ - const ADVERTISED = 101; - - private static $valueToName = [ - self::ROUTE_TYPE_UNSPECIFIED => 'ROUTE_TYPE_UNSPECIFIED', - self::SUBNET => 'SUBNET', - self::PBSTATIC => 'STATIC', - self::DYNAMIC => 'DYNAMIC', - self::PEERING_SUBNET => 'PEERING_SUBNET', - self::PEERING_STATIC => 'PEERING_STATIC', - self::PEERING_DYNAMIC => 'PEERING_DYNAMIC', - self::POLICY_BASED => 'POLICY_BASED', - self::ADVERTISED => 'ADVERTISED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RouteType::class, \Google\Cloud\NetworkManagement\V1\RouteInfo_RouteType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessExternalConnectionInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessExternalConnectionInfo.php deleted file mode 100644 index fdd041d1dab9..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessExternalConnectionInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfo - */ -class ServerlessExternalConnectionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Selected starting IP address, from the Google dynamic address pool. - * - * Generated from protobuf field string selected_ip_address = 1 [(.google.api.field_info) = { - */ - protected $selected_ip_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selected_ip_address - * Selected starting IP address, from the Google dynamic address pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Selected starting IP address, from the Google dynamic address pool. - * - * Generated from protobuf field string selected_ip_address = 1 [(.google.api.field_info) = { - * @return string - */ - public function getSelectedIpAddress() - { - return $this->selected_ip_address; - } - - /** - * Selected starting IP address, from the Google dynamic address pool. - * - * Generated from protobuf field string selected_ip_address = 1 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setSelectedIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->selected_ip_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessNegInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessNegInfo.php deleted file mode 100644 index 582fd758a26c..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ServerlessNegInfo.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.networkmanagement.v1.ServerlessNegInfo - */ -class ServerlessNegInfo extends \Google\Protobuf\Internal\Message -{ - /** - * URI of the serverless network endpoint group. - * - * Generated from protobuf field string neg_uri = 1; - */ - protected $neg_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $neg_uri - * URI of the serverless network endpoint group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * URI of the serverless network endpoint group. - * - * Generated from protobuf field string neg_uri = 1; - * @return string - */ - public function getNegUri() - { - return $this->neg_uri; - } - - /** - * URI of the serverless network endpoint group. - * - * Generated from protobuf field string neg_uri = 1; - * @param string $var - * @return $this - */ - public function setNegUri($var) - { - GPBUtil::checkString($var, True); - $this->neg_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsRequest.php deleted file mode 100644 index 5529db379a68..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsRequest.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest - */ -class ShowEffectiveFlowLogsConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the VpcFlowLogsConfig, specified in - * the following format: `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The resource to get the effective VPC Flow Logs configuration - * for. The resource must belong to the same project as the parent. The - * resource must be a network, subnetwork, interconnect attachment, VPN - * tunnel, or a project. - * - * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource = ''; - /** - * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter - * expression. A filter expression must use the supported [CEL logic - * operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the VpcFlowLogsConfig, specified in - * the following format: `projects/{project_id}/locations/global` - * @type string $resource - * Required. The resource to get the effective VPC Flow Logs configuration - * for. The resource must belong to the same project as the parent. The - * resource must be a network, subnetwork, interconnect attachment, VPN - * tunnel, or a project. - * @type int $page_size - * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. - * @type string $page_token - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * @type string $filter - * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter - * expression. A filter expression must use the supported [CEL logic - * operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the VpcFlowLogsConfig, specified in - * the following format: `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource of the VpcFlowLogsConfig, specified in - * the following format: `projects/{project_id}/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The resource to get the effective VPC Flow Logs configuration - * for. The resource must belong to the same project as the parent. The - * resource must be a network, subnetwork, interconnect attachment, VPN - * tunnel, or a project. - * - * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Required. The resource to get the effective VPC Flow Logs configuration - * for. The resource must belong to the same project as the parent. The - * resource must be a network, subnetwork, interconnect attachment, VPN - * tunnel, or a project. - * - * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token from an earlier query, as returned in - * `next_page_token`. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter - * expression. A filter expression must use the supported [CEL logic - * operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter - * expression. A filter expression must use the supported [CEL logic - * operators] - * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsResponse.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsResponse.php deleted file mode 100644 index 98c6e00bc0cb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/ShowEffectiveFlowLogsConfigsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse - */ -class ShowEffectiveFlowLogsConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Effective Vpc Flow Logs configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; - */ - private $effective_flow_logs_configs; - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $effective_flow_logs_configs - * List of Effective Vpc Flow Logs configurations. - * @type string $next_page_token - * Page token to fetch the next set of configurations. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached (when querying all locations with `-`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * List of Effective Vpc Flow Logs configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveFlowLogsConfigs() - { - return $this->effective_flow_logs_configs; - } - - /** - * List of Effective Vpc Flow Logs configurations. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; - * @param array<\Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveFlowLogsConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\EffectiveVpcFlowLogsConfig::class); - $this->effective_flow_logs_configs = $arr; - - return $this; - } - - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Page token to fetch the next set of configurations. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached (when querying all locations with `-`). - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step.php deleted file mode 100644 index 0df8d7a4b492..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step.php +++ /dev/null @@ -1,1295 +0,0 @@ -google.cloud.networkmanagement.v1.Step - */ -class Step extends \Google\Protobuf\Internal\Message -{ - /** - * A description of the step. Usually this is a summary of the state. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * Each step is in one of the pre-defined states. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Step.State state = 2; - */ - protected $state = 0; - /** - * This is a step that leads to the final state Drop. - * - * Generated from protobuf field bool causes_drop = 3; - */ - protected $causes_drop = false; - /** - * Project ID that contains the configuration this step is validating. - * - * Generated from protobuf field string project_id = 4; - */ - protected $project_id = ''; - protected $step_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * A description of the step. Usually this is a summary of the state. - * @type int $state - * Each step is in one of the pre-defined states. - * @type bool $causes_drop - * This is a step that leads to the final state Drop. - * @type string $project_id - * Project ID that contains the configuration this step is validating. - * @type \Google\Cloud\NetworkManagement\V1\InstanceInfo $instance - * Display information of a Compute Engine instance. - * @type \Google\Cloud\NetworkManagement\V1\FirewallInfo $firewall - * Display information of a Compute Engine firewall rule. - * @type \Google\Cloud\NetworkManagement\V1\RouteInfo $route - * Display information of a Compute Engine route. - * @type \Google\Cloud\NetworkManagement\V1\EndpointInfo $endpoint - * Display information of the source and destination under analysis. - * The endpoint information in an intermediate state may differ with the - * initial input, as it might be modified by state like NAT, - * or Connection Proxy. - * @type \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo $google_service - * Display information of a Google service - * @type \Google\Cloud\NetworkManagement\V1\ForwardingRuleInfo $forwarding_rule - * Display information of a Compute Engine forwarding rule. - * @type \Google\Cloud\NetworkManagement\V1\HybridSubnetInfo $hybrid_subnet - * Display information of a hybrid subnet. - * @type \Google\Cloud\NetworkManagement\V1\VpnGatewayInfo $vpn_gateway - * Display information of a Compute Engine VPN gateway. - * @type \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo $vpn_tunnel - * Display information of a Compute Engine VPN tunnel. - * @type \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo $interconnect_attachment - * Display information of an interconnect attachment. - * @type \Google\Cloud\NetworkManagement\V1\VpcConnectorInfo $vpc_connector - * Display information of a VPC connector. - * @type \Google\Cloud\NetworkManagement\V1\DirectVpcEgressConnectionInfo $direct_vpc_egress_connection - * Display information of a serverless direct VPC egress connection. - * @type \Google\Cloud\NetworkManagement\V1\ServerlessExternalConnectionInfo $serverless_external_connection - * Display information of a serverless public (external) connection. - * @type \Google\Cloud\NetworkManagement\V1\DeliverInfo $deliver - * Display information of the final state "deliver" and reason. - * @type \Google\Cloud\NetworkManagement\V1\ForwardInfo $forward - * Display information of the final state "forward" and reason. - * @type \Google\Cloud\NetworkManagement\V1\AbortInfo $abort - * Display information of the final state "abort" and reason. - * @type \Google\Cloud\NetworkManagement\V1\DropInfo $drop - * Display information of the final state "drop" and reason. - * @type \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo $load_balancer - * Display information of the load balancers. Deprecated in favor of the - * `load_balancer_backend_info` field, not used in new tests. - * @type \Google\Cloud\NetworkManagement\V1\NetworkInfo $network - * Display information of a Google Cloud network. - * @type \Google\Cloud\NetworkManagement\V1\GKEMasterInfo $gke_master - * Display information of a Google Kubernetes Engine cluster master. - * @type \Google\Cloud\NetworkManagement\V1\GkePodInfo $gke_pod - * Display information of a Google Kubernetes Engine Pod. - * @type \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo $ip_masquerading_skipped - * Display information of the reason why GKE Pod IP masquerading was - * skipped. - * @type \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo $cloud_sql_instance - * Display information of a Cloud SQL instance. - * @type \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo $redis_instance - * Display information of a Redis Instance. - * @type \Google\Cloud\NetworkManagement\V1\RedisClusterInfo $redis_cluster - * Display information of a Redis Cluster. - * @type \Google\Cloud\NetworkManagement\V1\CloudFunctionInfo $cloud_function - * Display information of a Cloud Function. - * @type \Google\Cloud\NetworkManagement\V1\AppEngineVersionInfo $app_engine_version - * Display information of an App Engine service version. - * @type \Google\Cloud\NetworkManagement\V1\CloudRunRevisionInfo $cloud_run_revision - * Display information of a Cloud Run revision. - * @type \Google\Cloud\NetworkManagement\V1\NatInfo $nat - * Display information of a NAT. - * @type \Google\Cloud\NetworkManagement\V1\ProxyConnectionInfo $proxy_connection - * Display information of a ProxyConnection. - * @type \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo $load_balancer_backend_info - * Display information of a specific load balancer backend. - * @type \Google\Cloud\NetworkManagement\V1\StorageBucketInfo $storage_bucket - * Display information of a Storage Bucket. Used only for return traces. - * @type \Google\Cloud\NetworkManagement\V1\ServerlessNegInfo $serverless_neg - * Display information of a Serverless network endpoint group backend. Used - * only for return traces. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * A description of the step. Usually this is a summary of the state. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of the step. Usually this is a summary of the state. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Each step is in one of the pre-defined states. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Step.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Each step is in one of the pre-defined states. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.Step.State state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\Step\State::class); - $this->state = $var; - - return $this; - } - - /** - * This is a step that leads to the final state Drop. - * - * Generated from protobuf field bool causes_drop = 3; - * @return bool - */ - public function getCausesDrop() - { - return $this->causes_drop; - } - - /** - * This is a step that leads to the final state Drop. - * - * Generated from protobuf field bool causes_drop = 3; - * @param bool $var - * @return $this - */ - public function setCausesDrop($var) - { - GPBUtil::checkBool($var); - $this->causes_drop = $var; - - return $this; - } - - /** - * Project ID that contains the configuration this step is validating. - * - * Generated from protobuf field string project_id = 4; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project ID that contains the configuration this step is validating. - * - * Generated from protobuf field string project_id = 4; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Display information of a Compute Engine instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo instance = 5; - * @return \Google\Cloud\NetworkManagement\V1\InstanceInfo|null - */ - public function getInstance() - { - return $this->readOneof(5); - } - - public function hasInstance() - { - return $this->hasOneof(5); - } - - /** - * Display information of a Compute Engine instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InstanceInfo instance = 5; - * @param \Google\Cloud\NetworkManagement\V1\InstanceInfo $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\InstanceInfo::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Display information of a Compute Engine firewall rule. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo firewall = 6; - * @return \Google\Cloud\NetworkManagement\V1\FirewallInfo|null - */ - public function getFirewall() - { - return $this->readOneof(6); - } - - public function hasFirewall() - { - return $this->hasOneof(6); - } - - /** - * Display information of a Compute Engine firewall rule. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.FirewallInfo firewall = 6; - * @param \Google\Cloud\NetworkManagement\V1\FirewallInfo $var - * @return $this - */ - public function setFirewall($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\FirewallInfo::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Display information of a Compute Engine route. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo route = 7; - * @return \Google\Cloud\NetworkManagement\V1\RouteInfo|null - */ - public function getRoute() - { - return $this->readOneof(7); - } - - public function hasRoute() - { - return $this->hasOneof(7); - } - - /** - * Display information of a Compute Engine route. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RouteInfo route = 7; - * @param \Google\Cloud\NetworkManagement\V1\RouteInfo $var - * @return $this - */ - public function setRoute($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\RouteInfo::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Display information of the source and destination under analysis. - * The endpoint information in an intermediate state may differ with the - * initial input, as it might be modified by state like NAT, - * or Connection Proxy. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint = 8; - * @return \Google\Cloud\NetworkManagement\V1\EndpointInfo|null - */ - public function getEndpoint() - { - return $this->readOneof(8); - } - - public function hasEndpoint() - { - return $this->hasOneof(8); - } - - /** - * Display information of the source and destination under analysis. - * The endpoint information in an intermediate state may differ with the - * initial input, as it might be modified by state like NAT, - * or Connection Proxy. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint = 8; - * @param \Google\Cloud\NetworkManagement\V1\EndpointInfo $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\EndpointInfo::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Display information of a Google service - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24; - * @return \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo|null - */ - public function getGoogleService() - { - return $this->readOneof(24); - } - - public function hasGoogleService() - { - return $this->hasOneof(24); - } - - /** - * Display information of a Google service - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GoogleServiceInfo google_service = 24; - * @param \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo $var - * @return $this - */ - public function setGoogleService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\GoogleServiceInfo::class); - $this->writeOneof(24, $var); - - return $this; - } - - /** - * Display information of a Compute Engine forwarding rule. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardingRuleInfo forwarding_rule = 9; - * @return \Google\Cloud\NetworkManagement\V1\ForwardingRuleInfo|null - */ - public function getForwardingRule() - { - return $this->readOneof(9); - } - - public function hasForwardingRule() - { - return $this->hasOneof(9); - } - - /** - * Display information of a Compute Engine forwarding rule. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardingRuleInfo forwarding_rule = 9; - * @param \Google\Cloud\NetworkManagement\V1\ForwardingRuleInfo $var - * @return $this - */ - public function setForwardingRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ForwardingRuleInfo::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Display information of a hybrid subnet. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; - * @return \Google\Cloud\NetworkManagement\V1\HybridSubnetInfo|null - */ - public function getHybridSubnet() - { - return $this->readOneof(36); - } - - public function hasHybridSubnet() - { - return $this->hasOneof(36); - } - - /** - * Display information of a hybrid subnet. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; - * @param \Google\Cloud\NetworkManagement\V1\HybridSubnetInfo $var - * @return $this - */ - public function setHybridSubnet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\HybridSubnetInfo::class); - $this->writeOneof(36, $var); - - return $this; - } - - /** - * Display information of a Compute Engine VPN gateway. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnGatewayInfo vpn_gateway = 10; - * @return \Google\Cloud\NetworkManagement\V1\VpnGatewayInfo|null - */ - public function getVpnGateway() - { - return $this->readOneof(10); - } - - public function hasVpnGateway() - { - return $this->hasOneof(10); - } - - /** - * Display information of a Compute Engine VPN gateway. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnGatewayInfo vpn_gateway = 10; - * @param \Google\Cloud\NetworkManagement\V1\VpnGatewayInfo $var - * @return $this - */ - public function setVpnGateway($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpnGatewayInfo::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Display information of a Compute Engine VPN tunnel. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo vpn_tunnel = 11; - * @return \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo|null - */ - public function getVpnTunnel() - { - return $this->readOneof(11); - } - - public function hasVpnTunnel() - { - return $this->hasOneof(11); - } - - /** - * Display information of a Compute Engine VPN tunnel. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo vpn_tunnel = 11; - * @param \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo $var - * @return $this - */ - public function setVpnTunnel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Display information of an interconnect attachment. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; - * @return \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo|null - */ - public function getInterconnectAttachment() - { - return $this->readOneof(35); - } - - public function hasInterconnectAttachment() - { - return $this->hasOneof(35); - } - - /** - * Display information of an interconnect attachment. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; - * @param \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo $var - * @return $this - */ - public function setInterconnectAttachment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\InterconnectAttachmentInfo::class); - $this->writeOneof(35, $var); - - return $this; - } - - /** - * Display information of a VPC connector. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21; - * @return \Google\Cloud\NetworkManagement\V1\VpcConnectorInfo|null - */ - public function getVpcConnector() - { - return $this->readOneof(21); - } - - public function hasVpcConnector() - { - return $this->hasOneof(21); - } - - /** - * Display information of a VPC connector. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcConnectorInfo vpc_connector = 21; - * @param \Google\Cloud\NetworkManagement\V1\VpcConnectorInfo $var - * @return $this - */ - public function setVpcConnector($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpcConnectorInfo::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * Display information of a serverless direct VPC egress connection. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DirectVpcEgressConnectionInfo direct_vpc_egress_connection = 33; - * @return \Google\Cloud\NetworkManagement\V1\DirectVpcEgressConnectionInfo|null - */ - public function getDirectVpcEgressConnection() - { - return $this->readOneof(33); - } - - public function hasDirectVpcEgressConnection() - { - return $this->hasOneof(33); - } - - /** - * Display information of a serverless direct VPC egress connection. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DirectVpcEgressConnectionInfo direct_vpc_egress_connection = 33; - * @param \Google\Cloud\NetworkManagement\V1\DirectVpcEgressConnectionInfo $var - * @return $this - */ - public function setDirectVpcEgressConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\DirectVpcEgressConnectionInfo::class); - $this->writeOneof(33, $var); - - return $this; - } - - /** - * Display information of a serverless public (external) connection. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfo serverless_external_connection = 34; - * @return \Google\Cloud\NetworkManagement\V1\ServerlessExternalConnectionInfo|null - */ - public function getServerlessExternalConnection() - { - return $this->readOneof(34); - } - - public function hasServerlessExternalConnection() - { - return $this->hasOneof(34); - } - - /** - * Display information of a serverless public (external) connection. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfo serverless_external_connection = 34; - * @param \Google\Cloud\NetworkManagement\V1\ServerlessExternalConnectionInfo $var - * @return $this - */ - public function setServerlessExternalConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ServerlessExternalConnectionInfo::class); - $this->writeOneof(34, $var); - - return $this; - } - - /** - * Display information of the final state "deliver" and reason. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo deliver = 12; - * @return \Google\Cloud\NetworkManagement\V1\DeliverInfo|null - */ - public function getDeliver() - { - return $this->readOneof(12); - } - - public function hasDeliver() - { - return $this->hasOneof(12); - } - - /** - * Display information of the final state "deliver" and reason. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DeliverInfo deliver = 12; - * @param \Google\Cloud\NetworkManagement\V1\DeliverInfo $var - * @return $this - */ - public function setDeliver($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\DeliverInfo::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Display information of the final state "forward" and reason. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo forward = 13; - * @return \Google\Cloud\NetworkManagement\V1\ForwardInfo|null - */ - public function getForward() - { - return $this->readOneof(13); - } - - public function hasForward() - { - return $this->hasOneof(13); - } - - /** - * Display information of the final state "forward" and reason. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ForwardInfo forward = 13; - * @param \Google\Cloud\NetworkManagement\V1\ForwardInfo $var - * @return $this - */ - public function setForward($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ForwardInfo::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Display information of the final state "abort" and reason. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo abort = 14; - * @return \Google\Cloud\NetworkManagement\V1\AbortInfo|null - */ - public function getAbort() - { - return $this->readOneof(14); - } - - public function hasAbort() - { - return $this->hasOneof(14); - } - - /** - * Display information of the final state "abort" and reason. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.AbortInfo abort = 14; - * @param \Google\Cloud\NetworkManagement\V1\AbortInfo $var - * @return $this - */ - public function setAbort($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\AbortInfo::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Display information of the final state "drop" and reason. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo drop = 15; - * @return \Google\Cloud\NetworkManagement\V1\DropInfo|null - */ - public function getDrop() - { - return $this->readOneof(15); - } - - public function hasDrop() - { - return $this->hasOneof(15); - } - - /** - * Display information of the final state "drop" and reason. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.DropInfo drop = 15; - * @param \Google\Cloud\NetworkManagement\V1\DropInfo $var - * @return $this - */ - public function setDrop($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\DropInfo::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Display information of the load balancers. Deprecated in favor of the - * `load_balancer_backend_info` field, not used in new tests. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo load_balancer = 16 [deprecated = true]; - * @return \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo|null - * @deprecated - */ - public function getLoadBalancer() - { - if ($this->hasOneof(16)) { - @trigger_error('load_balancer is deprecated.', E_USER_DEPRECATED); - } - return $this->readOneof(16); - } - - public function hasLoadBalancer() - { - if ($this->hasOneof(16)) { - @trigger_error('load_balancer is deprecated.', E_USER_DEPRECATED); - } - return $this->hasOneof(16); - } - - /** - * Display information of the load balancers. Deprecated in favor of the - * `load_balancer_backend_info` field, not used in new tests. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerInfo load_balancer = 16 [deprecated = true]; - * @param \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo $var - * @return $this - * @deprecated - */ - public function setLoadBalancer($var) - { - @trigger_error('load_balancer is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerInfo::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Display information of a Google Cloud network. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NetworkInfo network = 17; - * @return \Google\Cloud\NetworkManagement\V1\NetworkInfo|null - */ - public function getNetwork() - { - return $this->readOneof(17); - } - - public function hasNetwork() - { - return $this->hasOneof(17); - } - - /** - * Display information of a Google Cloud network. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NetworkInfo network = 17; - * @param \Google\Cloud\NetworkManagement\V1\NetworkInfo $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\NetworkInfo::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Display information of a Google Kubernetes Engine cluster master. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GKEMasterInfo gke_master = 18; - * @return \Google\Cloud\NetworkManagement\V1\GKEMasterInfo|null - */ - public function getGkeMaster() - { - return $this->readOneof(18); - } - - public function hasGkeMaster() - { - return $this->hasOneof(18); - } - - /** - * Display information of a Google Kubernetes Engine cluster master. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GKEMasterInfo gke_master = 18; - * @param \Google\Cloud\NetworkManagement\V1\GKEMasterInfo $var - * @return $this - */ - public function setGkeMaster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\GKEMasterInfo::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * Display information of a Google Kubernetes Engine Pod. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GkePodInfo gke_pod = 37; - * @return \Google\Cloud\NetworkManagement\V1\GkePodInfo|null - */ - public function getGkePod() - { - return $this->readOneof(37); - } - - public function hasGkePod() - { - return $this->hasOneof(37); - } - - /** - * Display information of a Google Kubernetes Engine Pod. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.GkePodInfo gke_pod = 37; - * @param \Google\Cloud\NetworkManagement\V1\GkePodInfo $var - * @return $this - */ - public function setGkePod($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\GkePodInfo::class); - $this->writeOneof(37, $var); - - return $this; - } - - /** - * Display information of the reason why GKE Pod IP masquerading was - * skipped. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo ip_masquerading_skipped = 38; - * @return \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo|null - */ - public function getIpMasqueradingSkipped() - { - return $this->readOneof(38); - } - - public function hasIpMasqueradingSkipped() - { - return $this->hasOneof(38); - } - - /** - * Display information of the reason why GKE Pod IP masquerading was - * skipped. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.IpMasqueradingSkippedInfo ip_masquerading_skipped = 38; - * @param \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo $var - * @return $this - */ - public function setIpMasqueradingSkipped($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\IpMasqueradingSkippedInfo::class); - $this->writeOneof(38, $var); - - return $this; - } - - /** - * Display information of a Cloud SQL instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudSQLInstanceInfo cloud_sql_instance = 19; - * @return \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo|null - */ - public function getCloudSqlInstance() - { - return $this->readOneof(19); - } - - public function hasCloudSqlInstance() - { - return $this->hasOneof(19); - } - - /** - * Display information of a Cloud SQL instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudSQLInstanceInfo cloud_sql_instance = 19; - * @param \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo $var - * @return $this - */ - public function setCloudSqlInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\CloudSQLInstanceInfo::class); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * Display information of a Redis Instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; - * @return \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo|null - */ - public function getRedisInstance() - { - return $this->readOneof(30); - } - - public function hasRedisInstance() - { - return $this->hasOneof(30); - } - - /** - * Display information of a Redis Instance. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; - * @param \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo $var - * @return $this - */ - public function setRedisInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\RedisInstanceInfo::class); - $this->writeOneof(30, $var); - - return $this; - } - - /** - * Display information of a Redis Cluster. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; - * @return \Google\Cloud\NetworkManagement\V1\RedisClusterInfo|null - */ - public function getRedisCluster() - { - return $this->readOneof(31); - } - - public function hasRedisCluster() - { - return $this->hasOneof(31); - } - - /** - * Display information of a Redis Cluster. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; - * @param \Google\Cloud\NetworkManagement\V1\RedisClusterInfo $var - * @return $this - */ - public function setRedisCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\RedisClusterInfo::class); - $this->writeOneof(31, $var); - - return $this; - } - - /** - * Display information of a Cloud Function. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; - * @return \Google\Cloud\NetworkManagement\V1\CloudFunctionInfo|null - */ - public function getCloudFunction() - { - return $this->readOneof(20); - } - - public function hasCloudFunction() - { - return $this->hasOneof(20); - } - - /** - * Display information of a Cloud Function. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; - * @param \Google\Cloud\NetworkManagement\V1\CloudFunctionInfo $var - * @return $this - */ - public function setCloudFunction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\CloudFunctionInfo::class); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * Display information of an App Engine service version. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22; - * @return \Google\Cloud\NetworkManagement\V1\AppEngineVersionInfo|null - */ - public function getAppEngineVersion() - { - return $this->readOneof(22); - } - - public function hasAppEngineVersion() - { - return $this->hasOneof(22); - } - - /** - * Display information of an App Engine service version. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.AppEngineVersionInfo app_engine_version = 22; - * @param \Google\Cloud\NetworkManagement\V1\AppEngineVersionInfo $var - * @return $this - */ - public function setAppEngineVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\AppEngineVersionInfo::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * Display information of a Cloud Run revision. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23; - * @return \Google\Cloud\NetworkManagement\V1\CloudRunRevisionInfo|null - */ - public function getCloudRunRevision() - { - return $this->readOneof(23); - } - - public function hasCloudRunRevision() - { - return $this->hasOneof(23); - } - - /** - * Display information of a Cloud Run revision. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.CloudRunRevisionInfo cloud_run_revision = 23; - * @param \Google\Cloud\NetworkManagement\V1\CloudRunRevisionInfo $var - * @return $this - */ - public function setCloudRunRevision($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\CloudRunRevisionInfo::class); - $this->writeOneof(23, $var); - - return $this; - } - - /** - * Display information of a NAT. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo nat = 25; - * @return \Google\Cloud\NetworkManagement\V1\NatInfo|null - */ - public function getNat() - { - return $this->readOneof(25); - } - - public function hasNat() - { - return $this->hasOneof(25); - } - - /** - * Display information of a NAT. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.NatInfo nat = 25; - * @param \Google\Cloud\NetworkManagement\V1\NatInfo $var - * @return $this - */ - public function setNat($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\NatInfo::class); - $this->writeOneof(25, $var); - - return $this; - } - - /** - * Display information of a ProxyConnection. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; - * @return \Google\Cloud\NetworkManagement\V1\ProxyConnectionInfo|null - */ - public function getProxyConnection() - { - return $this->readOneof(26); - } - - public function hasProxyConnection() - { - return $this->hasOneof(26); - } - - /** - * Display information of a ProxyConnection. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; - * @param \Google\Cloud\NetworkManagement\V1\ProxyConnectionInfo $var - * @return $this - */ - public function setProxyConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ProxyConnectionInfo::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * Display information of a specific load balancer backend. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; - * @return \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo|null - */ - public function getLoadBalancerBackendInfo() - { - return $this->readOneof(27); - } - - public function hasLoadBalancerBackendInfo() - { - return $this->hasOneof(27); - } - - /** - * Display information of a specific load balancer backend. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; - * @param \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo $var - * @return $this - */ - public function setLoadBalancerBackendInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\LoadBalancerBackendInfo::class); - $this->writeOneof(27, $var); - - return $this; - } - - /** - * Display information of a Storage Bucket. Used only for return traces. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; - * @return \Google\Cloud\NetworkManagement\V1\StorageBucketInfo|null - */ - public function getStorageBucket() - { - return $this->readOneof(28); - } - - public function hasStorageBucket() - { - return $this->hasOneof(28); - } - - /** - * Display information of a Storage Bucket. Used only for return traces. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; - * @param \Google\Cloud\NetworkManagement\V1\StorageBucketInfo $var - * @return $this - */ - public function setStorageBucket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\StorageBucketInfo::class); - $this->writeOneof(28, $var); - - return $this; - } - - /** - * Display information of a Serverless network endpoint group backend. Used - * only for return traces. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; - * @return \Google\Cloud\NetworkManagement\V1\ServerlessNegInfo|null - */ - public function getServerlessNeg() - { - return $this->readOneof(29); - } - - public function hasServerlessNeg() - { - return $this->hasOneof(29); - } - - /** - * Display information of a Serverless network endpoint group backend. Used - * only for return traces. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; - * @param \Google\Cloud\NetworkManagement\V1\ServerlessNegInfo $var - * @return $this - */ - public function setServerlessNeg($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ServerlessNegInfo::class); - $this->writeOneof(29, $var); - - return $this; - } - - /** - * @return string - */ - public function getStepInfo() - { - return $this->whichOneof("step_info"); - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step/State.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step/State.php deleted file mode 100644 index 9006e45c6ba1..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Step/State.php +++ /dev/null @@ -1,352 +0,0 @@ -google.cloud.networkmanagement.v1.Step.State - */ -class State -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Initial state: packet originating from a Compute Engine instance. - * An InstanceInfo is populated with starting instance information. - * - * Generated from protobuf enum START_FROM_INSTANCE = 1; - */ - const START_FROM_INSTANCE = 1; - /** - * Initial state: packet originating from the internet. - * The endpoint information is populated. - * - * Generated from protobuf enum START_FROM_INTERNET = 2; - */ - const START_FROM_INTERNET = 2; - /** - * Initial state: packet originating from a Google service. - * The google_service information is populated. - * - * Generated from protobuf enum START_FROM_GOOGLE_SERVICE = 27; - */ - const START_FROM_GOOGLE_SERVICE = 27; - /** - * Initial state: packet originating from a VPC or on-premises network - * with internal source IP. - * If the source is a VPC network visible to the user, a NetworkInfo - * is populated with details of the network. - * - * Generated from protobuf enum START_FROM_PRIVATE_NETWORK = 3; - */ - const START_FROM_PRIVATE_NETWORK = 3; - /** - * Initial state: packet originating from a Google Kubernetes Engine cluster - * master. A GKEMasterInfo is populated with starting instance information. - * - * Generated from protobuf enum START_FROM_GKE_MASTER = 21; - */ - const START_FROM_GKE_MASTER = 21; - /** - * Initial state: packet originating from a Cloud SQL instance. - * A CloudSQLInstanceInfo is populated with starting instance information. - * - * Generated from protobuf enum START_FROM_CLOUD_SQL_INSTANCE = 22; - */ - const START_FROM_CLOUD_SQL_INSTANCE = 22; - /** - * Initial state: packet originating from a Google Kubernetes Engine Pod. - * A GkePodInfo is populated with starting Pod information. - * - * Generated from protobuf enum START_FROM_GKE_POD = 39; - */ - const START_FROM_GKE_POD = 39; - /** - * Initial state: packet originating from a Redis instance. - * A RedisInstanceInfo is populated with starting instance information. - * - * Generated from protobuf enum START_FROM_REDIS_INSTANCE = 32; - */ - const START_FROM_REDIS_INSTANCE = 32; - /** - * Initial state: packet originating from a Redis Cluster. - * A RedisClusterInfo is populated with starting Cluster information. - * - * Generated from protobuf enum START_FROM_REDIS_CLUSTER = 33; - */ - const START_FROM_REDIS_CLUSTER = 33; - /** - * Initial state: packet originating from a Cloud Function. - * A CloudFunctionInfo is populated with starting function information. - * - * Generated from protobuf enum START_FROM_CLOUD_FUNCTION = 23; - */ - const START_FROM_CLOUD_FUNCTION = 23; - /** - * Initial state: packet originating from an App Engine service version. - * An AppEngineVersionInfo is populated with starting version information. - * - * Generated from protobuf enum START_FROM_APP_ENGINE_VERSION = 25; - */ - const START_FROM_APP_ENGINE_VERSION = 25; - /** - * Initial state: packet originating from a Cloud Run revision. - * A CloudRunRevisionInfo is populated with starting revision information. - * - * Generated from protobuf enum START_FROM_CLOUD_RUN_REVISION = 26; - */ - const START_FROM_CLOUD_RUN_REVISION = 26; - /** - * Initial state: packet originating from a Storage Bucket. Used only for - * return traces. - * The storage_bucket information is populated. - * - * Generated from protobuf enum START_FROM_STORAGE_BUCKET = 29; - */ - const START_FROM_STORAGE_BUCKET = 29; - /** - * Initial state: packet originating from a published service that uses - * Private Service Connect. Used only for return traces. - * - * Generated from protobuf enum START_FROM_PSC_PUBLISHED_SERVICE = 30; - */ - const START_FROM_PSC_PUBLISHED_SERVICE = 30; - /** - * Initial state: packet originating from a serverless network endpoint - * group backend. Used only for return traces. - * The serverless_neg information is populated. - * - * Generated from protobuf enum START_FROM_SERVERLESS_NEG = 31; - */ - const START_FROM_SERVERLESS_NEG = 31; - /** - * Config checking state: verify ingress firewall rule. - * - * Generated from protobuf enum APPLY_INGRESS_FIREWALL_RULE = 4; - */ - const APPLY_INGRESS_FIREWALL_RULE = 4; - /** - * Config checking state: verify egress firewall rule. - * - * Generated from protobuf enum APPLY_EGRESS_FIREWALL_RULE = 5; - */ - const APPLY_EGRESS_FIREWALL_RULE = 5; - /** - * Config checking state: verify route. - * - * Generated from protobuf enum APPLY_ROUTE = 6; - */ - const APPLY_ROUTE = 6; - /** - * Config checking state: match forwarding rule. - * - * Generated from protobuf enum APPLY_FORWARDING_RULE = 7; - */ - const APPLY_FORWARDING_RULE = 7; - /** - * Config checking state: verify load balancer backend configuration. - * - * Generated from protobuf enum ANALYZE_LOAD_BALANCER_BACKEND = 28; - */ - const ANALYZE_LOAD_BALANCER_BACKEND = 28; - /** - * Config checking state: packet sent or received under foreign IP - * address and allowed. - * - * Generated from protobuf enum SPOOFING_APPROVED = 8; - */ - const SPOOFING_APPROVED = 8; - /** - * Forwarding state: arriving at a Compute Engine instance. - * - * Generated from protobuf enum ARRIVE_AT_INSTANCE = 9; - */ - const ARRIVE_AT_INSTANCE = 9; - /** - * Forwarding state: arriving at a Compute Engine internal load balancer. - * - * Generated from protobuf enum ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10 [deprecated = true]; - */ - const ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10; - /** - * Forwarding state: arriving at a Compute Engine external load balancer. - * - * Generated from protobuf enum ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11 [deprecated = true]; - */ - const ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11; - /** - * Forwarding state: arriving at a hybrid subnet. Appropriate routing - * configuration will be determined here. - * - * Generated from protobuf enum ARRIVE_AT_HYBRID_SUBNET = 38; - */ - const ARRIVE_AT_HYBRID_SUBNET = 38; - /** - * Forwarding state: arriving at a Cloud VPN gateway. - * - * Generated from protobuf enum ARRIVE_AT_VPN_GATEWAY = 12; - */ - const ARRIVE_AT_VPN_GATEWAY = 12; - /** - * Forwarding state: arriving at a Cloud VPN tunnel. - * - * Generated from protobuf enum ARRIVE_AT_VPN_TUNNEL = 13; - */ - const ARRIVE_AT_VPN_TUNNEL = 13; - /** - * Forwarding state: arriving at an interconnect attachment. - * - * Generated from protobuf enum ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; - */ - const ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; - /** - * Forwarding state: arriving at a VPC connector. - * - * Generated from protobuf enum ARRIVE_AT_VPC_CONNECTOR = 24; - */ - const ARRIVE_AT_VPC_CONNECTOR = 24; - /** - * Forwarding state: for packets originating from a serverless endpoint - * forwarded through Direct VPC egress. - * - * Generated from protobuf enum DIRECT_VPC_EGRESS_CONNECTION = 35; - */ - const DIRECT_VPC_EGRESS_CONNECTION = 35; - /** - * Forwarding state: for packets originating from a serverless endpoint - * forwarded through public (external) connectivity. - * - * Generated from protobuf enum SERVERLESS_EXTERNAL_CONNECTION = 36; - */ - const SERVERLESS_EXTERNAL_CONNECTION = 36; - /** - * Transition state: packet header translated. The `nat` field is populated - * with the translation information. - * - * Generated from protobuf enum NAT = 14; - */ - const NAT = 14; - /** - * Transition state: GKE Pod IP masquerading is skipped. The - * `ip_masquerading_skipped` field is populated with the reason. - * - * Generated from protobuf enum SKIP_GKE_POD_IP_MASQUERADING = 40; - */ - const SKIP_GKE_POD_IP_MASQUERADING = 40; - /** - * Transition state: original connection is terminated and a new proxied - * connection is initiated. - * - * Generated from protobuf enum PROXY_CONNECTION = 15; - */ - const PROXY_CONNECTION = 15; - /** - * Final state: packet could be delivered. - * - * Generated from protobuf enum DELIVER = 16; - */ - const DELIVER = 16; - /** - * Final state: packet could be dropped. - * - * Generated from protobuf enum DROP = 17; - */ - const DROP = 17; - /** - * Final state: packet could be forwarded to a network with an unknown - * configuration. - * - * Generated from protobuf enum FORWARD = 18; - */ - const FORWARD = 18; - /** - * Final state: analysis is aborted. - * - * Generated from protobuf enum ABORT = 19; - */ - const ABORT = 19; - /** - * Special state: viewer of the test result does not have permission to - * see the configuration in this step. - * - * Generated from protobuf enum VIEWER_PERMISSION_MISSING = 20; - */ - const VIEWER_PERMISSION_MISSING = 20; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::START_FROM_INSTANCE => 'START_FROM_INSTANCE', - self::START_FROM_INTERNET => 'START_FROM_INTERNET', - self::START_FROM_GOOGLE_SERVICE => 'START_FROM_GOOGLE_SERVICE', - self::START_FROM_PRIVATE_NETWORK => 'START_FROM_PRIVATE_NETWORK', - self::START_FROM_GKE_MASTER => 'START_FROM_GKE_MASTER', - self::START_FROM_CLOUD_SQL_INSTANCE => 'START_FROM_CLOUD_SQL_INSTANCE', - self::START_FROM_GKE_POD => 'START_FROM_GKE_POD', - self::START_FROM_REDIS_INSTANCE => 'START_FROM_REDIS_INSTANCE', - self::START_FROM_REDIS_CLUSTER => 'START_FROM_REDIS_CLUSTER', - self::START_FROM_CLOUD_FUNCTION => 'START_FROM_CLOUD_FUNCTION', - self::START_FROM_APP_ENGINE_VERSION => 'START_FROM_APP_ENGINE_VERSION', - self::START_FROM_CLOUD_RUN_REVISION => 'START_FROM_CLOUD_RUN_REVISION', - self::START_FROM_STORAGE_BUCKET => 'START_FROM_STORAGE_BUCKET', - self::START_FROM_PSC_PUBLISHED_SERVICE => 'START_FROM_PSC_PUBLISHED_SERVICE', - self::START_FROM_SERVERLESS_NEG => 'START_FROM_SERVERLESS_NEG', - self::APPLY_INGRESS_FIREWALL_RULE => 'APPLY_INGRESS_FIREWALL_RULE', - self::APPLY_EGRESS_FIREWALL_RULE => 'APPLY_EGRESS_FIREWALL_RULE', - self::APPLY_ROUTE => 'APPLY_ROUTE', - self::APPLY_FORWARDING_RULE => 'APPLY_FORWARDING_RULE', - self::ANALYZE_LOAD_BALANCER_BACKEND => 'ANALYZE_LOAD_BALANCER_BACKEND', - self::SPOOFING_APPROVED => 'SPOOFING_APPROVED', - self::ARRIVE_AT_INSTANCE => 'ARRIVE_AT_INSTANCE', - self::ARRIVE_AT_INTERNAL_LOAD_BALANCER => 'ARRIVE_AT_INTERNAL_LOAD_BALANCER', - self::ARRIVE_AT_EXTERNAL_LOAD_BALANCER => 'ARRIVE_AT_EXTERNAL_LOAD_BALANCER', - self::ARRIVE_AT_HYBRID_SUBNET => 'ARRIVE_AT_HYBRID_SUBNET', - self::ARRIVE_AT_VPN_GATEWAY => 'ARRIVE_AT_VPN_GATEWAY', - self::ARRIVE_AT_VPN_TUNNEL => 'ARRIVE_AT_VPN_TUNNEL', - self::ARRIVE_AT_INTERCONNECT_ATTACHMENT => 'ARRIVE_AT_INTERCONNECT_ATTACHMENT', - self::ARRIVE_AT_VPC_CONNECTOR => 'ARRIVE_AT_VPC_CONNECTOR', - self::DIRECT_VPC_EGRESS_CONNECTION => 'DIRECT_VPC_EGRESS_CONNECTION', - self::SERVERLESS_EXTERNAL_CONNECTION => 'SERVERLESS_EXTERNAL_CONNECTION', - self::NAT => 'NAT', - self::SKIP_GKE_POD_IP_MASQUERADING => 'SKIP_GKE_POD_IP_MASQUERADING', - self::PROXY_CONNECTION => 'PROXY_CONNECTION', - self::DELIVER => 'DELIVER', - self::DROP => 'DROP', - self::FORWARD => 'FORWARD', - self::ABORT => 'ABORT', - self::VIEWER_PERMISSION_MISSING => 'VIEWER_PERMISSION_MISSING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\NetworkManagement\V1\Step_State::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/StorageBucketInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/StorageBucketInfo.php deleted file mode 100644 index 58b34cf98567..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/StorageBucketInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.networkmanagement.v1.StorageBucketInfo - */ -class StorageBucketInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Cloud Storage Bucket name. - * - * Generated from protobuf field string bucket = 1; - */ - protected $bucket = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket - * Cloud Storage Bucket name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Storage Bucket name. - * - * Generated from protobuf field string bucket = 1; - * @return string - */ - public function getBucket() - { - return $this->bucket; - } - - /** - * Cloud Storage Bucket name. - * - * Generated from protobuf field string bucket = 1; - * @param string $var - * @return $this - */ - public function setBucket($var) - { - GPBUtil::checkString($var, True); - $this->bucket = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Trace.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Trace.php deleted file mode 100644 index 02548d666c07..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/Trace.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.networkmanagement.v1.Trace - */ -class Trace extends \Google\Protobuf\Internal\Message -{ - /** - * Derived from the source and destination endpoints definition specified by - * user request, and validated by the data plane model. - * If there are multiple traces starting from different source locations, then - * the endpoint_info may be different between traces. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 1; - */ - protected $endpoint_info = null; - /** - * A trace of a test contains multiple steps from the initial state to the - * final state (delivered, dropped, forwarded, or aborted). - * The steps are ordered by the processing sequence within the simulated - * network state machine. It is critical to preserve the order of the steps - * and avoid reordering or sorting them. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Step steps = 2; - */ - private $steps; - /** - * ID of trace. For forward traces, this ID is unique for each trace. For - * return traces, it matches ID of associated forward trace. A single forward - * trace can be associated with none, one or more than one return trace. - * - * Generated from protobuf field int32 forward_trace_id = 4; - */ - protected $forward_trace_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\NetworkManagement\V1\EndpointInfo $endpoint_info - * Derived from the source and destination endpoints definition specified by - * user request, and validated by the data plane model. - * If there are multiple traces starting from different source locations, then - * the endpoint_info may be different between traces. - * @type array<\Google\Cloud\NetworkManagement\V1\Step>|\Google\Protobuf\Internal\RepeatedField $steps - * A trace of a test contains multiple steps from the initial state to the - * final state (delivered, dropped, forwarded, or aborted). - * The steps are ordered by the processing sequence within the simulated - * network state machine. It is critical to preserve the order of the steps - * and avoid reordering or sorting them. - * @type int $forward_trace_id - * ID of trace. For forward traces, this ID is unique for each trace. For - * return traces, it matches ID of associated forward trace. A single forward - * trace can be associated with none, one or more than one return trace. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Derived from the source and destination endpoints definition specified by - * user request, and validated by the data plane model. - * If there are multiple traces starting from different source locations, then - * the endpoint_info may be different between traces. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 1; - * @return \Google\Cloud\NetworkManagement\V1\EndpointInfo|null - */ - public function getEndpointInfo() - { - return $this->endpoint_info; - } - - public function hasEndpointInfo() - { - return isset($this->endpoint_info); - } - - public function clearEndpointInfo() - { - unset($this->endpoint_info); - } - - /** - * Derived from the source and destination endpoints definition specified by - * user request, and validated by the data plane model. - * If there are multiple traces starting from different source locations, then - * the endpoint_info may be different between traces. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 1; - * @param \Google\Cloud\NetworkManagement\V1\EndpointInfo $var - * @return $this - */ - public function setEndpointInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\EndpointInfo::class); - $this->endpoint_info = $var; - - return $this; - } - - /** - * A trace of a test contains multiple steps from the initial state to the - * final state (delivered, dropped, forwarded, or aborted). - * The steps are ordered by the processing sequence within the simulated - * network state machine. It is critical to preserve the order of the steps - * and avoid reordering or sorting them. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Step steps = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSteps() - { - return $this->steps; - } - - /** - * A trace of a test contains multiple steps from the initial state to the - * final state (delivered, dropped, forwarded, or aborted). - * The steps are ordered by the processing sequence within the simulated - * network state machine. It is critical to preserve the order of the steps - * and avoid reordering or sorting them. - * - * Generated from protobuf field repeated .google.cloud.networkmanagement.v1.Step steps = 2; - * @param array<\Google\Cloud\NetworkManagement\V1\Step>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\Step::class); - $this->steps = $arr; - - return $this; - } - - /** - * ID of trace. For forward traces, this ID is unique for each trace. For - * return traces, it matches ID of associated forward trace. A single forward - * trace can be associated with none, one or more than one return trace. - * - * Generated from protobuf field int32 forward_trace_id = 4; - * @return int - */ - public function getForwardTraceId() - { - return $this->forward_trace_id; - } - - /** - * ID of trace. For forward traces, this ID is unique for each trace. For - * return traces, it matches ID of associated forward trace. A single forward - * trace can be associated with none, one or more than one return trace. - * - * Generated from protobuf field int32 forward_trace_id = 4; - * @param int $var - * @return $this - */ - public function setForwardTraceId($var) - { - GPBUtil::checkInt32($var); - $this->forward_trace_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateConnectivityTestRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateConnectivityTestRequest.php deleted file mode 100644 index 095a3a882e67..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateConnectivityTestRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest - */ -class UpdateConnectivityTestRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Only fields specified in update_mask are updated. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource = null; - - /** - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. - * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource Required. Only fields specified in update_mask are updated. - * - * @return \Google\Cloud\NetworkManagement\V1\UpdateConnectivityTestRequest - * - * @experimental - */ - public static function build(\Google\Protobuf\FieldMask $updateMask, \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource): self - { - return (new self()) - ->setUpdateMask($updateMask) - ->setResource($resource); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. - * @type \Google\Cloud\NetworkManagement\V1\ConnectivityTest $resource - * Required. Only fields specified in update_mask are updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. Only fields specified in update_mask are updated. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\NetworkManagement\V1\ConnectivityTest|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Required. Only fields specified in update_mask are updated. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.ConnectivityTest resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\ConnectivityTest::class); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateVpcFlowLogsConfigRequest.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateVpcFlowLogsConfigRequest.php deleted file mode 100644 index f487b6717a2a..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/UpdateVpcFlowLogsConfigRequest.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest - */ -class UpdateVpcFlowLogsConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. - * For example, to change the state of the configuration to ENABLED, specify - * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: - * `vpc_flow_logs_config = { - * name = - * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" - * state = "ENABLED" }` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Only fields specified in update_mask are updated. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vpc_flow_logs_config = null; - - /** - * @param \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpcFlowLogsConfig Required. Only fields specified in update_mask are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. - * For example, to change the state of the configuration to ENABLED, specify - * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: - * `vpc_flow_logs_config = { - * name = - * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" - * state = "ENABLED" }` - * - * @return \Google\Cloud\NetworkManagement\V1\UpdateVpcFlowLogsConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpcFlowLogsConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. - * For example, to change the state of the configuration to ENABLED, specify - * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: - * `vpc_flow_logs_config = { - * name = - * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" - * state = "ENABLED" }` - * @type \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $vpc_flow_logs_config - * Required. Only fields specified in update_mask are updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogs::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. - * For example, to change the state of the configuration to ENABLED, specify - * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: - * `vpc_flow_logs_config = { - * name = - * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" - * state = "ENABLED" }` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. - * For example, to change the state of the configuration to ENABLED, specify - * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: - * `vpc_flow_logs_config = { - * name = - * "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" - * state = "ENABLED" }` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. Only fields specified in update_mask are updated. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig|null - */ - public function getVpcFlowLogsConfig() - { - return $this->vpc_flow_logs_config; - } - - public function hasVpcFlowLogsConfig() - { - return isset($this->vpc_flow_logs_config); - } - - public function clearVpcFlowLogsConfig() - { - unset($this->vpc_flow_logs_config); - } - - /** - * Required. Only fields specified in update_mask are updated. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig $var - * @return $this - */ - public function setVpcFlowLogsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig::class); - $this->vpc_flow_logs_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcConnectorInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcConnectorInfo.php deleted file mode 100644 index c96a59d85686..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcConnectorInfo.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.networkmanagement.v1.VpcConnectorInfo - */ -class VpcConnectorInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a VPC connector. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a VPC connector. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Location in which the VPC connector is deployed. - * - * Generated from protobuf field string location = 3; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a VPC connector. - * @type string $uri - * URI of a VPC connector. - * @type string $location - * Location in which the VPC connector is deployed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a VPC connector. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a VPC connector. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a VPC connector. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a VPC connector. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Location in which the VPC connector is deployed. - * - * Generated from protobuf field string location = 3; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location in which the VPC connector is deployed. - * - * Generated from protobuf field string location = 3; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig.php deleted file mode 100644 index e10501272abd..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig.php +++ /dev/null @@ -1,810 +0,0 @@ -google.cloud.networkmanagement.v1.VpcFlowLogsConfig - */ -class VpcFlowLogsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Unique name of the configuration. The name can have one of the - * following forms: - * - For project-level configurations: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level configurations: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The user-supplied description of the VPC Flow Logs configuration. - * Maximum of 512 characters. - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Optional. The state of the VPC Flow Log configuration. Default value is - * ENABLED. When creating a new configuration, it must be enabled. Setting - * state=DISABLED will pause the log generation for this config. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $state = null; - /** - * Optional. The aggregation interval for the logs. Default value is - * INTERVAL_5_SEC. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $aggregation_interval = null; - /** - * Optional. The value of the field must be in (0, 1]. The sampling rate of - * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the - * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, - * use the state field instead. Default value is 1.0. - * - * Generated from protobuf field optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $flow_sampling = null; - /** - * Optional. Configures whether all, none or a subset of metadata fields - * should be added to the reported VPC flow logs. Default value is - * INCLUDE_ALL_METADATA. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metadata = null; - /** - * Optional. Custom metadata fields to include in the reported VPC flow logs. - * Can only be specified if "metadata" was set to CUSTOM_METADATA. - * - * Generated from protobuf field repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $metadata_fields; - /** - * Optional. Export filter used to define which VPC Flow Logs should be - * logged. - * - * Generated from protobuf field optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter_expr = null; - /** - * Optional. Determines whether to include cross project annotations in the - * logs. This field is available only for organization configurations. If not - * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cross_project_metadata = null; - /** - * Output only. Describes the state of the configured target resource for - * diagnostic purposes. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_resource_state = null; - /** - * Optional. Resource labels to represent user-provided metadata. - * - * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. The time the config was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the config was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - protected $target_resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Unique name of the configuration. The name can have one of the - * following forms: - * - For project-level configurations: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level configurations: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * @type string $description - * Optional. The user-supplied description of the VPC Flow Logs configuration. - * Maximum of 512 characters. - * @type int $state - * Optional. The state of the VPC Flow Log configuration. Default value is - * ENABLED. When creating a new configuration, it must be enabled. Setting - * state=DISABLED will pause the log generation for this config. - * @type int $aggregation_interval - * Optional. The aggregation interval for the logs. Default value is - * INTERVAL_5_SEC. - * @type float $flow_sampling - * Optional. The value of the field must be in (0, 1]. The sampling rate of - * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the - * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, - * use the state field instead. Default value is 1.0. - * @type int $metadata - * Optional. Configures whether all, none or a subset of metadata fields - * should be added to the reported VPC flow logs. Default value is - * INCLUDE_ALL_METADATA. - * @type array|\Google\Protobuf\Internal\RepeatedField $metadata_fields - * Optional. Custom metadata fields to include in the reported VPC flow logs. - * Can only be specified if "metadata" was set to CUSTOM_METADATA. - * @type string $filter_expr - * Optional. Export filter used to define which VPC Flow Logs should be - * logged. - * @type int $cross_project_metadata - * Optional. Determines whether to include cross project annotations in the - * logs. This field is available only for organization configurations. If not - * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. - * @type int $target_resource_state - * Output only. Describes the state of the configured target resource for - * diagnostic purposes. - * @type string $network - * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments - * within the network. - * Format: projects/{project_id}/global/networks/{name} - * @type string $subnet - * Traffic will be logged from VMs within the subnetwork. - * Format: projects/{project_id}/regions/{region}/subnetworks/{name} - * @type string $interconnect_attachment - * Traffic will be logged from the Interconnect Attachment. - * Format: - * projects/{project_id}/regions/{region}/interconnectAttachments/{name} - * @type string $vpn_tunnel - * Traffic will be logged from the VPN Tunnel. - * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels to represent user-provided metadata. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the config was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time the config was updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\VpcFlowLogsConfig::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Unique name of the configuration. The name can have one of the - * following forms: - * - For project-level configurations: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level configurations: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Unique name of the configuration. The name can have one of the - * following forms: - * - For project-level configurations: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - For organization-level configurations: - * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The user-supplied description of the VPC Flow Logs configuration. - * Maximum of 512 characters. - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. The user-supplied description of the VPC Flow Logs configuration. - * Maximum of 512 characters. - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The state of the VPC Flow Log configuration. Default value is - * ENABLED. When creating a new configuration, it must be enabled. Setting - * state=DISABLED will pause the log generation for this config. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getState() - { - return isset($this->state) ? $this->state : 0; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * Optional. The state of the VPC Flow Log configuration. Default value is - * ENABLED. When creating a new configuration, it must be enabled. Setting - * state=DISABLED will pause the log generation for this config. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\State::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. The aggregation interval for the logs. Default value is - * INTERVAL_5_SEC. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getAggregationInterval() - { - return isset($this->aggregation_interval) ? $this->aggregation_interval : 0; - } - - public function hasAggregationInterval() - { - return isset($this->aggregation_interval); - } - - public function clearAggregationInterval() - { - unset($this->aggregation_interval); - } - - /** - * Optional. The aggregation interval for the logs. Default value is - * INTERVAL_5_SEC. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setAggregationInterval($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\AggregationInterval::class); - $this->aggregation_interval = $var; - - return $this; - } - - /** - * Optional. The value of the field must be in (0, 1]. The sampling rate of - * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the - * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, - * use the state field instead. Default value is 1.0. - * - * Generated from protobuf field optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getFlowSampling() - { - return isset($this->flow_sampling) ? $this->flow_sampling : 0.0; - } - - public function hasFlowSampling() - { - return isset($this->flow_sampling); - } - - public function clearFlowSampling() - { - unset($this->flow_sampling); - } - - /** - * Optional. The value of the field must be in (0, 1]. The sampling rate of - * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the - * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, - * use the state field instead. Default value is 1.0. - * - * Generated from protobuf field optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setFlowSampling($var) - { - GPBUtil::checkFloat($var); - $this->flow_sampling = $var; - - return $this; - } - - /** - * Optional. Configures whether all, none or a subset of metadata fields - * should be added to the reported VPC flow logs. Default value is - * INCLUDE_ALL_METADATA. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMetadata() - { - return isset($this->metadata) ? $this->metadata : 0; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Optional. Configures whether all, none or a subset of metadata fields - * should be added to the reported VPC flow logs. Default value is - * INCLUDE_ALL_METADATA. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\Metadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Optional. Custom metadata fields to include in the reported VPC flow logs. - * Can only be specified if "metadata" was set to CUSTOM_METADATA. - * - * Generated from protobuf field repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetadataFields() - { - return $this->metadata_fields; - } - - /** - * Optional. Custom metadata fields to include in the reported VPC flow logs. - * Can only be specified if "metadata" was set to CUSTOM_METADATA. - * - * Generated from protobuf field repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetadataFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata_fields = $arr; - - return $this; - } - - /** - * Optional. Export filter used to define which VPC Flow Logs should be - * logged. - * - * Generated from protobuf field optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilterExpr() - { - return isset($this->filter_expr) ? $this->filter_expr : ''; - } - - public function hasFilterExpr() - { - return isset($this->filter_expr); - } - - public function clearFilterExpr() - { - unset($this->filter_expr); - } - - /** - * Optional. Export filter used to define which VPC Flow Logs should be - * logged. - * - * Generated from protobuf field optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilterExpr($var) - { - GPBUtil::checkString($var, True); - $this->filter_expr = $var; - - return $this; - } - - /** - * Optional. Determines whether to include cross project annotations in the - * logs. This field is available only for organization configurations. If not - * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCrossProjectMetadata() - { - return isset($this->cross_project_metadata) ? $this->cross_project_metadata : 0; - } - - public function hasCrossProjectMetadata() - { - return isset($this->cross_project_metadata); - } - - public function clearCrossProjectMetadata() - { - unset($this->cross_project_metadata); - } - - /** - * Optional. Determines whether to include cross project annotations in the - * logs. This field is available only for organization configurations. If not - * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCrossProjectMetadata($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\CrossProjectMetadata::class); - $this->cross_project_metadata = $var; - - return $this; - } - - /** - * Output only. Describes the state of the configured target resource for - * diagnostic purposes. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTargetResourceState() - { - return isset($this->target_resource_state) ? $this->target_resource_state : 0; - } - - public function hasTargetResourceState() - { - return isset($this->target_resource_state); - } - - public function clearTargetResourceState() - { - unset($this->target_resource_state); - } - - /** - * Output only. Describes the state of the configured target resource for - * diagnostic purposes. - * - * Generated from protobuf field optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTargetResourceState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig\TargetResourceState::class); - $this->target_resource_state = $var; - - return $this; - } - - /** - * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments - * within the network. - * Format: projects/{project_id}/global/networks/{name} - * - * Generated from protobuf field string network = 100; - * @return string - */ - public function getNetwork() - { - return $this->readOneof(100); - } - - public function hasNetwork() - { - return $this->hasOneof(100); - } - - /** - * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments - * within the network. - * Format: projects/{project_id}/global/networks/{name} - * - * Generated from protobuf field string network = 100; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Traffic will be logged from VMs within the subnetwork. - * Format: projects/{project_id}/regions/{region}/subnetworks/{name} - * - * Generated from protobuf field string subnet = 101; - * @return string - */ - public function getSubnet() - { - return $this->readOneof(101); - } - - public function hasSubnet() - { - return $this->hasOneof(101); - } - - /** - * Traffic will be logged from VMs within the subnetwork. - * Format: projects/{project_id}/regions/{region}/subnetworks/{name} - * - * Generated from protobuf field string subnet = 101; - * @param string $var - * @return $this - */ - public function setSubnet($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Traffic will be logged from the Interconnect Attachment. - * Format: - * projects/{project_id}/regions/{region}/interconnectAttachments/{name} - * - * Generated from protobuf field string interconnect_attachment = 102; - * @return string - */ - public function getInterconnectAttachment() - { - return $this->readOneof(102); - } - - public function hasInterconnectAttachment() - { - return $this->hasOneof(102); - } - - /** - * Traffic will be logged from the Interconnect Attachment. - * Format: - * projects/{project_id}/regions/{region}/interconnectAttachments/{name} - * - * Generated from protobuf field string interconnect_attachment = 102; - * @param string $var - * @return $this - */ - public function setInterconnectAttachment($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * Traffic will be logged from the VPN Tunnel. - * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} - * - * Generated from protobuf field string vpn_tunnel = 103; - * @return string - */ - public function getVpnTunnel() - { - return $this->readOneof(103); - } - - public function hasVpnTunnel() - { - return $this->hasOneof(103); - } - - /** - * Traffic will be logged from the VPN Tunnel. - * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} - * - * Generated from protobuf field string vpn_tunnel = 103; - * @param string $var - * @return $this - */ - public function setVpnTunnel($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(103, $var); - - return $this; - } - - /** - * Optional. Resource labels to represent user-provided metadata. - * - * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels to represent user-provided metadata. - * - * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The time the config was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the config was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the config was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time the config was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getTargetResource() - { - return $this->whichOneof("target_resource"); - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/AggregationInterval.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/AggregationInterval.php deleted file mode 100644 index 0314eb4af393..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/AggregationInterval.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval - */ -class AggregationInterval -{ - /** - * If not specified, will default to INTERVAL_5_SEC. - * - * Generated from protobuf enum AGGREGATION_INTERVAL_UNSPECIFIED = 0; - */ - const AGGREGATION_INTERVAL_UNSPECIFIED = 0; - /** - * Aggregate logs in 5s intervals. - * - * Generated from protobuf enum INTERVAL_5_SEC = 1; - */ - const INTERVAL_5_SEC = 1; - /** - * Aggregate logs in 30s intervals. - * - * Generated from protobuf enum INTERVAL_30_SEC = 2; - */ - const INTERVAL_30_SEC = 2; - /** - * Aggregate logs in 1m intervals. - * - * Generated from protobuf enum INTERVAL_1_MIN = 3; - */ - const INTERVAL_1_MIN = 3; - /** - * Aggregate logs in 5m intervals. - * - * Generated from protobuf enum INTERVAL_5_MIN = 4; - */ - const INTERVAL_5_MIN = 4; - /** - * Aggregate logs in 10m intervals. - * - * Generated from protobuf enum INTERVAL_10_MIN = 5; - */ - const INTERVAL_10_MIN = 5; - /** - * Aggregate logs in 15m intervals. - * - * Generated from protobuf enum INTERVAL_15_MIN = 6; - */ - const INTERVAL_15_MIN = 6; - - private static $valueToName = [ - self::AGGREGATION_INTERVAL_UNSPECIFIED => 'AGGREGATION_INTERVAL_UNSPECIFIED', - self::INTERVAL_5_SEC => 'INTERVAL_5_SEC', - self::INTERVAL_30_SEC => 'INTERVAL_30_SEC', - self::INTERVAL_1_MIN => 'INTERVAL_1_MIN', - self::INTERVAL_5_MIN => 'INTERVAL_5_MIN', - self::INTERVAL_10_MIN => 'INTERVAL_10_MIN', - self::INTERVAL_15_MIN => 'INTERVAL_15_MIN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AggregationInterval::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_AggregationInterval::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/CrossProjectMetadata.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/CrossProjectMetadata.php deleted file mode 100644 index 3e824f0b333b..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/CrossProjectMetadata.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata - */ -class CrossProjectMetadata -{ - /** - * If not specified, the default is CROSS_PROJECT_METADATA_ENABLED. - * - * Generated from protobuf enum CROSS_PROJECT_METADATA_UNSPECIFIED = 0; - */ - const CROSS_PROJECT_METADATA_UNSPECIFIED = 0; - /** - * When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be - * included in the logs. - * - * Generated from protobuf enum CROSS_PROJECT_METADATA_ENABLED = 1; - */ - const CROSS_PROJECT_METADATA_ENABLED = 1; - /** - * When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will - * not be included in the logs. - * - * Generated from protobuf enum CROSS_PROJECT_METADATA_DISABLED = 2; - */ - const CROSS_PROJECT_METADATA_DISABLED = 2; - - private static $valueToName = [ - self::CROSS_PROJECT_METADATA_UNSPECIFIED => 'CROSS_PROJECT_METADATA_UNSPECIFIED', - self::CROSS_PROJECT_METADATA_ENABLED => 'CROSS_PROJECT_METADATA_ENABLED', - self::CROSS_PROJECT_METADATA_DISABLED => 'CROSS_PROJECT_METADATA_DISABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CrossProjectMetadata::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_CrossProjectMetadata::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/Metadata.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/Metadata.php deleted file mode 100644 index 9758d533a070..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/Metadata.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata - */ -class Metadata -{ - /** - * If not specified, will default to INCLUDE_ALL_METADATA. - * - * Generated from protobuf enum METADATA_UNSPECIFIED = 0; - */ - const METADATA_UNSPECIFIED = 0; - /** - * Include all metadata fields. - * - * Generated from protobuf enum INCLUDE_ALL_METADATA = 1; - */ - const INCLUDE_ALL_METADATA = 1; - /** - * Exclude all metadata fields. - * - * Generated from protobuf enum EXCLUDE_ALL_METADATA = 2; - */ - const EXCLUDE_ALL_METADATA = 2; - /** - * Include only custom fields (specified in metadata_fields). - * - * Generated from protobuf enum CUSTOM_METADATA = 3; - */ - const CUSTOM_METADATA = 3; - - private static $valueToName = [ - self::METADATA_UNSPECIFIED => 'METADATA_UNSPECIFIED', - self::INCLUDE_ALL_METADATA => 'INCLUDE_ALL_METADATA', - self::EXCLUDE_ALL_METADATA => 'EXCLUDE_ALL_METADATA', - self::CUSTOM_METADATA => 'CUSTOM_METADATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Metadata::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_Metadata::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/State.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/State.php deleted file mode 100644 index d54a53fc3b67..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/State.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State - */ -class State -{ - /** - * If not specified, will default to ENABLED. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * When ENABLED, this configuration will generate logs. - * - * Generated from protobuf enum ENABLED = 1; - */ - const ENABLED = 1; - /** - * When DISABLED, this configuration will not generate logs. - * - * Generated from protobuf enum DISABLED = 2; - */ - const DISABLED = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ENABLED => 'ENABLED', - self::DISABLED => 'DISABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_State::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/TargetResourceState.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/TargetResourceState.php deleted file mode 100644 index cc341a152752..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpcFlowLogsConfig/TargetResourceState.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState - */ -class TargetResourceState -{ - /** - * Unspecified target resource state. - * - * Generated from protobuf enum TARGET_RESOURCE_STATE_UNSPECIFIED = 0; - */ - const TARGET_RESOURCE_STATE_UNSPECIFIED = 0; - /** - * Indicates that the target resource exists. - * - * Generated from protobuf enum TARGET_RESOURCE_EXISTS = 1; - */ - const TARGET_RESOURCE_EXISTS = 1; - /** - * Indicates that the target resource does not exist. - * - * Generated from protobuf enum TARGET_RESOURCE_DOES_NOT_EXIST = 2; - */ - const TARGET_RESOURCE_DOES_NOT_EXIST = 2; - - private static $valueToName = [ - self::TARGET_RESOURCE_STATE_UNSPECIFIED => 'TARGET_RESOURCE_STATE_UNSPECIFIED', - self::TARGET_RESOURCE_EXISTS => 'TARGET_RESOURCE_EXISTS', - self::TARGET_RESOURCE_DOES_NOT_EXIST => 'TARGET_RESOURCE_DOES_NOT_EXIST', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TargetResourceState::class, \Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig_TargetResourceState::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnGatewayInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnGatewayInfo.php deleted file mode 100644 index 61f964197e52..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnGatewayInfo.php +++ /dev/null @@ -1,245 +0,0 @@ -google.cloud.networkmanagement.v1.VpnGatewayInfo - */ -class VpnGatewayInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a VPN gateway. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a VPN gateway. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * URI of a Compute Engine network where the VPN gateway is configured. - * - * Generated from protobuf field string network_uri = 3; - */ - protected $network_uri = ''; - /** - * IP address of the VPN gateway. - * - * Generated from protobuf field string ip_address = 4; - */ - protected $ip_address = ''; - /** - * A VPN tunnel that is associated with this VPN gateway. - * There may be multiple VPN tunnels configured on a VPN gateway, and only - * the one relevant to the test is displayed. - * - * Generated from protobuf field string vpn_tunnel_uri = 5; - */ - protected $vpn_tunnel_uri = ''; - /** - * Name of a Google Cloud region where this VPN gateway is configured. - * - * Generated from protobuf field string region = 6; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a VPN gateway. - * @type string $uri - * URI of a VPN gateway. - * @type string $network_uri - * URI of a Compute Engine network where the VPN gateway is configured. - * @type string $ip_address - * IP address of the VPN gateway. - * @type string $vpn_tunnel_uri - * A VPN tunnel that is associated with this VPN gateway. - * There may be multiple VPN tunnels configured on a VPN gateway, and only - * the one relevant to the test is displayed. - * @type string $region - * Name of a Google Cloud region where this VPN gateway is configured. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a VPN gateway. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a VPN gateway. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a VPN gateway. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a VPN gateway. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * URI of a Compute Engine network where the VPN gateway is configured. - * - * Generated from protobuf field string network_uri = 3; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of a Compute Engine network where the VPN gateway is configured. - * - * Generated from protobuf field string network_uri = 3; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * IP address of the VPN gateway. - * - * Generated from protobuf field string ip_address = 4; - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * IP address of the VPN gateway. - * - * Generated from protobuf field string ip_address = 4; - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - - /** - * A VPN tunnel that is associated with this VPN gateway. - * There may be multiple VPN tunnels configured on a VPN gateway, and only - * the one relevant to the test is displayed. - * - * Generated from protobuf field string vpn_tunnel_uri = 5; - * @return string - */ - public function getVpnTunnelUri() - { - return $this->vpn_tunnel_uri; - } - - /** - * A VPN tunnel that is associated with this VPN gateway. - * There may be multiple VPN tunnels configured on a VPN gateway, and only - * the one relevant to the test is displayed. - * - * Generated from protobuf field string vpn_tunnel_uri = 5; - * @param string $var - * @return $this - */ - public function setVpnTunnelUri($var) - { - GPBUtil::checkString($var, True); - $this->vpn_tunnel_uri = $var; - - return $this; - } - - /** - * Name of a Google Cloud region where this VPN gateway is configured. - * - * Generated from protobuf field string region = 6; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Name of a Google Cloud region where this VPN gateway is configured. - * - * Generated from protobuf field string region = 6; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo.php deleted file mode 100644 index 8785392491d0..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo.php +++ /dev/null @@ -1,339 +0,0 @@ -google.cloud.networkmanagement.v1.VpnTunnelInfo - */ -class VpnTunnelInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a VPN tunnel. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * URI of a VPN tunnel. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * URI of the VPN gateway at local end of the tunnel. - * - * Generated from protobuf field string source_gateway = 3; - */ - protected $source_gateway = ''; - /** - * URI of a VPN gateway at remote end of the tunnel. - * - * Generated from protobuf field string remote_gateway = 4; - */ - protected $remote_gateway = ''; - /** - * Remote VPN gateway's IP address. - * - * Generated from protobuf field string remote_gateway_ip = 5; - */ - protected $remote_gateway_ip = ''; - /** - * Local VPN gateway's IP address. - * - * Generated from protobuf field string source_gateway_ip = 6; - */ - protected $source_gateway_ip = ''; - /** - * URI of a Compute Engine network where the VPN tunnel is configured. - * - * Generated from protobuf field string network_uri = 7; - */ - protected $network_uri = ''; - /** - * Name of a Google Cloud region where this VPN tunnel is configured. - * - * Generated from protobuf field string region = 8; - */ - protected $region = ''; - /** - * Type of the routing policy. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9; - */ - protected $routing_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Name of a VPN tunnel. - * @type string $uri - * URI of a VPN tunnel. - * @type string $source_gateway - * URI of the VPN gateway at local end of the tunnel. - * @type string $remote_gateway - * URI of a VPN gateway at remote end of the tunnel. - * @type string $remote_gateway_ip - * Remote VPN gateway's IP address. - * @type string $source_gateway_ip - * Local VPN gateway's IP address. - * @type string $network_uri - * URI of a Compute Engine network where the VPN tunnel is configured. - * @type string $region - * Name of a Google Cloud region where this VPN tunnel is configured. - * @type int $routing_type - * Type of the routing policy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce(); - parent::__construct($data); - } - - /** - * Name of a VPN tunnel. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Name of a VPN tunnel. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * URI of a VPN tunnel. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI of a VPN tunnel. - * - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * URI of the VPN gateway at local end of the tunnel. - * - * Generated from protobuf field string source_gateway = 3; - * @return string - */ - public function getSourceGateway() - { - return $this->source_gateway; - } - - /** - * URI of the VPN gateway at local end of the tunnel. - * - * Generated from protobuf field string source_gateway = 3; - * @param string $var - * @return $this - */ - public function setSourceGateway($var) - { - GPBUtil::checkString($var, True); - $this->source_gateway = $var; - - return $this; - } - - /** - * URI of a VPN gateway at remote end of the tunnel. - * - * Generated from protobuf field string remote_gateway = 4; - * @return string - */ - public function getRemoteGateway() - { - return $this->remote_gateway; - } - - /** - * URI of a VPN gateway at remote end of the tunnel. - * - * Generated from protobuf field string remote_gateway = 4; - * @param string $var - * @return $this - */ - public function setRemoteGateway($var) - { - GPBUtil::checkString($var, True); - $this->remote_gateway = $var; - - return $this; - } - - /** - * Remote VPN gateway's IP address. - * - * Generated from protobuf field string remote_gateway_ip = 5; - * @return string - */ - public function getRemoteGatewayIp() - { - return $this->remote_gateway_ip; - } - - /** - * Remote VPN gateway's IP address. - * - * Generated from protobuf field string remote_gateway_ip = 5; - * @param string $var - * @return $this - */ - public function setRemoteGatewayIp($var) - { - GPBUtil::checkString($var, True); - $this->remote_gateway_ip = $var; - - return $this; - } - - /** - * Local VPN gateway's IP address. - * - * Generated from protobuf field string source_gateway_ip = 6; - * @return string - */ - public function getSourceGatewayIp() - { - return $this->source_gateway_ip; - } - - /** - * Local VPN gateway's IP address. - * - * Generated from protobuf field string source_gateway_ip = 6; - * @param string $var - * @return $this - */ - public function setSourceGatewayIp($var) - { - GPBUtil::checkString($var, True); - $this->source_gateway_ip = $var; - - return $this; - } - - /** - * URI of a Compute Engine network where the VPN tunnel is configured. - * - * Generated from protobuf field string network_uri = 7; - * @return string - */ - public function getNetworkUri() - { - return $this->network_uri; - } - - /** - * URI of a Compute Engine network where the VPN tunnel is configured. - * - * Generated from protobuf field string network_uri = 7; - * @param string $var - * @return $this - */ - public function setNetworkUri($var) - { - GPBUtil::checkString($var, True); - $this->network_uri = $var; - - return $this; - } - - /** - * Name of a Google Cloud region where this VPN tunnel is configured. - * - * Generated from protobuf field string region = 8; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Name of a Google Cloud region where this VPN tunnel is configured. - * - * Generated from protobuf field string region = 8; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * Type of the routing policy. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9; - * @return int - */ - public function getRoutingType() - { - return $this->routing_type; - } - - /** - * Type of the routing policy. - * - * Generated from protobuf field .google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9; - * @param int $var - * @return $this - */ - public function setRoutingType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo\RoutingType::class); - $this->routing_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo/RoutingType.php b/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo/RoutingType.php deleted file mode 100644 index 2550fd4408aa..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/proto/src/Google/Cloud/NetworkManagement/V1/VpnTunnelInfo/RoutingType.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType - */ -class RoutingType -{ - /** - * Unspecified type. Default value. - * - * Generated from protobuf enum ROUTING_TYPE_UNSPECIFIED = 0; - */ - const ROUTING_TYPE_UNSPECIFIED = 0; - /** - * Route based VPN. - * - * Generated from protobuf enum ROUTE_BASED = 1; - */ - const ROUTE_BASED = 1; - /** - * Policy based routing. - * - * Generated from protobuf enum POLICY_BASED = 2; - */ - const POLICY_BASED = 2; - /** - * Dynamic (BGP) routing. - * - * Generated from protobuf enum DYNAMIC = 3; - */ - const DYNAMIC = 3; - - private static $valueToName = [ - self::ROUTING_TYPE_UNSPECIFIED => 'ROUTING_TYPE_UNSPECIFIED', - self::ROUTE_BASED => 'ROUTE_BASED', - self::POLICY_BASED => 'POLICY_BASED', - self::DYNAMIC => 'DYNAMIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RoutingType::class, \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo_RoutingType::class); - diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php deleted file mode 100644 index 11e8efb01e9f..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php +++ /dev/null @@ -1,118 +0,0 @@ -setParent($formattedParent) - ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $organizationVpcFlowLogsServiceClient->createVpcFlowLogsConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var VpcFlowLogsConfig $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = OrganizationVpcFlowLogsServiceClient::organizationLocationName( - '[ORGANIZATION]', - '[LOCATION]' - ); - $formattedVpcFlowLogsConfigId = OrganizationVpcFlowLogsServiceClient::vpcFlowLogsConfigName( - '[PROJECT]', - '[LOCATION]', - '[VPC_FLOW_LOGS_CONFIG]' - ); - - create_vpc_flow_logs_config_sample($formattedParent, $formattedVpcFlowLogsConfigId); -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php deleted file mode 100644 index a0f888e6f2a5..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $organizationVpcFlowLogsServiceClient->deleteVpcFlowLogsConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = OrganizationVpcFlowLogsServiceClient::vpcFlowLogsConfigName( - '[PROJECT]', - '[LOCATION]', - '[VPC_FLOW_LOGS_CONFIG]' - ); - - delete_vpc_flow_logs_config_sample($formattedName); -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php deleted file mode 100644 index feaf7b0aa38a..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $organizationVpcFlowLogsServiceClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php deleted file mode 100644 index 1e19cee510cb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetLocation_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php deleted file mode 100644 index ca1332dd2209..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var VpcFlowLogsConfig $response */ - $response = $organizationVpcFlowLogsServiceClient->getVpcFlowLogsConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = OrganizationVpcFlowLogsServiceClient::vpcFlowLogsConfigName( - '[PROJECT]', - '[LOCATION]', - '[VPC_FLOW_LOGS_CONFIG]' - ); - - get_vpc_flow_logs_config_sample($formattedName); -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php deleted file mode 100644 index 354f2f4741aa..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListLocations_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php deleted file mode 100644 index 575f90cd42a7..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $organizationVpcFlowLogsServiceClient->listVpcFlowLogsConfigs($request); - - /** @var VpcFlowLogsConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = OrganizationVpcFlowLogsServiceClient::organizationLocationName( - '[ORGANIZATION]', - '[LOCATION]' - ); - - list_vpc_flow_logs_configs_sample($formattedParent); -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php deleted file mode 100644 index 7a6f41f7ff60..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $organizationVpcFlowLogsServiceClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php deleted file mode 100644 index 906e4d316c5d..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $organizationVpcFlowLogsServiceClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php deleted file mode 100644 index c236cdd5f622..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php +++ /dev/null @@ -1,88 +0,0 @@ -setUpdateMask($updateMask) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $organizationVpcFlowLogsServiceClient->updateVpcFlowLogsConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var VpcFlowLogsConfig $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/create_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/create_connectivity_test.php deleted file mode 100644 index 52a0d5a8e004..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/create_connectivity_test.php +++ /dev/null @@ -1,113 +0,0 @@ -AMBIGUOUS. For more information, - * see the Connectivity Test documentation. - * - * @param string $formattedParent The parent resource of the Connectivity Test to create: - * `projects/{project_id}/locations/global` - * Please see {@see ReachabilityServiceClient::projectName()} for help formatting this field. - * @param string $testId The logical name of the Connectivity Test in your project - * with the following restrictions: - * - * * Must contain only lowercase letters, numbers, and hyphens. - * * Must start with a letter. - * * Must be between 1-40 characters. - * * Must end with a number or a letter. - * * Must be unique within the customer project - */ -function create_connectivity_test_sample(string $formattedParent, string $testId): void -{ - // Create a client. - $reachabilityServiceClient = new ReachabilityServiceClient(); - - // Prepare the request message. - $resourceSource = new Endpoint(); - $resourceDestination = new Endpoint(); - $resource = (new ConnectivityTest()) - ->setSource($resourceSource) - ->setDestination($resourceDestination); - $request = (new CreateConnectivityTestRequest()) - ->setParent($formattedParent) - ->setTestId($testId) - ->setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $reachabilityServiceClient->createConnectivityTest($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ConnectivityTest $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReachabilityServiceClient::projectName('[PROJECT]'); - $testId = '[TEST_ID]'; - - create_connectivity_test_sample($formattedParent, $testId); -} -// [END networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/delete_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/delete_connectivity_test.php deleted file mode 100644 index a78753370fa0..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/delete_connectivity_test.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $reachabilityServiceClient->deleteConnectivityTest($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReachabilityServiceClient::connectivityTestName('[PROJECT]', '[TEST]'); - - delete_connectivity_test_sample($formattedName); -} -// [END networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_connectivity_test.php deleted file mode 100644 index 7344a6ec37cb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_connectivity_test.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ConnectivityTest $response */ - $response = $reachabilityServiceClient->getConnectivityTest($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReachabilityServiceClient::connectivityTestName('[PROJECT]', '[TEST]'); - - get_connectivity_test_sample($formattedName); -} -// [END networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_iam_policy.php deleted file mode 100644 index 1c1483ee6261..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $reachabilityServiceClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END networkmanagement_v1_generated_ReachabilityService_GetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_location.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_location.php deleted file mode 100644 index 394e4abea9fb..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_ReachabilityService_GetLocation_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_connectivity_tests.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_connectivity_tests.php deleted file mode 100644 index aae5702a067e..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_connectivity_tests.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $reachabilityServiceClient->listConnectivityTests($request); - - /** @var ConnectivityTest $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReachabilityServiceClient::projectName('[PROJECT]'); - - list_connectivity_tests_sample($formattedParent); -} -// [END networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_locations.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_locations.php deleted file mode 100644 index 98a11ac6ba96..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_ReachabilityService_ListLocations_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php deleted file mode 100644 index bf05a7eafd4f..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php +++ /dev/null @@ -1,95 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $reachabilityServiceClient->rerunConnectivityTest($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ConnectivityTest $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReachabilityServiceClient::connectivityTestName('[PROJECT]', '[TEST]'); - - rerun_connectivity_test_sample($formattedName); -} -// [END networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/set_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/set_iam_policy.php deleted file mode 100644 index 3d0ec5439566..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $reachabilityServiceClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END networkmanagement_v1_generated_ReachabilityService_SetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/test_iam_permissions.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/test_iam_permissions.php deleted file mode 100644 index 5989deb9c3a8..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $reachabilityServiceClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END networkmanagement_v1_generated_ReachabilityService_TestIamPermissions_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/update_connectivity_test.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/update_connectivity_test.php deleted file mode 100644 index f6f9ac2f41aa..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/ReachabilityServiceClient/update_connectivity_test.php +++ /dev/null @@ -1,92 +0,0 @@ -UNKNOWN. - * - * If the endpoint specifications in `ConnectivityTest` are incomplete, the - * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for more details. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function update_connectivity_test_sample(): void -{ - // Create a client. - $reachabilityServiceClient = new ReachabilityServiceClient(); - - // Prepare the request message. - $updateMask = new FieldMask(); - $resourceSource = new Endpoint(); - $resourceDestination = new Endpoint(); - $resource = (new ConnectivityTest()) - ->setSource($resourceSource) - ->setDestination($resourceDestination); - $request = (new UpdateConnectivityTestRequest()) - ->setUpdateMask($updateMask) - ->setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $reachabilityServiceClient->updateConnectivityTest($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ConnectivityTest $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_ReachabilityService_UpdateConnectivityTest_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php deleted file mode 100644 index 5470eeafc7b3..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php +++ /dev/null @@ -1,118 +0,0 @@ -setParent($formattedParent) - ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $vpcFlowLogsServiceClient->createVpcFlowLogsConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var VpcFlowLogsConfig $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = VpcFlowLogsServiceClient::organizationLocationName( - '[ORGANIZATION]', - '[LOCATION]' - ); - $formattedVpcFlowLogsConfigId = VpcFlowLogsServiceClient::vpcFlowLogsConfigName( - '[PROJECT]', - '[LOCATION]', - '[VPC_FLOW_LOGS_CONFIG]' - ); - - create_vpc_flow_logs_config_sample($formattedParent, $formattedVpcFlowLogsConfigId); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php deleted file mode 100644 index 2bbf6143f78b..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $vpcFlowLogsServiceClient->deleteVpcFlowLogsConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = VpcFlowLogsServiceClient::vpcFlowLogsConfigName( - '[PROJECT]', - '[LOCATION]', - '[VPC_FLOW_LOGS_CONFIG]' - ); - - delete_vpc_flow_logs_config_sample($formattedName); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php deleted file mode 100644 index efc1bc5d87e7..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $vpcFlowLogsServiceClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_GetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_location.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_location.php deleted file mode 100644 index ab4170ef0830..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_GetLocation_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php deleted file mode 100644 index 4aeba5e3850b..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var VpcFlowLogsConfig $response */ - $response = $vpcFlowLogsServiceClient->getVpcFlowLogsConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = VpcFlowLogsServiceClient::vpcFlowLogsConfigName( - '[PROJECT]', - '[LOCATION]', - '[VPC_FLOW_LOGS_CONFIG]' - ); - - get_vpc_flow_logs_config_sample($formattedName); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_locations.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_locations.php deleted file mode 100644 index 6d665963636b..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_ListLocations_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php deleted file mode 100644 index 4b1557dc59da..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $vpcFlowLogsServiceClient->listVpcFlowLogsConfigs($request); - - /** @var VpcFlowLogsConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = VpcFlowLogsServiceClient::organizationLocationName( - '[ORGANIZATION]', - '[LOCATION]' - ); - - list_vpc_flow_logs_configs_sample($formattedParent); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php deleted file mode 100644 index f1c263993fbf..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $vpcFlowLogsServiceClient->queryOrgVpcFlowLogsConfigs($request); - - /** @var VpcFlowLogsConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = VpcFlowLogsServiceClient::organizationLocationName( - '[ORGANIZATION]', - '[LOCATION]' - ); - - query_org_vpc_flow_logs_configs_sample($formattedParent); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php deleted file mode 100644 index 3705173f89b2..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $vpcFlowLogsServiceClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_SetIamPolicy_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php deleted file mode 100644 index 91b3263f7cc1..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php +++ /dev/null @@ -1,87 +0,0 @@ -setParent($formattedParent) - ->setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $vpcFlowLogsServiceClient->showEffectiveFlowLogsConfigs($request); - - /** @var EffectiveVpcFlowLogsConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = VpcFlowLogsServiceClient::organizationLocationName( - '[ORGANIZATION]', - '[LOCATION]' - ); - $resource = '[RESOURCE]'; - - show_effective_flow_logs_configs_sample($formattedParent, $resource); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php deleted file mode 100644 index a943aff2aed7..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $vpcFlowLogsServiceClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_TestIamPermissions_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php b/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php deleted file mode 100644 index cb5182299b80..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php +++ /dev/null @@ -1,88 +0,0 @@ -setUpdateMask($updateMask) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $vpcFlowLogsServiceClient->updateVpcFlowLogsConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var VpcFlowLogsConfig $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/OrganizationVpcFlowLogsServiceClient.php b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/OrganizationVpcFlowLogsServiceClient.php deleted file mode 100644 index 6b8e0f2494a3..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/OrganizationVpcFlowLogsServiceClient.php +++ /dev/null @@ -1,693 +0,0 @@ - createVpcFlowLogsConfigAsync(CreateVpcFlowLogsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteVpcFlowLogsConfigAsync(DeleteVpcFlowLogsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVpcFlowLogsConfigAsync(GetVpcFlowLogsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVpcFlowLogsConfigsAsync(ListVpcFlowLogsConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVpcFlowLogsConfigAsync(UpdateVpcFlowLogsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class OrganizationVpcFlowLogsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'networkmanagement.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'networkmanagement.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/organization_vpc_flow_logs_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/organization_vpc_flow_logs_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/organization_vpc_flow_logs_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/organization_vpc_flow_logs_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted organization_location resource. - */ - public static function organizationLocationName(string $organization, string $location): string - { - return self::getPathTemplate('organizationLocation')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_vpc_flow_logs_config resource. - * - * @param string $organization - * @param string $location - * @param string $vpcFlowLogsConfig - * - * @return string The formatted organization_location_vpc_flow_logs_config resource. - */ - public static function organizationLocationVpcFlowLogsConfigName(string $organization, string $location, string $vpcFlowLogsConfig): string - { - return self::getPathTemplate('organizationLocationVpcFlowLogsConfig')->render([ - 'organization' => $organization, - 'location' => $location, - 'vpc_flow_logs_config' => $vpcFlowLogsConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_vpc_flow_logs_config resource. - * - * @param string $project - * @param string $location - * @param string $vpcFlowLogsConfig - * - * @return string The formatted project_location_vpc_flow_logs_config resource. - */ - public static function projectLocationVpcFlowLogsConfigName(string $project, string $location, string $vpcFlowLogsConfig): string - { - return self::getPathTemplate('projectLocationVpcFlowLogsConfig')->render([ - 'project' => $project, - 'location' => $location, - 'vpc_flow_logs_config' => $vpcFlowLogsConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * vpc_flow_logs_config resource. - * - * @param string $project - * @param string $location - * @param string $vpcFlowLogsConfig - * - * @return string The formatted vpc_flow_logs_config resource. - */ - public static function vpcFlowLogsConfigName(string $project, string $location, string $vpcFlowLogsConfig): string - { - return self::getPathTemplate('vpcFlowLogsConfig')->render([ - 'project' => $project, - 'location' => $location, - 'vpc_flow_logs_config' => $vpcFlowLogsConfig, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - location: projects/{project}/locations/{location} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationVpcFlowLogsConfig: organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} - * - projectLocationVpcFlowLogsConfig: projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} - * - vpcFlowLogsConfig: projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'networkmanagement.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\NetworkManagement\V1\OrganizationVpcFlowLogsServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new OrganizationVpcFlowLogsServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a new `VpcFlowLogsConfig`. - * If a configuration with the exact same settings already exists (even if the - * ID is different), the creation fails. - * Notes: - * - * 1. Creating a configuration with `state=DISABLED` will fail - * 2. The following fields are not considered as settings for the purpose - * of the check mentioned above, therefore - creating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * * name - * * create_time - * * update_time - * * labels - * * description - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::createVpcFlowLogsConfigAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/create_vpc_flow_logs_config.php - * - * @param CreateVpcFlowLogsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateVpcFlowLogsConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a specific `VpcFlowLogsConfig`. - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::deleteVpcFlowLogsConfigAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php - * - * @param DeleteVpcFlowLogsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteVpcFlowLogsConfig(DeleteVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteVpcFlowLogsConfig', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a specific `VpcFlowLogsConfig`. - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::getVpcFlowLogsConfigAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/get_vpc_flow_logs_config.php - * - * @param GetVpcFlowLogsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return VpcFlowLogsConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest $request, array $callOptions = []): VpcFlowLogsConfig - { - return $this->startApiCall('GetVpcFlowLogsConfig', $request, $callOptions)->wait(); - } - - /** - * Lists all `VpcFlowLogsConfigs` in a given organization. - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::listVpcFlowLogsConfigsAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php - * - * @param ListVpcFlowLogsConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListVpcFlowLogsConfigs', $request, $callOptions); - } - - /** - * Updates an existing `VpcFlowLogsConfig`. - * If a configuration with the exact same settings already exists (even if the - * ID is different), the creation fails. - * Notes: - * - * 1. Updating a configuration with `state=DISABLED` will fail - * 2. The following fields are not considered as settings for the purpose - * of the check mentioned above, therefore - updating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * * name - * * create_time - * * update_time - * * labels - * * description - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::updateVpcFlowLogsConfigAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/update_vpc_flow_logs_config.php - * - * @param UpdateVpcFlowLogsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateVpcFlowLogsConfig', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::getLocationAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::listLocationsAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is - * {@see OrganizationVpcFlowLogsServiceClient::testIamPermissionsAsync()} . - * - * @example samples/V1/OrganizationVpcFlowLogsServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/ReachabilityServiceClient.php b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/ReachabilityServiceClient.php deleted file mode 100644 index 281d61fd38f3..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/ReachabilityServiceClient.php +++ /dev/null @@ -1,668 +0,0 @@ - createConnectivityTestAsync(CreateConnectivityTestRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConnectivityTestAsync(DeleteConnectivityTestRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConnectivityTestAsync(GetConnectivityTestRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConnectivityTestsAsync(ListConnectivityTestsRequest $request, array $optionalArgs = []) - * @method PromiseInterface rerunConnectivityTestAsync(RerunConnectivityTestRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConnectivityTestAsync(UpdateConnectivityTestRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class ReachabilityServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.networkmanagement.v1.ReachabilityService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'networkmanagement.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'networkmanagement.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/reachability_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/reachability_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/reachability_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/reachability_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * connectivity_test resource. - * - * @param string $project - * @param string $test - * - * @return string The formatted connectivity_test resource. - */ - public static function connectivityTestName(string $project, string $test): string - { - return self::getPathTemplate('connectivityTest')->render([ - 'project' => $project, - 'test' => $test, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - connectivityTest: projects/{project}/locations/global/connectivityTests/{test} - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'networkmanagement.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\NetworkManagement\V1\ReachabilityServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new ReachabilityServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a new Connectivity Test. - * After you create a test, the reachability analysis is performed as part - * of the long running operation, which completes when the analysis completes. - * - * If the endpoint specifications in `ConnectivityTest` are invalid - * (for example, containing non-existent resources in the network, or you - * don't have read permissions to the network configurations of listed - * projects), then the reachability result returns a value of `UNKNOWN`. - * - * If the endpoint specifications in `ConnectivityTest` are - * incomplete, the reachability result returns a value of - * AMBIGUOUS. For more information, - * see the Connectivity Test documentation. - * - * The async variant is - * {@see ReachabilityServiceClient::createConnectivityTestAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/create_connectivity_test.php - * - * @param CreateConnectivityTestRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createConnectivityTest(CreateConnectivityTestRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateConnectivityTest', $request, $callOptions)->wait(); - } - - /** - * Deletes a specific `ConnectivityTest`. - * - * The async variant is - * {@see ReachabilityServiceClient::deleteConnectivityTestAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/delete_connectivity_test.php - * - * @param DeleteConnectivityTestRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteConnectivityTest(DeleteConnectivityTestRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteConnectivityTest', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a specific Connectivity Test. - * - * The async variant is - * {@see ReachabilityServiceClient::getConnectivityTestAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/get_connectivity_test.php - * - * @param GetConnectivityTestRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConnectivityTest - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConnectivityTest(GetConnectivityTestRequest $request, array $callOptions = []): ConnectivityTest - { - return $this->startApiCall('GetConnectivityTest', $request, $callOptions)->wait(); - } - - /** - * Lists all Connectivity Tests owned by a project. - * - * The async variant is - * {@see ReachabilityServiceClient::listConnectivityTestsAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/list_connectivity_tests.php - * - * @param ListConnectivityTestsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listConnectivityTests(ListConnectivityTestsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConnectivityTests', $request, $callOptions); - } - - /** - * Rerun an existing `ConnectivityTest`. - * After the user triggers the rerun, the reachability analysis is performed - * as part of the long running operation, which completes when the analysis - * completes. - * - * Even though the test configuration remains the same, the reachability - * result may change due to underlying network configuration changes. - * - * If the endpoint specifications in `ConnectivityTest` become invalid (for - * example, specified resources are deleted in the network, or you lost - * read permissions to the network configurations of listed projects), then - * the reachability result returns a value of `UNKNOWN`. - * - * The async variant is - * {@see ReachabilityServiceClient::rerunConnectivityTestAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/rerun_connectivity_test.php - * - * @param RerunConnectivityTestRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function rerunConnectivityTest(RerunConnectivityTestRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RerunConnectivityTest', $request, $callOptions)->wait(); - } - - /** - * Updates the configuration of an existing `ConnectivityTest`. - * After you update a test, the reachability analysis is performed as part - * of the long running operation, which completes when the analysis completes. - * The Reachability state in the test resource is updated with the new result. - * - * If the endpoint specifications in `ConnectivityTest` are invalid - * (for example, they contain non-existent resources in the network, or the - * user does not have read permissions to the network configurations of - * listed projects), then the reachability result returns a value of - * UNKNOWN. - * - * If the endpoint specifications in `ConnectivityTest` are incomplete, the - * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for more details. - * - * The async variant is - * {@see ReachabilityServiceClient::updateConnectivityTestAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/update_connectivity_test.php - * - * @param UpdateConnectivityTestRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateConnectivityTest(UpdateConnectivityTestRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateConnectivityTest', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ReachabilityServiceClient::getLocationAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see ReachabilityServiceClient::listLocationsAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see ReachabilityServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see ReachabilityServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/ReachabilityServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see ReachabilityServiceClient::testIamPermissionsAsync()} - * . - * - * @example samples/V1/ReachabilityServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/VpcFlowLogsServiceClient.php b/owl-bot-staging/NetworkManagement/v1/src/V1/Client/VpcFlowLogsServiceClient.php deleted file mode 100644 index 1f69568a70a9..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/Client/VpcFlowLogsServiceClient.php +++ /dev/null @@ -1,748 +0,0 @@ - createVpcFlowLogsConfigAsync(CreateVpcFlowLogsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteVpcFlowLogsConfigAsync(DeleteVpcFlowLogsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVpcFlowLogsConfigAsync(GetVpcFlowLogsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVpcFlowLogsConfigsAsync(ListVpcFlowLogsConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryOrgVpcFlowLogsConfigsAsync(QueryOrgVpcFlowLogsConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface showEffectiveFlowLogsConfigsAsync(ShowEffectiveFlowLogsConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVpcFlowLogsConfigAsync(UpdateVpcFlowLogsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class VpcFlowLogsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.networkmanagement.v1.VpcFlowLogsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'networkmanagement.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'networkmanagement.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/vpc_flow_logs_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/vpc_flow_logs_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/vpc_flow_logs_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/vpc_flow_logs_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted organization_location resource. - */ - public static function organizationLocationName(string $organization, string $location): string - { - return self::getPathTemplate('organizationLocation')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_vpc_flow_logs_config resource. - * - * @param string $organization - * @param string $location - * @param string $vpcFlowLogsConfig - * - * @return string The formatted organization_location_vpc_flow_logs_config resource. - */ - public static function organizationLocationVpcFlowLogsConfigName(string $organization, string $location, string $vpcFlowLogsConfig): string - { - return self::getPathTemplate('organizationLocationVpcFlowLogsConfig')->render([ - 'organization' => $organization, - 'location' => $location, - 'vpc_flow_logs_config' => $vpcFlowLogsConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_vpc_flow_logs_config resource. - * - * @param string $project - * @param string $location - * @param string $vpcFlowLogsConfig - * - * @return string The formatted project_location_vpc_flow_logs_config resource. - */ - public static function projectLocationVpcFlowLogsConfigName(string $project, string $location, string $vpcFlowLogsConfig): string - { - return self::getPathTemplate('projectLocationVpcFlowLogsConfig')->render([ - 'project' => $project, - 'location' => $location, - 'vpc_flow_logs_config' => $vpcFlowLogsConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * vpc_flow_logs_config resource. - * - * @param string $project - * @param string $location - * @param string $vpcFlowLogsConfig - * - * @return string The formatted vpc_flow_logs_config resource. - */ - public static function vpcFlowLogsConfigName(string $project, string $location, string $vpcFlowLogsConfig): string - { - return self::getPathTemplate('vpcFlowLogsConfig')->render([ - 'project' => $project, - 'location' => $location, - 'vpc_flow_logs_config' => $vpcFlowLogsConfig, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - location: projects/{project}/locations/{location} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationVpcFlowLogsConfig: organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} - * - projectLocationVpcFlowLogsConfig: projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} - * - vpcFlowLogsConfig: projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'networkmanagement.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\NetworkManagement\V1\VpcFlowLogsServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new VpcFlowLogsServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a new `VpcFlowLogsConfig`. - * If a configuration with the exact same settings already exists (even if the - * ID is different), the creation fails. - * Notes: - * - * 1. Creating a configuration with `state=DISABLED` will fail - * 2. The following fields are not considered as settings for the purpose - * of the check mentioned above, therefore - creating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * * name - * * create_time - * * update_time - * * labels - * * description - * - * The async variant is - * {@see VpcFlowLogsServiceClient::createVpcFlowLogsConfigAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/create_vpc_flow_logs_config.php - * - * @param CreateVpcFlowLogsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateVpcFlowLogsConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a specific `VpcFlowLogsConfig`. - * - * The async variant is - * {@see VpcFlowLogsServiceClient::deleteVpcFlowLogsConfigAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/delete_vpc_flow_logs_config.php - * - * @param DeleteVpcFlowLogsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteVpcFlowLogsConfig(DeleteVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteVpcFlowLogsConfig', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a specific `VpcFlowLogsConfig`. - * - * The async variant is - * {@see VpcFlowLogsServiceClient::getVpcFlowLogsConfigAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/get_vpc_flow_logs_config.php - * - * @param GetVpcFlowLogsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return VpcFlowLogsConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest $request, array $callOptions = []): VpcFlowLogsConfig - { - return $this->startApiCall('GetVpcFlowLogsConfig', $request, $callOptions)->wait(); - } - - /** - * Lists all `VpcFlowLogsConfigs` in a given project. - * - * The async variant is - * {@see VpcFlowLogsServiceClient::listVpcFlowLogsConfigsAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/list_vpc_flow_logs_configs.php - * - * @param ListVpcFlowLogsConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListVpcFlowLogsConfigs', $request, $callOptions); - } - - /** - * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC - * Flow Logs configurations applicable to the specified project. - * - * The async variant is - * {@see VpcFlowLogsServiceClient::queryOrgVpcFlowLogsConfigsAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/query_org_vpc_flow_logs_configs.php - * - * @param QueryOrgVpcFlowLogsConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryOrgVpcFlowLogsConfigs(QueryOrgVpcFlowLogsConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryOrgVpcFlowLogsConfigs', $request, $callOptions); - } - - /** - * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs - * configurations applicable to a specified resource. - * - * The async variant is - * {@see VpcFlowLogsServiceClient::showEffectiveFlowLogsConfigsAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/show_effective_flow_logs_configs.php - * - * @param ShowEffectiveFlowLogsConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function showEffectiveFlowLogsConfigs(ShowEffectiveFlowLogsConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ShowEffectiveFlowLogsConfigs', $request, $callOptions); - } - - /** - * Updates an existing `VpcFlowLogsConfig`. - * If a configuration with the exact same settings already exists (even if the - * ID is different), the creation fails. - * Notes: - * - * 1. Updating a configuration with `state=DISABLED` will fail. - * 2. The following fields are not considered as settings for the purpose - * of the check mentioned above, therefore - updating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * * name - * * create_time - * * update_time - * * labels - * * description - * - * The async variant is - * {@see VpcFlowLogsServiceClient::updateVpcFlowLogsConfigAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/update_vpc_flow_logs_config.php - * - * @param UpdateVpcFlowLogsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateVpcFlowLogsConfig', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see VpcFlowLogsServiceClient::getLocationAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see VpcFlowLogsServiceClient::listLocationsAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see VpcFlowLogsServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see VpcFlowLogsServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/VpcFlowLogsServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see VpcFlowLogsServiceClient::testIamPermissionsAsync()} - * . - * - * @example samples/V1/VpcFlowLogsServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/gapic_metadata.json b/owl-bot-staging/NetworkManagement/v1/src/V1/gapic_metadata.json deleted file mode 100644 index d9f12f6ba6de..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.networkmanagement.v1", - "libraryPackage": "Google\\Cloud\\NetworkManagement\\V1", - "services": { - "ReachabilityService": { - "clients": { - "grpc": { - "libraryClient": "ReachabilityServiceGapicClient", - "rpcs": { - "CreateConnectivityTest": { - "methods": [ - "createConnectivityTest" - ] - }, - "DeleteConnectivityTest": { - "methods": [ - "deleteConnectivityTest" - ] - }, - "GetConnectivityTest": { - "methods": [ - "getConnectivityTest" - ] - }, - "ListConnectivityTests": { - "methods": [ - "listConnectivityTests" - ] - }, - "RerunConnectivityTest": { - "methods": [ - "rerunConnectivityTest" - ] - }, - "UpdateConnectivityTest": { - "methods": [ - "updateConnectivityTest" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "VpcFlowLogsService": { - "clients": { - "grpc": { - "libraryClient": "VpcFlowLogsServiceGapicClient", - "rpcs": { - "CreateVpcFlowLogsConfig": { - "methods": [ - "createVpcFlowLogsConfig" - ] - }, - "DeleteVpcFlowLogsConfig": { - "methods": [ - "deleteVpcFlowLogsConfig" - ] - }, - "GetVpcFlowLogsConfig": { - "methods": [ - "getVpcFlowLogsConfig" - ] - }, - "ListVpcFlowLogsConfigs": { - "methods": [ - "listVpcFlowLogsConfigs" - ] - }, - "QueryOrgVpcFlowLogsConfigs": { - "methods": [ - "queryOrgVpcFlowLogsConfigs" - ] - }, - "ShowEffectiveFlowLogsConfigs": { - "methods": [ - "showEffectiveFlowLogsConfigs" - ] - }, - "UpdateVpcFlowLogsConfig": { - "methods": [ - "updateVpcFlowLogsConfig" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "OrganizationVpcFlowLogsService": { - "clients": { - "grpc": { - "libraryClient": "OrganizationVpcFlowLogsServiceGapicClient", - "rpcs": { - "CreateVpcFlowLogsConfig": { - "methods": [ - "createVpcFlowLogsConfig" - ] - }, - "DeleteVpcFlowLogsConfig": { - "methods": [ - "deleteVpcFlowLogsConfig" - ] - }, - "GetVpcFlowLogsConfig": { - "methods": [ - "getVpcFlowLogsConfig" - ] - }, - "ListVpcFlowLogsConfigs": { - "methods": [ - "listVpcFlowLogsConfigs" - ] - }, - "UpdateVpcFlowLogsConfig": { - "methods": [ - "updateVpcFlowLogsConfig" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_client_config.json b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_client_config.json deleted file mode 100644 index 97ea46fc0c69..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_client_config.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "interfaces": { - "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "CreateVpcFlowLogsConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteVpcFlowLogsConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetVpcFlowLogsConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListVpcFlowLogsConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateVpcFlowLogsConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_descriptor_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_descriptor_config.php deleted file mode 100644 index 3bc3a88e8176..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_descriptor_config.php +++ /dev/null @@ -1,198 +0,0 @@ - [ - 'google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService' => [ - 'CreateVpcFlowLogsConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteVpcFlowLogsConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateVpcFlowLogsConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'vpc_flow_logs_config.name', - 'fieldAccessors' => [ - 'getVpcFlowLogsConfig', - 'getName', - ], - ], - ], - ], - 'GetVpcFlowLogsConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListVpcFlowLogsConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getVpcFlowLogsConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\NetworkManagement\V1\ListVpcFlowLogsConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'location' => 'projects/{project}/locations/{location}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationVpcFlowLogsConfig' => 'organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', - 'projectLocationVpcFlowLogsConfig' => 'projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', - 'vpcFlowLogsConfig' => 'projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', - ], - ], - ], -]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php deleted file mode 100644 index baa37ad6b86a..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/organization_vpc_flow_logs_service_rest_client_config.php +++ /dev/null @@ -1,238 +0,0 @@ - [ - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService' => [ - 'CreateVpcFlowLogsConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs', - 'body' => 'vpc_flow_logs_config', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'vpc_flow_logs_config_id', - ], - ], - 'DeleteVpcFlowLogsConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetVpcFlowLogsConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListVpcFlowLogsConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateVpcFlowLogsConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{vpc_flow_logs_config.name=organizations/*/locations/*/vpcFlowLogsConfigs/*}', - 'body' => 'vpc_flow_logs_config', - 'placeholders' => [ - 'vpc_flow_logs_config.name' => [ - 'getters' => [ - 'getVpcFlowLogsConfig', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/global}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_client_config.json b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_client_config.json deleted file mode 100644 index a3be86836334..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_client_config.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "interfaces": { - "google.cloud.networkmanagement.v1.ReachabilityService": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateConnectivityTest": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteConnectivityTest": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetConnectivityTest": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListConnectivityTests": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RerunConnectivityTest": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateConnectivityTest": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_descriptor_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_descriptor_config.php deleted file mode 100644 index b24b165a7f7e..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_descriptor_config.php +++ /dev/null @@ -1,214 +0,0 @@ - [ - 'google.cloud.networkmanagement.v1.ReachabilityService' => [ - 'CreateConnectivityTest' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\ConnectivityTest', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConnectivityTest' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RerunConnectivityTest' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\ConnectivityTest', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateConnectivityTest' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\ConnectivityTest', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'resource.name', - 'fieldAccessors' => [ - 'getResource', - 'getName', - ], - ], - ], - ], - 'GetConnectivityTest' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\NetworkManagement\V1\ConnectivityTest', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListConnectivityTests' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResources', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\NetworkManagement\V1\ListConnectivityTestsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'connectivityTest' => 'projects/{project}/locations/global/connectivityTests/{test}', - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_rest_client_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_rest_client_config.php deleted file mode 100644 index 3c3c26eec550..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/reachability_service_rest_client_config.php +++ /dev/null @@ -1,250 +0,0 @@ - [ - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.networkmanagement.v1.ReachabilityService' => [ - 'CreateConnectivityTest' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/global}/connectivityTests', - 'body' => 'resource', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'test_id', - ], - ], - 'DeleteConnectivityTest' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/connectivityTests/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConnectivityTest' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/connectivityTests/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListConnectivityTests' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/global}/connectivityTests', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RerunConnectivityTest' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/connectivityTests/*}:rerun', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateConnectivityTest' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{resource.name=projects/*/locations/global/connectivityTests/*}', - 'body' => 'resource', - 'placeholders' => [ - 'resource.name' => [ - 'getters' => [ - 'getResource', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/global}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_client_config.json b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_client_config.json deleted file mode 100644 index 6f512eef56d7..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_client_config.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "interfaces": { - "google.cloud.networkmanagement.v1.VpcFlowLogsService": { - "retry_codes": { - "no_retry_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "CreateVpcFlowLogsConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteVpcFlowLogsConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetVpcFlowLogsConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListVpcFlowLogsConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryOrgVpcFlowLogsConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ShowEffectiveFlowLogsConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateVpcFlowLogsConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_descriptor_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_descriptor_config.php deleted file mode 100644 index 0246ad2b5443..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_descriptor_config.php +++ /dev/null @@ -1,238 +0,0 @@ - [ - 'google.cloud.networkmanagement.v1.VpcFlowLogsService' => [ - 'CreateVpcFlowLogsConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteVpcFlowLogsConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateVpcFlowLogsConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', - 'metadataReturnType' => '\Google\Cloud\NetworkManagement\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'vpc_flow_logs_config.name', - 'fieldAccessors' => [ - 'getVpcFlowLogsConfig', - 'getName', - ], - ], - ], - ], - 'GetVpcFlowLogsConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\NetworkManagement\V1\VpcFlowLogsConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListVpcFlowLogsConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getVpcFlowLogsConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\NetworkManagement\V1\ListVpcFlowLogsConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'QueryOrgVpcFlowLogsConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getVpcFlowLogsConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\NetworkManagement\V1\QueryOrgVpcFlowLogsConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ShowEffectiveFlowLogsConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEffectiveFlowLogsConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\NetworkManagement\V1\ShowEffectiveFlowLogsConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'location' => 'projects/{project}/locations/{location}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationVpcFlowLogsConfig' => 'organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', - 'projectLocationVpcFlowLogsConfig' => 'projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', - 'vpcFlowLogsConfig' => 'projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}', - ], - ], - ], -]; diff --git a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_rest_client_config.php b/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_rest_client_config.php deleted file mode 100644 index 7a3087528d3e..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/src/V1/resources/vpc_flow_logs_service_rest_client_config.php +++ /dev/null @@ -1,260 +0,0 @@ - [ - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.networkmanagement.v1.VpcFlowLogsService' => [ - 'CreateVpcFlowLogsConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs', - 'body' => 'vpc_flow_logs_config', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'vpc_flow_logs_config_id', - ], - ], - 'DeleteVpcFlowLogsConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetVpcFlowLogsConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListVpcFlowLogsConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'QueryOrgVpcFlowLogsConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ShowEffectiveFlowLogsConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateVpcFlowLogsConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{vpc_flow_logs_config.name=projects/*/locations/*/vpcFlowLogsConfigs/*}', - 'body' => 'vpc_flow_logs_config', - 'placeholders' => [ - 'vpc_flow_logs_config.name' => [ - 'getters' => [ - 'getVpcFlowLogsConfig', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/global/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/global}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/global}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/OrganizationVpcFlowLogsServiceClientTest.php b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/OrganizationVpcFlowLogsServiceClientTest.php deleted file mode 100644 index c8719fd4880c..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/OrganizationVpcFlowLogsServiceClientTest.php +++ /dev/null @@ -1,1039 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return OrganizationVpcFlowLogsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new OrganizationVpcFlowLogsServiceClient($options); - } - - /** @test */ - public function createVpcFlowLogsConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $flowSampling = -4027498; - $filterExpr = 'filterExpr-890367396'; - $network = 'network1843485230'; - $expectedResponse = new VpcFlowLogsConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setFlowSampling($flowSampling); - $expectedResponse->setFilterExpr($filterExpr); - $expectedResponse->setNetwork($network); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createVpcFlowLogsConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new CreateVpcFlowLogsConfigRequest()) - ->setParent($formattedParent) - ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->createVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/CreateVpcFlowLogsConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfigId(); - $this->assertProtobufEquals($formattedVpcFlowLogsConfigId, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); - $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createVpcFlowLogsConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new CreateVpcFlowLogsConfigRequest()) - ->setParent($formattedParent) - ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->createVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteVpcFlowLogsConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteVpcFlowLogsConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $request = (new DeleteVpcFlowLogsConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/DeleteVpcFlowLogsConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteVpcFlowLogsConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteVpcFlowLogsConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $request = (new DeleteVpcFlowLogsConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteVpcFlowLogsConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getVpcFlowLogsConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $flowSampling = -4027498; - $filterExpr = 'filterExpr-890367396'; - $network = 'network1843485230'; - $expectedResponse = new VpcFlowLogsConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setFlowSampling($flowSampling); - $expectedResponse->setFilterExpr($filterExpr); - $expectedResponse->setNetwork($network); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $request = (new GetVpcFlowLogsConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getVpcFlowLogsConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/GetVpcFlowLogsConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVpcFlowLogsConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $request = (new GetVpcFlowLogsConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getVpcFlowLogsConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVpcFlowLogsConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $vpcFlowLogsConfigsElement = new VpcFlowLogsConfig(); - $vpcFlowLogsConfigs = [ - $vpcFlowLogsConfigsElement, - ]; - $expectedResponse = new ListVpcFlowLogsConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setVpcFlowLogsConfigs($vpcFlowLogsConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListVpcFlowLogsConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listVpcFlowLogsConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getVpcFlowLogsConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/ListVpcFlowLogsConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVpcFlowLogsConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListVpcFlowLogsConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listVpcFlowLogsConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVpcFlowLogsConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $flowSampling = -4027498; - $filterExpr = 'filterExpr-890367396'; - $network = 'network1843485230'; - $expectedResponse = new VpcFlowLogsConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setFlowSampling($flowSampling); - $expectedResponse->setFilterExpr($filterExpr); - $expectedResponse->setNetwork($network); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateVpcFlowLogsConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new UpdateVpcFlowLogsConfigRequest()) - ->setUpdateMask($updateMask) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->updateVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/UpdateVpcFlowLogsConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); - $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateVpcFlowLogsConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateVpcFlowLogsConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new UpdateVpcFlowLogsConfigRequest()) - ->setUpdateMask($updateMask) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->updateVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateVpcFlowLogsConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createVpcFlowLogsConfigAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $flowSampling = -4027498; - $filterExpr = 'filterExpr-890367396'; - $network = 'network1843485230'; - $expectedResponse = new VpcFlowLogsConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setFlowSampling($flowSampling); - $expectedResponse->setFilterExpr($filterExpr); - $expectedResponse->setNetwork($network); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createVpcFlowLogsConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new CreateVpcFlowLogsConfigRequest()) - ->setParent($formattedParent) - ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->createVpcFlowLogsConfigAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/CreateVpcFlowLogsConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfigId(); - $this->assertProtobufEquals($formattedVpcFlowLogsConfigId, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); - $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/ReachabilityServiceClientTest.php b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/ReachabilityServiceClientTest.php deleted file mode 100644 index 81d2cee56066..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/ReachabilityServiceClientTest.php +++ /dev/null @@ -1,1202 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ReachabilityServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ReachabilityServiceClient($options); - } - - /** @test */ - public function createConnectivityTestTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $protocol = 'protocol-989163880'; - $displayName = 'displayName1615086568'; - $roundTrip = true; - $bypassFirewallChecks = false; - $expectedResponse = new ConnectivityTest(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setProtocol($protocol); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRoundTrip($roundTrip); - $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createConnectivityTestTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $testId = 'testId-1422455832'; - $resource = new ConnectivityTest(); - $resourceSource = new Endpoint(); - $resource->setSource($resourceSource); - $resourceDestination = new Endpoint(); - $resource->setDestination($resourceDestination); - $request = (new CreateConnectivityTestRequest()) - ->setParent($formattedParent) - ->setTestId($testId) - ->setResource($resource); - $response = $gapicClient->createConnectivityTest($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/CreateConnectivityTest', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getTestId(); - $this->assertProtobufEquals($testId, $actualValue); - $actualValue = $actualApiRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createConnectivityTestTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createConnectivityTestExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $testId = 'testId-1422455832'; - $resource = new ConnectivityTest(); - $resourceSource = new Endpoint(); - $resource->setSource($resourceSource); - $resourceDestination = new Endpoint(); - $resource->setDestination($resourceDestination); - $request = (new CreateConnectivityTestRequest()) - ->setParent($formattedParent) - ->setTestId($testId) - ->setResource($resource); - $response = $gapicClient->createConnectivityTest($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createConnectivityTestTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteConnectivityTestTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteConnectivityTestTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); - $request = (new DeleteConnectivityTestRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteConnectivityTest($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/DeleteConnectivityTest', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteConnectivityTestTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteConnectivityTestExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); - $request = (new DeleteConnectivityTestRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteConnectivityTest($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteConnectivityTestTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getConnectivityTestTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $protocol = 'protocol-989163880'; - $displayName = 'displayName1615086568'; - $roundTrip = true; - $bypassFirewallChecks = false; - $expectedResponse = new ConnectivityTest(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setProtocol($protocol); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRoundTrip($roundTrip); - $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); - $request = (new GetConnectivityTestRequest()) - ->setName($formattedName); - $response = $gapicClient->getConnectivityTest($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/GetConnectivityTest', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectivityTestExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); - $request = (new GetConnectivityTestRequest()) - ->setName($formattedName); - try { - $gapicClient->getConnectivityTest($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectivityTestsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resourcesElement = new ConnectivityTest(); - $resources = [ - $resourcesElement, - ]; - $expectedResponse = new ListConnectivityTestsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResources($resources); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListConnectivityTestsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConnectivityTests($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResources()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/ListConnectivityTests', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectivityTestsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListConnectivityTestsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConnectivityTests($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rerunConnectivityTestTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/rerunConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $protocol = 'protocol-989163880'; - $displayName = 'displayName1615086568'; - $roundTrip = true; - $bypassFirewallChecks = false; - $expectedResponse = new ConnectivityTest(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setProtocol($protocol); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRoundTrip($roundTrip); - $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/rerunConnectivityTestTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); - $request = (new RerunConnectivityTestRequest()) - ->setName($formattedName); - $response = $gapicClient->rerunConnectivityTest($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/RerunConnectivityTest', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/rerunConnectivityTestTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function rerunConnectivityTestExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/rerunConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectivityTestName('[PROJECT]', '[TEST]'); - $request = (new RerunConnectivityTestRequest()) - ->setName($formattedName); - $response = $gapicClient->rerunConnectivityTest($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/rerunConnectivityTestTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateConnectivityTestTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $protocol = 'protocol-989163880'; - $displayName = 'displayName1615086568'; - $roundTrip = true; - $bypassFirewallChecks = false; - $expectedResponse = new ConnectivityTest(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setProtocol($protocol); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRoundTrip($roundTrip); - $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateConnectivityTestTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $resource = new ConnectivityTest(); - $resourceSource = new Endpoint(); - $resource->setSource($resourceSource); - $resourceDestination = new Endpoint(); - $resource->setDestination($resourceDestination); - $request = (new UpdateConnectivityTestRequest()) - ->setUpdateMask($updateMask) - ->setResource($resource); - $response = $gapicClient->updateConnectivityTest($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/UpdateConnectivityTest', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateConnectivityTestTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateConnectivityTestExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $resource = new ConnectivityTest(); - $resourceSource = new Endpoint(); - $resource->setSource($resourceSource); - $resourceDestination = new Endpoint(); - $resource->setDestination($resourceDestination); - $request = (new UpdateConnectivityTestRequest()) - ->setUpdateMask($updateMask) - ->setResource($resource); - $response = $gapicClient->updateConnectivityTest($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateConnectivityTestTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectivityTestAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createConnectivityTestTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $protocol = 'protocol-989163880'; - $displayName = 'displayName1615086568'; - $roundTrip = true; - $bypassFirewallChecks = false; - $expectedResponse = new ConnectivityTest(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setProtocol($protocol); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRoundTrip($roundTrip); - $expectedResponse->setBypassFirewallChecks($bypassFirewallChecks); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createConnectivityTestTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $testId = 'testId-1422455832'; - $resource = new ConnectivityTest(); - $resourceSource = new Endpoint(); - $resource->setSource($resourceSource); - $resourceDestination = new Endpoint(); - $resource->setDestination($resourceDestination); - $request = (new CreateConnectivityTestRequest()) - ->setParent($formattedParent) - ->setTestId($testId) - ->setResource($resource); - $response = $gapicClient->createConnectivityTestAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.ReachabilityService/CreateConnectivityTest', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getTestId(); - $this->assertProtobufEquals($testId, $actualValue); - $actualValue = $actualApiRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createConnectivityTestTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/VpcFlowLogsServiceClientTest.php b/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/VpcFlowLogsServiceClientTest.php deleted file mode 100644 index b7f09bf2c475..000000000000 --- a/owl-bot-staging/NetworkManagement/v1/tests/Unit/V1/Client/VpcFlowLogsServiceClientTest.php +++ /dev/null @@ -1,1194 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return VpcFlowLogsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new VpcFlowLogsServiceClient($options); - } - - /** @test */ - public function createVpcFlowLogsConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $flowSampling = -4027498; - $filterExpr = 'filterExpr-890367396'; - $network = 'network1843485230'; - $expectedResponse = new VpcFlowLogsConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setFlowSampling($flowSampling); - $expectedResponse->setFilterExpr($filterExpr); - $expectedResponse->setNetwork($network); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createVpcFlowLogsConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new CreateVpcFlowLogsConfigRequest()) - ->setParent($formattedParent) - ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->createVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/CreateVpcFlowLogsConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfigId(); - $this->assertProtobufEquals($formattedVpcFlowLogsConfigId, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); - $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createVpcFlowLogsConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new CreateVpcFlowLogsConfigRequest()) - ->setParent($formattedParent) - ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->createVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteVpcFlowLogsConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteVpcFlowLogsConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $request = (new DeleteVpcFlowLogsConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/DeleteVpcFlowLogsConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteVpcFlowLogsConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteVpcFlowLogsConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $request = (new DeleteVpcFlowLogsConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteVpcFlowLogsConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getVpcFlowLogsConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $flowSampling = -4027498; - $filterExpr = 'filterExpr-890367396'; - $network = 'network1843485230'; - $expectedResponse = new VpcFlowLogsConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setFlowSampling($flowSampling); - $expectedResponse->setFilterExpr($filterExpr); - $expectedResponse->setNetwork($network); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $request = (new GetVpcFlowLogsConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getVpcFlowLogsConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/GetVpcFlowLogsConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVpcFlowLogsConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $request = (new GetVpcFlowLogsConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getVpcFlowLogsConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVpcFlowLogsConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $vpcFlowLogsConfigsElement = new VpcFlowLogsConfig(); - $vpcFlowLogsConfigs = [ - $vpcFlowLogsConfigsElement, - ]; - $expectedResponse = new ListVpcFlowLogsConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setVpcFlowLogsConfigs($vpcFlowLogsConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListVpcFlowLogsConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listVpcFlowLogsConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getVpcFlowLogsConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/ListVpcFlowLogsConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVpcFlowLogsConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListVpcFlowLogsConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listVpcFlowLogsConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryOrgVpcFlowLogsConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $vpcFlowLogsConfigsElement = new VpcFlowLogsConfig(); - $vpcFlowLogsConfigs = [ - $vpcFlowLogsConfigsElement, - ]; - $expectedResponse = new QueryOrgVpcFlowLogsConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setVpcFlowLogsConfigs($vpcFlowLogsConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new QueryOrgVpcFlowLogsConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->queryOrgVpcFlowLogsConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getVpcFlowLogsConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/QueryOrgVpcFlowLogsConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryOrgVpcFlowLogsConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new QueryOrgVpcFlowLogsConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->queryOrgVpcFlowLogsConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function showEffectiveFlowLogsConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $effectiveFlowLogsConfigsElement = new EffectiveVpcFlowLogsConfig(); - $effectiveFlowLogsConfigs = [ - $effectiveFlowLogsConfigsElement, - ]; - $expectedResponse = new ShowEffectiveFlowLogsConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEffectiveFlowLogsConfigs($effectiveFlowLogsConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $resource = 'resource-341064690'; - $request = (new ShowEffectiveFlowLogsConfigsRequest()) - ->setParent($formattedParent) - ->setResource($resource); - $response = $gapicClient->showEffectiveFlowLogsConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEffectiveFlowLogsConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/ShowEffectiveFlowLogsConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function showEffectiveFlowLogsConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $resource = 'resource-341064690'; - $request = (new ShowEffectiveFlowLogsConfigsRequest()) - ->setParent($formattedParent) - ->setResource($resource); - try { - $gapicClient->showEffectiveFlowLogsConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVpcFlowLogsConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $flowSampling = -4027498; - $filterExpr = 'filterExpr-890367396'; - $network = 'network1843485230'; - $expectedResponse = new VpcFlowLogsConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setFlowSampling($flowSampling); - $expectedResponse->setFilterExpr($filterExpr); - $expectedResponse->setNetwork($network); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateVpcFlowLogsConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new UpdateVpcFlowLogsConfigRequest()) - ->setUpdateMask($updateMask) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->updateVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/UpdateVpcFlowLogsConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); - $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateVpcFlowLogsConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateVpcFlowLogsConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new UpdateVpcFlowLogsConfigRequest()) - ->setUpdateMask($updateMask) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->updateVpcFlowLogsConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateVpcFlowLogsConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createVpcFlowLogsConfigAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVpcFlowLogsConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $flowSampling = -4027498; - $filterExpr = 'filterExpr-890367396'; - $network = 'network1843485230'; - $expectedResponse = new VpcFlowLogsConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setFlowSampling($flowSampling); - $expectedResponse->setFilterExpr($filterExpr); - $expectedResponse->setNetwork($network); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createVpcFlowLogsConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $formattedVpcFlowLogsConfigId = $gapicClient->vpcFlowLogsConfigName('[PROJECT]', '[LOCATION]', '[VPC_FLOW_LOGS_CONFIG]'); - $vpcFlowLogsConfig = new VpcFlowLogsConfig(); - $request = (new CreateVpcFlowLogsConfigRequest()) - ->setParent($formattedParent) - ->setVpcFlowLogsConfigId($formattedVpcFlowLogsConfigId) - ->setVpcFlowLogsConfig($vpcFlowLogsConfig); - $response = $gapicClient->createVpcFlowLogsConfigAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.networkmanagement.v1.VpcFlowLogsService/CreateVpcFlowLogsConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfigId(); - $this->assertProtobufEquals($formattedVpcFlowLogsConfigId, $actualValue); - $actualValue = $actualApiRequestObject->getVpcFlowLogsConfig(); - $this->assertProtobufEquals($vpcFlowLogsConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVpcFlowLogsConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -}