From 84363d32f4dfd7d6527ee86c46f176f231ebc16c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 20 Dec 2022 21:54:53 +0000 Subject: [PATCH 1/4] feat: Support AttachedClusters feat: Add errors output fields for cluster and nodepool resources feat: Add AWS Autoscaling Group metrics collection for AWS nodepools feat: Add monitoring config Clients can now (1) manage Attached Clusters, (2) use managed GMP metrics collection, (3) enable AWS nodepool ASG metrics collection, and (4) get error summary from API resources. PiperOrigin-RevId: 496709757 Source-Link: https://github.com/googleapis/googleapis/commit/8e3a5a476e5cd6bc2065dabb87838a0e19949885 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d5c060f1ec865af727d70e2611ff806fd504cbb5 Copy-Tag: eyJwIjoiR2tlTXVsdGlDbG91ZC8uT3dsQm90LnlhbWwiLCJoIjoiZDVjMDYwZjFlYzg2NWFmNzI3ZDcwZTI2MTFmZjgwNmZkNTA0Y2JiNSJ9 --- .../Gkemulticloud/V1/AttachedResources.php | Bin 0 -> 3188 bytes .../Gkemulticloud/V1/AttachedService.php | 89 + .../Cloud/Gkemulticloud/V1/AwsResources.php | Bin 0 -> 7021 bytes .../Cloud/Gkemulticloud/V1/AwsService.php | 117 + .../Cloud/Gkemulticloud/V1/AzureResources.php | Bin 0 -> 7067 bytes .../Cloud/Gkemulticloud/V1/AzureService.php | 142 ++ .../Gkemulticloud/V1/CommonResources.php | Bin 0 -> 2183 bytes .../GkeMultiCloud/V1/AttachedCluster.php | 877 ++++++++ .../V1/AttachedCluster/State.php | 96 + .../GkeMultiCloud/V1/AttachedClusterError.php | 67 + .../GkeMultiCloud/V1/AttachedClusterUser.php | 67 + .../V1/AttachedCluster_State.php | 16 + .../V1/AttachedClustersAuthorization.php | 83 + .../V1/AttachedClustersGrpcClient.php | 181 ++ .../GkeMultiCloud/V1/AttachedOidcConfig.php | 129 ++ .../V1/AttachedPlatformVersionInfo.php | 67 + .../GkeMultiCloud/V1/AttachedServerConfig.php | 102 + .../GkeMultiCloud/V1/AwsAuthorization.php | 83 + .../AwsAutoscalingGroupMetricsCollection.php | 118 ++ .../Cloud/GkeMultiCloud/V1/AwsCluster.php | 879 ++++++++ .../GkeMultiCloud/V1/AwsCluster/State.php | 96 + .../GkeMultiCloud/V1/AwsClusterError.php | 67 + .../GkeMultiCloud/V1/AwsClusterNetworking.php | 161 ++ .../Cloud/GkeMultiCloud/V1/AwsClusterUser.php | 67 + .../GkeMultiCloud/V1/AwsCluster_State.php | 16 + .../V1/AwsClustersGrpcClient.php | 246 +++ .../GkeMultiCloud/V1/AwsConfigEncryption.php | 67 + .../GkeMultiCloud/V1/AwsControlPlane.php | 693 ++++++ .../V1/AwsDatabaseEncryption.php | 67 + .../GkeMultiCloud/V1/AwsInstancePlacement.php | 70 + .../V1/AwsInstancePlacement/Tenancy.php | 75 + .../V1/AwsInstancePlacement_Tenancy.php | 16 + .../GkeMultiCloud/V1/AwsK8sVersionInfo.php | 67 + .../Cloud/GkeMultiCloud/V1/AwsNodeConfig.php | 607 ++++++ .../Cloud/GkeMultiCloud/V1/AwsNodePool.php | 639 ++++++ .../GkeMultiCloud/V1/AwsNodePool/State.php | 95 + .../V1/AwsNodePoolAutoscaling.php | 110 + .../GkeMultiCloud/V1/AwsNodePoolError.php | 67 + .../GkeMultiCloud/V1/AwsNodePool_State.php | 16 + .../Cloud/GkeMultiCloud/V1/AwsProxyConfig.php | 121 ++ .../GkeMultiCloud/V1/AwsServerConfig.php | 135 ++ .../V1/AwsServicesAuthentication.php | 109 + .../Cloud/GkeMultiCloud/V1/AwsSshConfig.php | 67 + .../GkeMultiCloud/V1/AwsVolumeTemplate.php | 197 ++ .../V1/AwsVolumeTemplate/VolumeType.php | 67 + .../V1/AwsVolumeTemplate_VolumeType.php | 16 + .../GkeMultiCloud/V1/AzureAuthorization.php | 83 + .../Cloud/GkeMultiCloud/V1/AzureClient.php | 333 +++ .../Cloud/GkeMultiCloud/V1/AzureCluster.php | 1035 +++++++++ .../GkeMultiCloud/V1/AzureCluster/State.php | 96 + .../GkeMultiCloud/V1/AzureClusterError.php | 67 + .../V1/AzureClusterNetworking.php | 241 +++ .../V1/AzureClusterResources.php | 102 + .../GkeMultiCloud/V1/AzureClusterUser.php | 67 + .../GkeMultiCloud/V1/AzureCluster_State.php | 16 + .../V1/AzureClustersGrpcClient.php | 326 +++ .../V1/AzureConfigEncryption.php | 131 ++ .../GkeMultiCloud/V1/AzureControlPlane.php | 613 ++++++ .../V1/AzureDatabaseEncryption.php | 85 + .../GkeMultiCloud/V1/AzureDiskTemplate.php | 75 + .../GkeMultiCloud/V1/AzureK8sVersionInfo.php | 67 + .../GkeMultiCloud/V1/AzureNodeConfig.php | 436 ++++ .../Cloud/GkeMultiCloud/V1/AzureNodePool.php | 669 ++++++ .../GkeMultiCloud/V1/AzureNodePool/State.php | 95 + .../V1/AzureNodePoolAutoscaling.php | 111 + .../GkeMultiCloud/V1/AzureNodePoolError.php | 67 + .../GkeMultiCloud/V1/AzureNodePool_State.php | 16 + .../GkeMultiCloud/V1/AzureProxyConfig.php | 129 ++ .../GkeMultiCloud/V1/AzureServerConfig.php | 152 ++ .../Cloud/GkeMultiCloud/V1/AzureSshConfig.php | 75 + .../V1/CreateAttachedClusterRequest.php | 227 ++ .../V1/CreateAwsClusterRequest.php | 227 ++ .../V1/CreateAwsNodePoolRequest.php | 231 ++ .../V1/CreateAzureClientRequest.php | 227 ++ .../V1/CreateAzureClusterRequest.php | 227 ++ .../V1/CreateAzureNodePoolRequest.php | 227 ++ .../V1/DeleteAttachedClusterRequest.php | 271 +++ .../V1/DeleteAwsClusterRequest.php | 221 ++ .../V1/DeleteAwsNodePoolRequest.php | 225 ++ .../V1/DeleteAzureClientRequest.php | 175 ++ .../V1/DeleteAzureClusterRequest.php | 221 ++ .../V1/DeleteAzureNodePoolRequest.php | 229 ++ .../Google/Cloud/GkeMultiCloud/V1/Fleet.php | 131 ++ ...eAttachedClusterInstallManifestRequest.php | 208 ++ ...AttachedClusterInstallManifestResponse.php | 72 + .../V1/GenerateAwsAccessTokenRequest.php | 91 + .../V1/GenerateAwsAccessTokenResponse.php | 111 + .../V1/GenerateAzureAccessTokenRequest.php | 91 + .../V1/GenerateAzureAccessTokenResponse.php | 111 + .../V1/GetAttachedClusterRequest.php | 91 + .../V1/GetAttachedServerConfigRequest.php | 92 + .../GkeMultiCloud/V1/GetAwsClusterRequest.php | 91 + .../V1/GetAwsNodePoolRequest.php | 91 + .../V1/GetAwsServerConfigRequest.php | 91 + .../V1/GetAzureClientRequest.php | 95 + .../V1/GetAzureClusterRequest.php | 91 + .../V1/GetAzureNodePoolRequest.php | 91 + .../V1/GetAzureServerConfigRequest.php | 91 + .../V1/ImportAttachedClusterRequest.php | 239 +++ .../V1/ListAttachedClustersRequest.php | 179 ++ .../V1/ListAttachedClustersResponse.php | 109 + .../V1/ListAwsClustersRequest.php | 179 ++ .../V1/ListAwsClustersResponse.php | 109 + .../V1/ListAwsNodePoolsRequest.php | 183 ++ .../V1/ListAwsNodePoolsResponse.php | 109 + .../V1/ListAzureClientsRequest.php | 179 ++ .../V1/ListAzureClientsResponse.php | 109 + .../V1/ListAzureClustersRequest.php | 179 ++ .../V1/ListAzureClustersResponse.php | 109 + .../V1/ListAzureNodePoolsRequest.php | 183 ++ .../V1/ListAzureNodePoolsResponse.php | 109 + .../V1/LoggingComponentConfig.php | 67 + .../V1/LoggingComponentConfig/Component.php | 64 + .../V1/LoggingComponentConfig_Component.php | 16 + .../Cloud/GkeMultiCloud/V1/LoggingConfig.php | 77 + .../V1/ManagedPrometheusConfig.php | 68 + .../GkeMultiCloud/V1/MaxPodsConstraint.php | 67 + .../GkeMultiCloud/V1/MonitoringConfig.php | 77 + .../Cloud/GkeMultiCloud/V1/NodeTaint.php | 135 ++ .../GkeMultiCloud/V1/NodeTaint/Effect.php | 77 + .../GkeMultiCloud/V1/NodeTaint_Effect.php | 16 + .../GkeMultiCloud/V1/OperationMetadata.php | 315 +++ .../GkeMultiCloud/V1/ReplicaPlacement.php | 113 + .../V1/UpdateAttachedClusterRequest.php | 199 ++ .../V1/UpdateAwsClusterRequest.php | 259 +++ .../V1/UpdateAwsNodePoolRequest.php | 255 +++ .../V1/UpdateAzureClusterRequest.php | 219 ++ .../V1/UpdateAzureNodePoolRequest.php | 187 ++ .../V1/WorkloadIdentityConfig.php | 139 ++ .../create_attached_cluster.php | 144 ++ .../delete_attached_cluster.php | 91 + ...rate_attached_cluster_install_manifest.php | 106 + .../get_attached_cluster.php | 79 + .../get_attached_server_config.php | 75 + .../import_attached_cluster.php | 115 + .../list_attached_clusters.php | 78 + .../update_attached_cluster.php | 113 + .../AwsClustersClient/create_aws_cluster.php | 224 ++ .../create_aws_node_pool.php | 163 ++ .../AwsClustersClient/delete_aws_cluster.php | 90 + .../delete_aws_node_pool.php | 92 + .../generate_aws_access_token.php | 79 + .../V1/AwsClustersClient/get_aws_cluster.php | 75 + .../AwsClustersClient/get_aws_node_pool.php | 80 + .../get_aws_server_config.php | 75 + .../AwsClustersClient/list_aws_clusters.php | 78 + .../AwsClustersClient/list_aws_node_pools.php | 80 + .../AwsClustersClient/update_aws_cluster.php | 197 ++ .../update_aws_node_pool.php | 136 ++ .../create_azure_client.php | 122 ++ .../create_azure_cluster.php | 238 +++ .../create_azure_node_pool.php | 164 ++ .../delete_azure_client.php | 91 + .../delete_azure_cluster.php | 94 + .../delete_azure_node_pool.php | 92 + .../generate_azure_access_token.php | 79 + .../AzureClustersClient/get_azure_client.php | 76 + .../AzureClustersClient/get_azure_cluster.php | 79 + .../get_azure_node_pool.php | 80 + .../get_azure_server_config.php | 75 + .../list_azure_clients.php | 78 + .../list_azure_clusters.php | 78 + .../list_azure_node_pools.php | 84 + .../update_azure_cluster.php | 207 ++ .../update_azure_node_pool.php | 129 ++ .../v1/src/V1/AttachedClustersClient.php | 34 + .../v1/src/V1/AwsClustersClient.php | 34 + .../v1/src/V1/AzureClustersClient.php | 34 + .../V1/Gapic/AttachedClustersGapicClient.php | 1017 +++++++++ .../src/V1/Gapic/AwsClustersGapicClient.php | 1365 ++++++++++++ .../src/V1/Gapic/AzureClustersGapicClient.php | 1697 +++++++++++++++ .../v1/src/V1/gapic_metadata.json | 216 ++ .../attached_clusters_client_config.json | 84 + .../attached_clusters_descriptor_config.php | 58 + .../attached_clusters_rest_client_config.php | 153 ++ .../resources/aws_clusters_client_config.json | 104 + .../aws_clusters_descriptor_config.php | 88 + .../aws_clusters_rest_client_config.php | 205 ++ .../azure_clusters_client_config.json | 124 ++ .../azure_clusters_descriptor_config.php | 118 ++ .../azure_clusters_rest_client_config.php | 253 +++ .../Unit/V1/AttachedClustersClientTest.php | 930 ++++++++ .../tests/Unit/V1/AwsClustersClientTest.php | 1504 +++++++++++++ .../tests/Unit/V1/AzureClustersClientTest.php | 1878 +++++++++++++++++ 184 files changed, 34658 insertions(+) create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureService.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersAuthorization.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClustersGrpcClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsK8sVersionInfo.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsProxyConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureAuthorization.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClustersGrpcClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureProxyConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/OperationMetadata.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AwsClustersClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AzureClustersClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AttachedClustersGapicClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php new file mode 100644 index 0000000000000000000000000000000000000000..8f1647b3e2c62e53e93e5f15576601aceb817c4e GIT binary patch literal 3188 zcmbVOZ*S8^7+;d6luIeW17?aUjtq$+b&gWlgj^U((==p26Q!m5BTJEMU)-aP&pV%s zO4WU!z1_E%_96BfP5TVHJNuk81X9*laqs#4?s3lBr^HEf{(QJWzb9-KgS zh+s$wBM$N5K|B~B3LP>Gv5%+$;Z_IkboO9#tG#!ZLn9JX2bs_##PdNtcGB-TH|cier*E) z$G4*h)>GD=A_b=a^1m=X@Ua6UW^)(dJskCMfEl)Z{EmnC6b@`ZLY(D8+d&*S43hu~ zKqqj}>I0Z?3fp@j;gURs%Dt{oi7RBa1BPf|`_>kU9Ew9mXqTIsriWOjt@zLCgY;TK zhX-&q@zFFtaPlc+G)CjMLr4*eX|N&v76fP6FKdc;^$=Uz82RodI<${5p{6;CYDDre zs1o(!sOj0V8e}*mfuf5p&X>u%hk1=Kdl*i~%Cvm*Jx-HQcil|$ZCvGNnX9 zTloustEvkcejM>K)E2>B-{b5In$h4gujTv~rL1F7OlMKpE= zRxlN`GAP8@)h~^_;+j&#Wpl8P15aPzCku(~BT#ZE;?Taxlzv%yy{zt5X*9Be&QNj4 z=U$2e7enzp^Kt3vCE=KM2WUs}0iQyMp(sniqBu(~`5Bb#ARuBUk|5HrzyeSAGv(U! ziq6ulWT}rBngOFHf;y*J7SP`kdgK$^?PC`O46_qeS4%RQZ)aTeV+wDl=uvGIv^H4s ziRW>t73WpSxi*9IWda&e<+SHu9#KkYq+gfuKb%1^Q5H>sP2~IuT(M(zNGN_M71eJ@ zpPqakVN@UINYw0rYkU@9{)UW2{FP*{&R~C);l_eqUI*pLylEv+I6^1sjJN`d$F?7% zWICAn$GJ)jin0Z?8{pdRUVX3Gf4#HYZ8qB5?dDeb3*Hoq-Ck$Ez1!~Ww0BzN9A~`L zd%Yt+^4e8U>NOjkokshmI4$s@w6MF^>2}4}oOT%$o4sDAS1yW!t!ArN-{Q3M=5O!o zr(o^;U`+-RpQ(|-$7FRPCE5$#Rd0~PqUve->#XV%Cn@vlsrq@A?I39_b9-BDCFuY< zs|>-)1poOAX)k#fxkDWEdoT)vFf5qc#S@8oO0_NO|x(p_3C(<2LuZ`1GdFrhF_ ri89S|CZ@SxJD8WwJ-nZ7QftX}I=0M;#}+$N7FlVTtea=x41oUt;KmsM literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php new file mode 100644 index 000000000000..70e751523d92 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php @@ -0,0 +1,89 @@ +internalAddGeneratedFile( + ' +ì +4google/cloud/gkemulticloud/v1/attached_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto6google/cloud/gkemulticloud/v1/attached_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.proto"¶ +-GenerateAttachedClusterInstallManifestRequestD +parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster +attached_cluster_id ( BàA +platform_version ( BàA"B +.GenerateAttachedClusterInstallManifestResponse +manifest ( "ì +CreateAttachedClusterRequestD +parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedClusterM +attached_cluster ( 2..google.cloud.gkemulticloud.v1.AttachedClusterBàA +attached_cluster_id ( BàA + validate_only ("Ô +ImportAttachedClusterRequestD +parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster + validate_only ( +fleet_membership ( BàA +platform_version ( BàA + distribution ( BàA"º +UpdateAttachedClusterRequestM +attached_cluster ( 2..google.cloud.gkemulticloud.v1.AttachedClusterBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"_ +GetAttachedClusterRequestB +name ( B4àAúA. +,gkemulticloud.googleapis.com/AttachedCluster"Š +ListAttachedClustersRequestD +parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster + page_size ( + +page_token ( "‚ +ListAttachedClustersResponseI +attached_clusters ( 2..google.cloud.gkemulticloud.v1.AttachedCluster +next_page_token ( "µ +DeleteAttachedClusterRequestB +name ( B4àAúA. +,gkemulticloud.googleapis.com/AttachedCluster + validate_only ( + allow_missing ( + ignore_errors ( +etag ( "i +GetAttachedServerConfigRequestG +name ( B9àAúA3 +1gkemulticloud.googleapis.com/AttachedServerConfig2µ +AttachedClusters™ +CreateAttachedCluster;.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.google.longrunning.Operation"£‚Óä“H"4/v1/{parent=projects/*/locations/*}/attachedClusters:attached_clusterÚA+parent,attached_cluster,attached_cluster_idÊA$ +AttachedClusterOperationMetadata› +UpdateAttachedCluster;.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.google.longrunning.Operation"¥‚Óä“Y2E/v1/{attached_cluster.name=projects/*/locations/*/attachedClusters/*}:attached_clusterÚAattached_cluster,update_maskÊA$ +AttachedClusterOperationMetadataý +ImportAttachedCluster;.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.google.longrunning.Operation"‡‚Óä“@";/v1/{parent=projects/*/locations/*}/attachedClusters:import:*ÚAparent,fleet_membershipÊA$ +AttachedClusterOperationMetadataà +GetAttachedCluster8.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest..google.cloud.gkemulticloud.v1.AttachedCluster"C‚Óä“64/v1/{name=projects/*/locations/*/attachedClusters/*}ÚAnameÖ +ListAttachedClusters:.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest;.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse"E‚Óä“64/v1/{parent=projects/*/locations/*}/attachedClustersÚAparentå +DeleteAttachedCluster;.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.google.longrunning.Operation"p‚Óä“6*4/v1/{name=projects/*/locations/*/attachedClusters/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataÔ +GetAttachedServerConfig=.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest3.google.cloud.gkemulticloud.v1.AttachedServerConfig"E‚Óä“86/v1/{name=projects/*/locations/*/attachedServerConfig}ÚAname¶ +&GenerateAttachedClusterInstallManifestL.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequestM.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse"o‚Óä“LJ/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifestÚAparent,attached_cluster_idPÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBê +!com.google.cloud.gkemulticloud.v1BAttachedServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php new file mode 100644 index 0000000000000000000000000000000000000000..1f0d035c6472f51b924d20339dd0909b2a24eb93 GIT binary patch literal 7021 zcmdT}&2rnw5e`ZHSWQWmApg*EybIH+vRrGEE80n1^g1b;q-m}tk)bH1Hem$?fg=hl z5J2Haw$`N=$RW>>$~CpGkVBp#w^Vtrshrb20}vo38?-Bz=p+KuJw4rDfAh`Yo8Q>S zHr$gN%w&%0vA%qGCVR(BwjIl}G|P|={i7r1$eJ~@b%QwtS+2F@-Bwqw*P7kCXzE(N zqp`9)u&jZ>ike~h{o>$+4SmDY#jn$?qWZ>F945xP1@0ZdRENy9RgKAw_KO|nseRQ` zdkyZWS0zWiM%+>FVCxxxW~iy@58UJkm(9kv6^;Dc#-q2k|H+4@}4gCjP z*mLyDU4*^BwaUkDDBvkN)dj zlDCSj_g?DE=)Yjc>Zxuy<#M#D$jOIH!=z4cb$OwBRcko3%+Q@Xy}wa2DySW3Y*K~n`~)4TvAx|!U*~!E8j+P46GKXvqEejrw(#U6qwY7tZJGT zk)vh0xn((nGnd1eFUNNb0)E4-wOFz;FxfLGg zFB0bXU0~h}tgGBuEc_na&;-&IO;t4Jc>0m9Q5{!lQDV?jm_0HW^KufOZzEy8mo%0v z(^3M0$9*Ig z(sdqE5@L5ocCo0|ORzFoHz^C56LuCb#uCh)s)o-5SCrFFQ+Xd|Ipz`Wt9#u_x328( z?zQXH=F4Wiw(>KC`(nG(I%w`STf5EO#!3o3&Uf~A`H!@86|$XrwY6JqZqwTgQq+~b zZmZpiUOB(bz;TGHOPEJ1u<) zlFKyTp|%=0mT&U`v*Cc0bQiAa>JX()5Fcja2)92@bi6@`m9vgzdCI9}_((cLUD?vt z$uS=A@m)4VE*Bh_B40yQH$z`UdY|p<0M$a^lbD{2B&V%gqK5a*-hz}sXM$597XHO`;$gc4U~OQmFY!qa3ryC6mAGElA$G5&yTr_d11 z0GYV83sc@V>tDgbDAS3Y)PY;nGnb~2wq+C?Oi`V&ru_m|`D2&4)XxgnNs%PV{{gx2 zjXS0lqy}!1{UO5J$9lU+0R*5a>JTu@K3egL=6m;H8NJ7zQ<&s6l51k*7F@@H7okjI z?qujH$kh`o%m0*uRkRszPx9~LNkJY*W}5^gH|pT{fd{5!Z7 zWinEt(i+U2+8WYfoT)e9rfu~VwckfMj$E(z9pw-=gA*5bxDlyt!fmVs_4B18Goz9D z|I9-cXWzB@j1F=WdONmTkfaXiwgPja2XjB?jhCb*0{>APr==F+(Dy7?!^0~I$Xnb` zl8}nUiKq^ZIm)CPurS(Ra&u9vwNMw6R$HECQwUQL7si1Cj%l(91x(89as?~|*QYAr zYdj%|R-pnW3AI3-5LduAcymwD38NKHN-5C^9atNxZxw_c;tj=z=ivV6b+FB4)J%h;rn`jAqM(GkjEeW(rsl})GP z;QnGnjF%7u1V46uGCe+;&0$@5JMkn$Axeyaaj?Wfik_}(P_8Mi#JV)1v z$_xX~S9B5*7cbT1+Q+t?2Ax&#PM3UDN3J+T*B?PPhO;E`_o+(pMvM$&0ioyZci_6~+qUK4WxRq6g*SwB$tK8Pq5S>($^afFvE*2!zxo8Gj2q@RxXPS} z@9M+>IsX6_G2x@*taJ+&nO5Sm)mC*UCeHHTa7`R*6-mNlFT)ElFOs+@RhENi;Ypl} z_Iwf6a3YcZ=!o(Wnf$jDSB@9XAJT7O-eV@7=EW_@RC4%&mqJ&#;2U=S70d^}@hHF6 zt?yQLtKUsroZvM{t^TsIzuiT7y95h(@6oK{{Yq^mEnR_`SFOG7N+y2*8@S9Ea4+v9 zTKB+FP2W)IZXlLsy2A*XIMTeSd|q63#O|E%ss;zTF7mA~&)?%mBH9i}>~bY>VbF_z zrQj}J#(bO&UeEz$boq}Z_pEm6_umE=&I1dtc?Si{859T1M0|QyF}mvcz&E64W2paY z`c8v?C@S#p4~51F+o3N`;@82}Kf?FD;7byHN{UAG@LSURv@Bed%iOA59vf0FA8Z}Y j@!%fcAAL-CC_d1{zUSb*3*H7?@-2st6klA<;T+(VS0 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php new file mode 100644 index 000000000000..8f2027b59b8d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php @@ -0,0 +1,117 @@ +internalAddGeneratedFile( + ' +Ù* +/google/cloud/gkemulticloud/v1/aws_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto1google/cloud/gkemulticloud/v1/aws_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"Ó +CreateAwsClusterRequest? +parent ( B/àAúA)\'gkemulticloud.googleapis.com/AwsClusterC + aws_cluster ( 2).google.cloud.gkemulticloud.v1.AwsClusterBàA +aws_cluster_id ( BàA + validate_only ("« +UpdateAwsClusterRequestC + aws_cluster ( 2).google.cloud.gkemulticloud.v1.AwsClusterBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"U +GetAwsClusterRequest= +name ( B/àAúA) +\'gkemulticloud.googleapis.com/AwsCluster"€ +ListAwsClustersRequest? +parent ( B/àAúA)\'gkemulticloud.googleapis.com/AwsCluster + page_size ( + +page_token ( "s +ListAwsClustersResponse? + aws_clusters ( 2).google.cloud.gkemulticloud.v1.AwsCluster +next_page_token ( "” +DeleteAwsClusterRequest= +name ( B/àAúA) +\'gkemulticloud.googleapis.com/AwsCluster + validate_only ( + allow_missing ( +etag ( "Ú +CreateAwsNodePoolRequest@ +parent ( B0àAúA*(gkemulticloud.googleapis.com/AwsNodePoolF + aws_node_pool ( 2*.google.cloud.gkemulticloud.v1.AwsNodePoolBàA +aws_node_pool_id ( BàA + validate_only ("¯ +UpdateAwsNodePoolRequestF + aws_node_pool ( 2*.google.cloud.gkemulticloud.v1.AwsNodePoolBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"W +GetAwsNodePoolRequest> +name ( B0àAúA* +(gkemulticloud.googleapis.com/AwsNodePool"‚ +ListAwsNodePoolsRequest@ +parent ( B0àAúA*(gkemulticloud.googleapis.com/AwsNodePool + page_size ( + +page_token ( "w +ListAwsNodePoolsResponseB +aws_node_pools ( 2*.google.cloud.gkemulticloud.v1.AwsNodePool +next_page_token ( "– +DeleteAwsNodePoolRequest> +name ( B0àAúA* +(gkemulticloud.googleapis.com/AwsNodePool + validate_only ( + allow_missing ( +etag ( "_ +GetAwsServerConfigRequestB +name ( B4àAúA. +,gkemulticloud.googleapis.com/AwsServerConfig"e +GenerateAwsAccessTokenRequestD + aws_cluster ( B/àAúA) +\'gkemulticloud.googleapis.com/AwsCluster"u +GenerateAwsAccessTokenResponse + access_token ( BàA8 +expiration_time ( 2.google.protobuf.TimestampBàA2þ + AwsClustersö +CreateAwsCluster6.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest.google.longrunning.Operation"Š‚Óä“>"//v1/{parent=projects/*/locations/*}/awsClusters: aws_clusterÚA!parent,aws_cluster,aws_cluster_idÊA + +AwsClusterOperationMetadataø +UpdateAwsCluster6.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest.google.longrunning.Operation"Œ‚Óä“J2;/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}: aws_clusterÚAaws_cluster,update_maskÊA + +AwsClusterOperationMetadata¯ + GetAwsCluster3.google.cloud.gkemulticloud.v1.GetAwsClusterRequest).google.cloud.gkemulticloud.v1.AwsCluster">‚Óä“1//v1/{name=projects/*/locations/*/awsClusters/*}ÚAname +ListAwsClusters5.google.cloud.gkemulticloud.v1.ListAwsClustersRequest6.google.cloud.gkemulticloud.v1.ListAwsClustersResponse"@‚Óä“1//v1/{parent=projects/*/locations/*}/awsClustersÚAparentÖ +DeleteAwsCluster6.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest.google.longrunning.Operation"k‚Óä“1*//v1/{name=projects/*/locations/*/awsClusters/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataì +GenerateAwsAccessToken<.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest=.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse"U‚Óä“OM/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessTokenŽ +CreateAwsNodePool7.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest.google.longrunning.Operation" ‚Óä“O">/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools: aws_node_poolÚA%parent,aws_node_pool,aws_node_pool_idÊA + AwsNodePoolOperationMetadata +UpdateAwsNodePool7.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest.google.longrunning.Operation"¢‚Óä“]2L/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}: aws_node_poolÚAaws_node_pool,update_maskÊA + AwsNodePoolOperationMetadataÁ +GetAwsNodePool4.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest*.google.cloud.gkemulticloud.v1.AwsNodePool"M‚Óä“@>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}ÚAnameÔ +ListAwsNodePools6.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest7.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse"O‚Óä“@>/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePoolsÚAparentç +DeleteAwsNodePool7.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest.google.longrunning.Operation"z‚Óä“@*>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataÀ +GetAwsServerConfig8.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest..google.cloud.gkemulticloud.v1.AwsServerConfig"@‚Óä“31/v1/{name=projects/*/locations/*/awsServerConfig}ÚAnamePÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBå +!com.google.cloud.gkemulticloud.v1BAwsServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php new file mode 100644 index 0000000000000000000000000000000000000000..5f0ffa7e86d117db00181d1384ed1f112601cadf GIT binary patch literal 7067 zcmc&(UsD^&5sxH;VZ`6%Y}Q;H@9D@LzO$u+a}pvSNdyQ=K7$k?bE%Z7wpOc=*s$8! z+CRkD#ka^qp7WTORHZ7F?~qS%c??zg3aNC@>^}+FTAYXQ#A>E{dU}4{{p*=;erccC zN4Na zX<6wr);DQMH<{lp_0Q?RH$6jqU2K-LH@-tvhl<&5k?SYK(gxJEHJvJljol;aX0S(M`>Dl?tkCh8oFRqQIZ+cT7W9Tu+0=m36~a4a@Kh%{1P? z=5~~xX1Wwq+??Cox;t>?oma4fGHArd_i<>R6iD-lwka z7`Dfp223rN`_zlPioa|;4wglAMo-xgHkQjbjNDN?$EV5F6~&>R?^w^d-KgLy`ma64 za~0cY9~ji^?$R^u!eCCh9PcVt@-ETPsp+N0A60vg4F=2#)w${QMec1G01!_b*yCmS zu{`~S5gbCL+l_pF0C3%iyo5gcoc!}E^7RMcRC*|ciX6_xA#fKjHrE~mIyKuUg%B4A zUwiicby_iL{&6IXR%WG_WL{^M=P*;XP0gb66j%9GDwRU8fpS9I z5t-L~?~FOd8^{W<>1nQQGmW-NQc$R?k|_*bD&GY)3tOqw1jkf7K|xfLlkSljYISV} z*p+8M6F;Dwv_x_~_W z3`J7D4S6<@noB1I0E6`0m*>$i>6GL(%VL;indQn0N)A^3CR}-Zm<*kGu@Z|{;iNCo zwv5zn6B%J-GOY{n1DF}!r3#zx8GTvemQKRecY$~`8}E}(?RswgNds>41RR7r@a*r*5G zsL}+Zjv~2)U29upX%r7qp5)HyWsuP3$<&2r`c$N{a&|jY@W~X9CJ3bElUAiwRbL&S zG^%^GgIaZe=?4%i#molL7Zu8YK|Hw*y9)_rmD?my}2}n1N+s(W@R7LPM7`bibEa`mjIFIAp5&TNa&^HSxQw1!{1Te zb4zc7|E@|V1I%IIl-`E_UI~U2X%6 zL9T^hQeD3T7U1fbuSLZv{Arpj3(FIUS^9|Fy`YYZ**Ib8eKH&CNK`GHJy2cXaB;!P zNC$+t?pYWVBKtj^fIn`@iF+2KFDt!(1k0GGUNF;#G%Cths?gXs-18P4K#dYvJ%hRi znqh^yZc(>x>iP{?K|0*gT&hw_cP?#Sy|4h}w|<&tqx*q)HIha|pp|m~#@A716*XW| z>~h~VP%idf29uu7Q*6@41#V-yq{oFvEj%K3pxU@lW3jT7(`*)uLdL)gf3XF^iMrAt zl0$9i3^XJZIvqe|aiNx>@=4on3PI2-caA!!2M!``?W90Y-Gg5WY!={qsvG` z!H@_N2xpCVQ`&`Qm|6#D0o2Gh3}{jmGTFkfAf@80#CZYv8^iDfV_b&Fqd+Ej^l~+Y zB3b1cZh}Z!A=8kXG0bD-FJ0mq+28IH8q4G;tb z1ajhN-jmOf=nEPJWGAHV4|!aqYCA(n$K3rxQpEp@YX32FUHLl#s5Bb3AbjEInR!+C%M@9Rl7mM8WC0ZD z`!*m&$i?$p+iCGE>>H&-P=JjA^s1_NY18-yVw6^6mCA2@7_A;AnV1Z z<5rY$?J3D86ij58Eh0yN9jOo!5F#wQ9N#+gA)z6FImgQKK}dOtLBy~aEc_=Eu(cCt z9jOyU!tiC}3$g&cyU|sHhEH^z`E)ht+imw$^ocdA$Dr3;b$#1r4m?$;TJWZT7nv?l zNN8ot)^+8ajNH(UYtM)5{rRo3MpCr!8Cl_O9kFw9q`fUXB@29B)Ow;{p~&-FN!Uwt z)xm2*;WFgX;_fB75t2S555guN_`2^P^^Y!VqqLKgw#k=z@&;8+GTxh#5wpn^*28u^ zaqR=QC3oQ--i34_+V#SZ0|tk1MmX^bb7R`>zcS<#xDt7PTvZ!U;dncE zb;4(-ct#uEovyQrP*E;(sd9N}O1XTx*_r0Xef@d#?C?Z9internalAddGeneratedFile( + ' +Ê8 +1google/cloud/gkemulticloud/v1/azure_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto3google/cloud/gkemulticloud/v1/azure_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"Ý +CreateAzureClusterRequestA +parent ( B1àAúA+)gkemulticloud.googleapis.com/AzureClusterG + azure_cluster ( 2+.google.cloud.gkemulticloud.v1.AzureClusterBàA +azure_cluster_id ( BàA + validate_only ("± +UpdateAzureClusterRequestG + azure_cluster ( 2+.google.cloud.gkemulticloud.v1.AzureClusterBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"Y +GetAzureClusterRequest? +name ( B1àAúA+ +)gkemulticloud.googleapis.com/AzureCluster"„ +ListAzureClustersRequestA +parent ( B1àAúA+)gkemulticloud.googleapis.com/AzureCluster + page_size ( + +page_token ( "y +ListAzureClustersResponseC +azure_clusters ( 2+.google.cloud.gkemulticloud.v1.AzureCluster +next_page_token ( "˜ +DeleteAzureClusterRequest? +name ( B1àAúA+ +)gkemulticloud.googleapis.com/AzureCluster + allow_missing ( + validate_only ( +etag ( "ä +CreateAzureNodePoolRequestB +parent ( B2àAúA,*gkemulticloud.googleapis.com/AzureNodePoolJ +azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolBàA +azure_node_pool_id ( BàA + validate_only ("µ +UpdateAzureNodePoolRequestJ +azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"[ +GetAzureNodePoolRequest@ +name ( B2àAúA, +*gkemulticloud.googleapis.com/AzureNodePool"† +ListAzureNodePoolsRequestB +parent ( B2àAúA,*gkemulticloud.googleapis.com/AzureNodePool + page_size ( + +page_token ( "} +ListAzureNodePoolsResponseF +azure_node_pools ( 2,.google.cloud.gkemulticloud.v1.AzureNodePool +next_page_token ( "š +DeleteAzureNodePoolRequest@ +name ( B2àAúA, +*gkemulticloud.googleapis.com/AzureNodePool + validate_only ( + allow_missing ( +etag ( "c +GetAzureServerConfigRequestD +name ( B6àAúA0 +.gkemulticloud.googleapis.com/AzureServerConfig"Ø +CreateAzureClientRequest@ +parent ( B0àAúA*(gkemulticloud.googleapis.com/AzureClientE + azure_client ( 2*.google.cloud.gkemulticloud.v1.AzureClientBàA +azure_client_id ( BàA + validate_only ("W +GetAzureClientRequest> +name ( B0àAúA* +(gkemulticloud.googleapis.com/AzureClient"‚ +ListAzureClientsRequest@ +parent ( B0àAúA*(gkemulticloud.googleapis.com/AzureClient + page_size ( + +page_token ( "v +ListAzureClientsResponseA + azure_clients ( 2*.google.cloud.gkemulticloud.v1.AzureClient +next_page_token ( "ˆ +DeleteAzureClientRequest> +name ( B0àAúA* +(gkemulticloud.googleapis.com/AzureClient + allow_missing ( + validate_only ("k +GenerateAzureAccessTokenRequestH + azure_cluster ( B1àAúA+ +)gkemulticloud.googleapis.com/AzureCluster"w + GenerateAzureAccessTokenResponse + access_token ( BàA8 +expiration_time ( 2.google.protobuf.TimestampBàA2Ý + AzureClustersý +CreateAzureClient7.google.cloud.gkemulticloud.v1.CreateAzureClientRequest.google.longrunning.Operation"‚Óä“@"0/v1/{parent=projects/*/locations/*}/azureClients: azure_clientÚA#parent,azure_client,azure_client_idÊA + AzureClientOperationMetadata³ +GetAzureClient4.google.cloud.gkemulticloud.v1.GetAzureClientRequest*.google.cloud.gkemulticloud.v1.AzureClient"?‚Óä“20/v1/{name=projects/*/locations/*/azureClients/*}ÚAnameÆ +ListAzureClients6.google.cloud.gkemulticloud.v1.ListAzureClientsRequest7.google.cloud.gkemulticloud.v1.ListAzureClientsResponse"A‚Óä“20/v1/{parent=projects/*/locations/*}/azureClientsÚAparentÙ +DeleteAzureClient7.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest.google.longrunning.Operation"l‚Óä“2*0/v1/{name=projects/*/locations/*/azureClients/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadata„ +CreateAzureCluster8.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest.google.longrunning.Operation"”‚Óä“B"1/v1/{parent=projects/*/locations/*}/azureClusters: azure_clusterÚA%parent,azure_cluster,azure_cluster_idÊA! + AzureClusterOperationMetadata† +UpdateAzureCluster8.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest.google.longrunning.Operation"–‚Óä“P2?/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}: azure_clusterÚAazure_cluster,update_maskÊA! + AzureClusterOperationMetadata· +GetAzureCluster5.google.cloud.gkemulticloud.v1.GetAzureClusterRequest+.google.cloud.gkemulticloud.v1.AzureCluster"@‚Óä“31/v1/{name=projects/*/locations/*/azureClusters/*}ÚAnameÊ +ListAzureClusters7.google.cloud.gkemulticloud.v1.ListAzureClustersRequest8.google.cloud.gkemulticloud.v1.ListAzureClustersResponse"B‚Óä“31/v1/{parent=projects/*/locations/*}/azureClustersÚAparentÜ +DeleteAzureCluster8.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest.google.longrunning.Operation"m‚Óä“3*1/v1/{name=projects/*/locations/*/azureClusters/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataø +GenerateAzureAccessToken>.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest?.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse"[‚Óä“US/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessTokenž +CreateAzureNodePool9.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest.google.longrunning.Operation"¬‚Óä“U"B/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools:azure_node_poolÚA)parent,azure_node_pool,azure_node_pool_idÊA" + AzureNodePoolOperationMetadata  +UpdateAzureNodePool9.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest.google.longrunning.Operation"®‚Óä“e2R/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}:azure_node_poolÚAazure_node_pool,update_maskÊA" + AzureNodePoolOperationMetadataË +GetAzureNodePool6.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest,.google.cloud.gkemulticloud.v1.AzureNodePool"Q‚Óä“DB/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}ÚAnameÞ +ListAzureNodePools8.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest9.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse"S‚Óä“DB/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePoolsÚAparentï +DeleteAzureNodePool9.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest.google.longrunning.Operation"~‚Óä“D*B/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataÈ +GetAzureServerConfig:.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest0.google.cloud.gkemulticloud.v1.AzureServerConfig"B‚Óä“53/v1/{name=projects/*/locations/*/azureServerConfig}ÚAnamePÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBç +!com.google.cloud.gkemulticloud.v1BAzureServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php new file mode 100644 index 0000000000000000000000000000000000000000..c405f78106ee45076528d9adfc59a50461a802b6 GIT binary patch literal 2183 zcmbVNUsKyg5U=g9q1d(maUL4A?TI#n=Oel#Hk9SvtfOS*M;P zH?+e{KTkhKAN!b3(C2)Lu5_{t4K$tj$-3SB?e1@Xcl*`z;52{-WSjX+(ug^ve@>!P zMgl1!VGED+#>^ciP)*RXKWCA z5m#Ts)f&bRgl|cv+(SK00N~RB3j=C1vfbHgv4}b}qP^`Dt5;93dfS(=dPl440JcZN zkknJm{ShSm1_XaW-1oRm!iZve@{orX_j$yr$A884HpmI}LWUS``<}$U9dY54B%tlv zY~?Xgn2GPhKp-6(WK>)yVF=mj?f4OsKJ|JH7TS^rk&qp9H4K+UIj_md%Hu3;0>@9t zimK5t-YRl~L^5WVvlAj&6ia_Stvdm@$p7`Op>8way(VX#v&By7kPB%Thh-< zXeub2M=ctatu$8s0Tx~edFBb~>^RJicywMD{t0(A4SDy3RLx=aF$^%QDhui4qim=E#6A{Q?@1ekVz@z$TTrFRp8c;$^PQh_~-#F zNcMA#>S2y$Q@l!^mv*{1iB8igWc76cX7-SlZc11gN@wg`4I!}?aXJ%2>cvb=K%F&U zlHq$~tGaKm)kfT0FAhD&*UdC6MX4Ucr25nrKr@?7v);81_YOK{eW$r&Hp(ApAHnQi z+d8O!V>S+V&2k}e?ChIObKkmrUes;_;DPzQSwHNWc0yxV1quB;VBQsjg_iD!rZQKUGBS?Hrr56-dy3MVl6w>Yo>=U-_di9lSM1Q>YoKz zxZb3_gbMR%-(#343koq=Y326X^Y==oY~(;@d3m2g%ZvvQ}^N7 zJGyA8_)Z?4arPP9y}^VEnNplN=~$+>-W1?I()Zt)w(cMqxCry5g()M^DZKnPyW_6# zsPF1Rx;2;i*iR&C%0vSm-mqQQuRMx>6z^@P`%_Q%r;huxmF!~mb+r1|$ll8qY_eg; x9z9&KZ;C`g7)Bap7*|{j<7l-%nHKltQU1(-u9nuN9e3k?OFh*Vx_}FSe*njUxCQ_K literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php new file mode 100644 index 000000000000..9f956818f542 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php @@ -0,0 +1,877 @@ +google.cloud.gkemulticloud.v1.AttachedCluster + */ +class AttachedCluster extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. OpenID Connect (OIDC) configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $oidc_config = null; + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $platform_version = ''; + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $distribution = ''; + /** + * Output only. The region where this cluster runs. + * For EKS clusters, this is a AWS region. For AKS clusters, + * this is an Azure region. + * + * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cluster_region = ''; + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fleet = null; + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this cluster was registered. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + */ + protected $etag = ''; + /** + * Output only. The Kubernetes version of the cluster. + * + * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $kubernetes_version = ''; + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $workload_identity_config = null; + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $logging_config = null; + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Optional. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $authorization = null; + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $monitoring_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type string $description + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * @type \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig $oidc_config + * Required. OpenID Connect (OIDC) configuration for the cluster. + * @type string $platform_version + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @type string $distribution + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * @type string $cluster_region + * Output only. The region where this cluster runs. + * For EKS clusters, this is a AWS region. For AKS clusters, + * this is an Azure region. + * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet + * Required. Fleet configuration. + * @type int $state + * Output only. The current state of the cluster. + * @type string $uid + * Output only. A globally unique identifier for the cluster. + * @type bool $reconciling + * Output only. If set, there are currently changes in flight to the cluster. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this cluster was registered. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this cluster was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type string $kubernetes_version + * Output only. The Kubernetes version of the cluster. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config + * Output only. Workload Identity settings. + * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config + * Optional. Logging configuration for this cluster. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization $authorization + * Optional. Configuration related to the cluster RBAC settings. + * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config + * Optional. Monitoring configuration for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field 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; + } + + /** + * Required. OpenID Connect (OIDC) configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig|null + */ + public function getOidcConfig() + { + return $this->oidc_config; + } + + public function hasOidcConfig() + { + return isset($this->oidc_config); + } + + public function clearOidcConfig() + { + unset($this->oidc_config); + } + + /** + * Required. OpenID Connect (OIDC) configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig $var + * @return $this + */ + public function setOidcConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig::class); + $this->oidc_config = $var; + + return $this; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPlatformVersion() + { + return $this->platform_version; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPlatformVersion($var) + { + GPBUtil::checkString($var, True); + $this->platform_version = $var; + + return $this; + } + + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDistribution() + { + return $this->distribution; + } + + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDistribution($var) + { + GPBUtil::checkString($var, True); + $this->distribution = $var; + + return $this; + } + + /** + * Output only. The region where this cluster runs. + * For EKS clusters, this is a AWS region. For AKS clusters, + * this is an Azure region. + * + * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getClusterRegion() + { + return $this->cluster_region; + } + + /** + * Output only. The region where this cluster runs. + * For EKS clusters, this is a AWS region. For AKS clusters, + * this is an Azure region. + * + * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setClusterRegion($var) + { + GPBUtil::checkString($var, True); + $this->cluster_region = $var; + + return $this; + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null + */ + public function getFleet() + { + return $this->fleet; + } + + public function hasFleet() + { + return isset($this->fleet); + } + + public function clearFleet() + { + unset($this->fleet); + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var + * @return $this + */ + public function setFleet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); + $this->fleet = $var; + + return $this; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this cluster was registered. + * + * 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 at which this cluster was registered. + * + * 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 at which this cluster was last 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 at which this cluster was last 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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. The Kubernetes version of the cluster. + * + * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getKubernetesVersion() + { + return $this->kubernetes_version; + } + + /** + * Output only. The Kubernetes version of the cluster. + * + * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setKubernetesVersion($var) + { + GPBUtil::checkString($var, True); + $this->kubernetes_version = $var; + + return $this; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null + */ + public function getWorkloadIdentityConfig() + { + return $this->workload_identity_config; + } + + public function hasWorkloadIdentityConfig() + { + return isset($this->workload_identity_config); + } + + public function clearWorkloadIdentityConfig() + { + unset($this->workload_identity_config); + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); + $this->workload_identity_config = $var; + + return $this; + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedClusterError::class); + $this->errors = $arr; + + return $this; + } + + /** + * Optional. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization|null + */ + public function getAuthorization() + { + return $this->authorization; + } + + public function hasAuthorization() + { + return isset($this->authorization); + } + + public function clearAuthorization() + { + unset($this->authorization); + } + + /** + * Optional. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization $var + * @return $this + */ + public function setAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization::class); + $this->authorization = $var; + + return $this; + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php new file mode 100644 index 000000000000..51a928e34a8a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php @@ -0,0 +1,96 @@ +google.cloud.gkemulticloud.v1.AttachedCluster.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the cluster is being registered. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the cluster has been register and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading software components. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the cluster is being de-registered. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the cluster is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the cluster requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AttachedCluster_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php new file mode 100644 index 000000000000..7e2ea588596e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AttachedClusterError + */ +class AttachedClusterError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php new file mode 100644 index 000000000000..f020f59ff48b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AttachedClusterUser + */ +class AttachedClusterUser extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php new file mode 100644 index 000000000000..57e11504c53e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AttachedClustersAuthorization + */ +class AttachedClustersAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $admin_users; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdminUsers() + { + return $this->admin_users; + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdminUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser::class); + $this->admin_users = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php new file mode 100644 index 000000000000..dcd909c8a16e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php @@ -0,0 +1,181 @@ +_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAttachedClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAttachedClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Imports creates a new + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + * Attached Clusters created before the introduction of the Anthos Multi-Cloud + * API can be imported through this method. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\ImportAttachedClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ImportAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\ImportAttachedClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAttachedClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\GetAttachedClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources on a given Google Cloud project and region. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAttachedClusters(\Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAttachedClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAttachedClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Returns information, such as supported Kubernetes versions, on a given + * Google Cloud location. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAttachedServerConfigRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAttachedServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAttachedServerConfigRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AttachedServerConfig', 'decode'], + $metadata, $options); + } + + /** + * Generates the install manifest to be installed on the target cluster. + * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GenerateAttachedClusterInstallManifest(\Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestResponse', 'decode'], + $metadata, $options); + } + +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php new file mode 100644 index 000000000000..82a830dd5f33 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php @@ -0,0 +1,129 @@ +google.cloud.gkemulticloud.v1.AttachedOidcConfig + */ +class AttachedOidcConfig extends \Google\Protobuf\Internal\Message +{ + /** + * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + * + * Generated from protobuf field string issuer_url = 1; + */ + protected $issuer_url = ''; + /** + * Optional. OIDC verification keys in JWKS format (RFC 7517). + * It contains a list of OIDC verification keys that can be used to verify + * OIDC JWTs. + * This field is required for cluster that doesn't have a publicly available + * discovery endpoint. When provided, it will be directly used + * to verify the OIDC JWT asserted by the IDP. + * + * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $jwks = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issuer_url + * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + * @type string $jwks + * Optional. OIDC verification keys in JWKS format (RFC 7517). + * It contains a list of OIDC verification keys that can be used to verify + * OIDC JWTs. + * This field is required for cluster that doesn't have a publicly available + * discovery endpoint. When provided, it will be directly used + * to verify the OIDC JWT asserted by the IDP. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + * + * Generated from protobuf field string issuer_url = 1; + * @return string + */ + public function getIssuerUrl() + { + return $this->issuer_url; + } + + /** + * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + * + * Generated from protobuf field string issuer_url = 1; + * @param string $var + * @return $this + */ + public function setIssuerUrl($var) + { + GPBUtil::checkString($var, True); + $this->issuer_url = $var; + + return $this; + } + + /** + * Optional. OIDC verification keys in JWKS format (RFC 7517). + * It contains a list of OIDC verification keys that can be used to verify + * OIDC JWTs. + * This field is required for cluster that doesn't have a publicly available + * discovery endpoint. When provided, it will be directly used + * to verify the OIDC JWT asserted by the IDP. + * + * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getJwks() + { + return $this->jwks; + } + + /** + * Optional. OIDC verification keys in JWKS format (RFC 7517). + * It contains a list of OIDC verification keys that can be used to verify + * OIDC JWTs. + * This field is required for cluster that doesn't have a publicly available + * discovery endpoint. When provided, it will be directly used + * to verify the OIDC JWT asserted by the IDP. + * + * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setJwks($var) + { + GPBUtil::checkString($var, False); + $this->jwks = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php new file mode 100644 index 000000000000..a81ade67a335 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo + */ +class AttachedPlatformVersionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Platform version name. + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Platform version name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * Platform version name. + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Platform version name. + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php new file mode 100644 index 000000000000..3257fd12cab9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php @@ -0,0 +1,102 @@ +google.cloud.gkemulticloud.v1.AttachedServerConfig + */ +class AttachedServerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the config. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * List of valid platform versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + */ + private $valid_versions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the config. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions + * List of valid platform versions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the config. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the config. + * + * 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; + } + + /** + * List of valid platform versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidVersions() + { + return $this->valid_versions; + } + + /** + * List of valid platform versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo::class); + $this->valid_versions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php new file mode 100644 index 000000000000..02a19ba26a49 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php @@ -0,0 +1,83 @@ +google.cloud.gkemulticloud.v1.AwsAuthorization + */ +class AwsAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $admin_users; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdminUsers() + { + return $this->admin_users; + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterUser>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdminUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterUser::class); + $this->admin_users = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php new file mode 100644 index 000000000000..dddb1fd5dc97 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php @@ -0,0 +1,118 @@ +google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + */ +class AwsAutoscalingGroupMetricsCollection extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The frequency at which EC2 Auto Scaling sends aggregated data to + * AWS CloudWatch. The only valid value is "1Minute". + * + * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $granularity = ''; + /** + * Optional. The metrics to enable. For a list of valid metrics, see + * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + * If you specify Granularity and don't specify any metrics, all metrics are + * enabled. + * + * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $metrics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $granularity + * Required. The frequency at which EC2 Auto Scaling sends aggregated data to + * AWS CloudWatch. The only valid value is "1Minute". + * @type array|\Google\Protobuf\Internal\RepeatedField $metrics + * Optional. The metrics to enable. For a list of valid metrics, see + * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + * If you specify Granularity and don't specify any metrics, all metrics are + * enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The frequency at which EC2 Auto Scaling sends aggregated data to + * AWS CloudWatch. The only valid value is "1Minute". + * + * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getGranularity() + { + return $this->granularity; + } + + /** + * Required. The frequency at which EC2 Auto Scaling sends aggregated data to + * AWS CloudWatch. The only valid value is "1Minute". + * + * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setGranularity($var) + { + GPBUtil::checkString($var, True); + $this->granularity = $var; + + return $this; + } + + /** + * Optional. The metrics to enable. For a list of valid metrics, see + * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + * If you specify Granularity and don't specify any metrics, all metrics are + * enabled. + * + * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Optional. The metrics to enable. For a list of valid metrics, see + * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + * If you specify Granularity and don't specify any metrics, all metrics are + * enabled. + * + * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metrics = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php new file mode 100644 index 000000000000..b069eab6fc8b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php @@ -0,0 +1,879 @@ +google.cloud.gkemulticloud.v1.AwsCluster + */ +class AwsCluster extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $networking = null; + /** + * Required. The AWS region where the cluster runs. + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * + * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_region = ''; + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $control_plane = null; + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorization = null; + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $endpoint = ''; + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + */ + protected $etag = ''; + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $workload_identity_config = null; + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cluster_ca_certificate = ''; + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fleet = null; + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $logging_config = null; + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $monitoring_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type string $description + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking $networking + * Required. Cluster-wide networking configuration. + * @type string $aws_region + * Required. The AWS region where the cluster runs. + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane $control_plane + * Required. Configuration related to the cluster control plane. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization $authorization + * Required. Configuration related to the cluster RBAC settings. + * @type int $state + * Output only. The current state of the cluster. + * @type string $endpoint + * Output only. The endpoint of the cluster's API server. + * @type string $uid + * Output only. A globally unique identifier for the cluster. + * @type bool $reconciling + * Output only. If set, there are currently changes in flight to the cluster. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this cluster was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this cluster was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config + * Output only. Workload Identity settings. + * @type string $cluster_ca_certificate + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet + * Required. Fleet configuration. + * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config + * Optional. Logging configuration for this cluster. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config + * Optional. Monitoring configuration for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field 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; + } + + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking|null + */ + public function getNetworking() + { + return $this->networking; + } + + public function hasNetworking() + { + return isset($this->networking); + } + + public function clearNetworking() + { + unset($this->networking); + } + + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking $var + * @return $this + */ + public function setNetworking($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking::class); + $this->networking = $var; + + return $this; + } + + /** + * Required. The AWS region where the cluster runs. + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * + * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAwsRegion() + { + return $this->aws_region; + } + + /** + * Required. The AWS region where the cluster runs. + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * + * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAwsRegion($var) + { + GPBUtil::checkString($var, True); + $this->aws_region = $var; + + return $this; + } + + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane|null + */ + public function getControlPlane() + { + return $this->control_plane; + } + + public function hasControlPlane() + { + return isset($this->control_plane); + } + + public function clearControlPlane() + { + unset($this->control_plane); + } + + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane $var + * @return $this + */ + public function setControlPlane($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane::class); + $this->control_plane = $var; + + return $this; + } + + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization|null + */ + public function getAuthorization() + { + return $this->authorization; + } + + public function hasAuthorization() + { + return isset($this->authorization); + } + + public function clearAuthorization() + { + unset($this->authorization); + } + + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization $var + * @return $this + */ + public function setAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization::class); + $this->authorization = $var; + + return $this; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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 at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null + */ + public function getWorkloadIdentityConfig() + { + return $this->workload_identity_config; + } + + public function hasWorkloadIdentityConfig() + { + return isset($this->workload_identity_config); + } + + public function clearWorkloadIdentityConfig() + { + unset($this->workload_identity_config); + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); + $this->workload_identity_config = $var; + + return $this; + } + + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getClusterCaCertificate() + { + return $this->cluster_ca_certificate; + } + + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setClusterCaCertificate($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ca_certificate = $var; + + return $this; + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null + */ + public function getFleet() + { + return $this->fleet; + } + + public function hasFleet() + { + return isset($this->fleet); + } + + public function clearFleet() + { + unset($this->fleet); + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var + * @return $this + */ + public function setFleet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); + $this->fleet = $var; + + return $this; + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterError::class); + $this->errors = $arr; + + return $this; + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php new file mode 100644 index 000000000000..59e416b25a7b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php @@ -0,0 +1,96 @@ +google.cloud.gkemulticloud.v1.AwsCluster.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the cluster is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the cluster has been created and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading the control plane replicas. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the cluster is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the cluster is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the cluster requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AwsCluster_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php new file mode 100644 index 000000000000..f40a291a78f8 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsClusterError + */ +class AwsClusterError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php new file mode 100644 index 000000000000..f4b4ded352a1 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php @@ -0,0 +1,161 @@ +google.cloud.gkemulticloud.v1.AwsClusterNetworking + */ +class AwsClusterNetworking extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * This field cannot be changed after creation. + * + * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vpc_id = ''; + /** + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $pod_address_cidr_blocks; + /** + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $service_address_cidr_blocks; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $vpc_id + * Required. The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * This field cannot be changed after creation. + * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * This field cannot be changed after creation. + * + * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVpcId() + { + return $this->vpc_id; + } + + /** + * Required. The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * This field cannot be changed after creation. + * + * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVpcId($var) + { + GPBUtil::checkString($var, True); + $this->vpc_id = $var; + + return $this; + } + + /** + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPodAddressCidrBlocks() + { + return $this->pod_address_cidr_blocks; + } + + /** + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPodAddressCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pod_address_cidr_blocks = $arr; + + return $this; + } + + /** + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getServiceAddressCidrBlocks() + { + return $this->service_address_cidr_blocks; + } + + /** + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setServiceAddressCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_address_cidr_blocks = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php new file mode 100644 index 000000000000..005bd094c801 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsClusterUser + */ +class AwsClusterUser extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php new file mode 100644 index 000000000000..5b0cb23eabe2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php @@ -0,0 +1,16 @@ +_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAwsClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAwsCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAwsCluster(\Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AwsCluster', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * on a given Google Cloud project and region. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAwsClusters(\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. + * + * Fails if the cluster has one or more associated + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAwsClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAwsCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAwsClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Generates a short-lived access token to authenticate to a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GenerateAwsAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse', 'decode'], + $metadata, $options); + } + + /** + * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], + * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\CreateAwsNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\CreateAwsNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources on a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAwsNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAwsNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\DeleteAwsNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Returns information, such as supported AWS regions and Kubernetes + * versions, on a given Google Cloud location. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsServerConfigRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAwsServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAwsServerConfigRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AwsServerConfig', 'decode'], + $metadata, $options); + } + +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php new file mode 100644 index 000000000000..ed4be8aef12a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsConfigEncryption + */ +class AwsConfigEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ARN of the AWS KMS key used to encrypt user data. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $kms_key_arn = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kms_key_arn + * Required. The ARN of the AWS KMS key used to encrypt user data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt user data. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKmsKeyArn() + { + return $this->kms_key_arn; + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt user data. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKmsKeyArn($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_arn = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php new file mode 100644 index 000000000000..826ee8af1a67 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php @@ -0,0 +1,693 @@ +google.cloud.gkemulticloud.v1.AwsControlPlane + */ +class AwsControlPlane extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = ''; + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the cluster's version. + * + * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instance_type = ''; + /** + * Optional. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ssh_config = null; + /** + * Required. The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * + * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $subnet_ids; + /** + * Optional. The IDs of additional security groups to add to control plane + * replicas. The Anthos Multi-Cloud API will automatically create and manage + * security groups with the minimum rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $security_group_ids; + /** + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * + * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $iam_instance_profile = ''; + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $root_volume = null; + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 8 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $main_volume = null; + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_encryption = null; + /** + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Required. Authentication configuration for management of AWS resources. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_services_authentication = null; + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_config = null; + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config_encryption = null; + /** + * Optional. The placement to use on control plane instances. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instance_placement = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * @type string $instance_type + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the cluster's version. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config + * Optional. SSH configuration for how to access the underlying control plane + * machines. + * @type array|\Google\Protobuf\Internal\RepeatedField $subnet_ids + * Required. The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids + * Optional. The IDs of additional security groups to add to control plane + * replicas. The Anthos Multi-Cloud API will automatically create and manage + * security groups with the minimum rules needed for a functioning cluster. + * @type string $iam_instance_profile + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $main_volume + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 8 GiB with the GP2 volume type. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $database_encryption + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication $aws_services_authentication + * Required. Authentication configuration for management of AWS resources. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption + * Required. Config encryption for user data. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement + * Optional. The placement to use on control plane instances. + * When unspecified, the VPC's default tenancy will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the cluster's version. + * + * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getInstanceType() + { + return $this->instance_type; + } + + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the cluster's version. + * + * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setInstanceType($var) + { + GPBUtil::checkString($var, True); + $this->instance_type = $var; + + return $this; + } + + /** + * Optional. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null + */ + public function getSshConfig() + { + return $this->ssh_config; + } + + public function hasSshConfig() + { + return isset($this->ssh_config); + } + + public function clearSshConfig() + { + unset($this->ssh_config); + } + + /** + * Optional. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $var + * @return $this + */ + public function setSshConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig::class); + $this->ssh_config = $var; + + return $this; + } + + /** + * Required. The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * + * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubnetIds() + { + return $this->subnet_ids; + } + + /** + * Required. The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * + * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubnetIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->subnet_ids = $arr; + + return $this; + } + + /** + * Optional. The IDs of additional security groups to add to control plane + * replicas. The Anthos Multi-Cloud API will automatically create and manage + * security groups with the minimum rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecurityGroupIds() + { + return $this->security_group_ids; + } + + /** + * Optional. The IDs of additional security groups to add to control plane + * replicas. The Anthos Multi-Cloud API will automatically create and manage + * security groups with the minimum rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecurityGroupIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->security_group_ids = $arr; + + return $this; + } + + /** + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * + * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getIamInstanceProfile() + { + return $this->iam_instance_profile; + } + + /** + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * + * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setIamInstanceProfile($var) + { + GPBUtil::checkString($var, True); + $this->iam_instance_profile = $var; + + return $this; + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null + */ + public function getRootVolume() + { + return $this->root_volume; + } + + public function hasRootVolume() + { + return isset($this->root_volume); + } + + public function clearRootVolume() + { + unset($this->root_volume); + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var + * @return $this + */ + public function setRootVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); + $this->root_volume = $var; + + return $this; + } + + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 8 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null + */ + public function getMainVolume() + { + return $this->main_volume; + } + + public function hasMainVolume() + { + return isset($this->main_volume); + } + + public function clearMainVolume() + { + unset($this->main_volume); + } + + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 8 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var + * @return $this + */ + public function setMainVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); + $this->main_volume = $var; + + return $this; + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption|null + */ + public function getDatabaseEncryption() + { + return $this->database_encryption; + } + + public function hasDatabaseEncryption() + { + return isset($this->database_encryption); + } + + public function clearDatabaseEncryption() + { + unset($this->database_encryption); + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $var + * @return $this + */ + public function setDatabaseEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption::class); + $this->database_encryption = $var; + + return $this; + } + + /** + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Required. Authentication configuration for management of AWS resources. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication|null + */ + public function getAwsServicesAuthentication() + { + return $this->aws_services_authentication; + } + + public function hasAwsServicesAuthentication() + { + return isset($this->aws_services_authentication); + } + + public function clearAwsServicesAuthentication() + { + unset($this->aws_services_authentication); + } + + /** + * Required. Authentication configuration for management of AWS resources. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication $var + * @return $this + */ + public function setAwsServicesAuthentication($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication::class); + $this->aws_services_authentication = $var; + + return $this; + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null + */ + public function getProxyConfig() + { + return $this->proxy_config; + } + + public function hasProxyConfig() + { + return isset($this->proxy_config); + } + + public function clearProxyConfig() + { + unset($this->proxy_config); + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $var + * @return $this + */ + public function setProxyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig::class); + $this->proxy_config = $var; + + return $this; + } + + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null + */ + public function getConfigEncryption() + { + return $this->config_encryption; + } + + public function hasConfigEncryption() + { + return isset($this->config_encryption); + } + + public function clearConfigEncryption() + { + unset($this->config_encryption); + } + + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $var + * @return $this + */ + public function setConfigEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption::class); + $this->config_encryption = $var; + + return $this; + } + + /** + * Optional. The placement to use on control plane instances. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null + */ + public function getInstancePlacement() + { + return $this->instance_placement; + } + + public function hasInstancePlacement() + { + return isset($this->instance_placement); + } + + public function clearInstancePlacement() + { + unset($this->instance_placement); + } + + /** + * Optional. The placement to use on control plane instances. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $var + * @return $this + */ + public function setInstancePlacement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement::class); + $this->instance_placement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php new file mode 100644 index 000000000000..e7e0ce60bd12 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsDatabaseEncryption + */ +class AwsDatabaseEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $kms_key_arn = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kms_key_arn + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKmsKeyArn() + { + return $this->kms_key_arn; + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKmsKeyArn($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_arn = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php new file mode 100644 index 000000000000..e2eccd85ae67 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php @@ -0,0 +1,70 @@ +google.cloud.gkemulticloud.v1.AwsInstancePlacement + */ +class AwsInstancePlacement extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The tenancy for instance. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tenancy = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $tenancy + * Required. The tenancy for instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The tenancy for instance. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getTenancy() + { + return $this->tenancy; + } + + /** + * Required. The tenancy for instance. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setTenancy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement\Tenancy::class); + $this->tenancy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php new file mode 100644 index 000000000000..7c147a1fef41 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php @@ -0,0 +1,75 @@ +google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy + */ +class Tenancy +{ + /** + * Not set. + * + * Generated from protobuf enum TENANCY_UNSPECIFIED = 0; + */ + const TENANCY_UNSPECIFIED = 0; + /** + * Use default VPC tenancy. + * + * Generated from protobuf enum DEFAULT = 1; + */ + const PBDEFAULT = 1; + /** + * Run a dedicated instance. + * + * Generated from protobuf enum DEDICATED = 2; + */ + const DEDICATED = 2; + /** + * Launch this instance to a dedicated host. + * + * Generated from protobuf enum HOST = 3; + */ + const HOST = 3; + + private static $valueToName = [ + self::TENANCY_UNSPECIFIED => 'TENANCY_UNSPECIFIED', + self::PBDEFAULT => 'DEFAULT', + self::DEDICATED => 'DEDICATED', + self::HOST => 'HOST', + ]; + + 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(Tenancy::class, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement_Tenancy::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php new file mode 100644 index 000000000000..1c6525314c65 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AwsK8sVersionInfo + */ +class AwsK8sVersionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Kubernetes version name. + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Kubernetes version name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Kubernetes version name. + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Kubernetes version name. + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php new file mode 100644 index 000000000000..453635f072b7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php @@ -0,0 +1,607 @@ +google.cloud.gkemulticloud.v1.AwsNodeConfig + */ +class AwsNodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the node pool's version. + * + * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instance_type = ''; + /** + * Optional. Template for the root volume provisioned for node pool nodes. + * Volumes will be provisioned in the availability zone assigned + * to the node pool subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $root_volume = null; + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $taints; + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * + * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $iam_instance_profile = ''; + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image_type = ''; + /** + * Optional. The SSH configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ssh_config = null; + /** + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $security_group_ids; + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_config = null; + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config_encryption = null; + /** + * Optional. Placement related info for this node. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instance_placement = null; + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $autoscaling_metrics_collection = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instance_type + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the node pool's version. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume + * Optional. Template for the root volume provisioned for node pool nodes. + * Volumes will be provisioned in the availability zone assigned + * to the node pool subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * @type array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints + * Optional. The initial taints assigned to nodes of this node pool. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * @type string $iam_instance_profile + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * @type string $image_type + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config + * Optional. The SSH configuration. + * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption + * Required. Config encryption for user data. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement + * Optional. Placement related info for this node. + * When unspecified, the VPC's default tenancy will be used. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $autoscaling_metrics_collection + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the node pool's version. + * + * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getInstanceType() + { + return $this->instance_type; + } + + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the node pool's version. + * + * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setInstanceType($var) + { + GPBUtil::checkString($var, True); + $this->instance_type = $var; + + return $this; + } + + /** + * Optional. Template for the root volume provisioned for node pool nodes. + * Volumes will be provisioned in the availability zone assigned + * to the node pool subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null + */ + public function getRootVolume() + { + return $this->root_volume; + } + + public function hasRootVolume() + { + return isset($this->root_volume); + } + + public function clearRootVolume() + { + unset($this->root_volume); + } + + /** + * Optional. Template for the root volume provisioned for node pool nodes. + * Volumes will be provisioned in the availability zone assigned + * to the node pool subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var + * @return $this + */ + public function setRootVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); + $this->root_volume = $var; + + return $this; + } + + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaints() + { + return $this->taints; + } + + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\NodeTaint::class); + $this->taints = $arr; + + return $this; + } + + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 4 [(.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; + } + + /** + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * + * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getIamInstanceProfile() + { + return $this->iam_instance_profile; + } + + /** + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * + * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setIamInstanceProfile($var) + { + GPBUtil::checkString($var, True); + $this->iam_instance_profile = $var; + + return $this; + } + + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * Optional. The SSH configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null + */ + public function getSshConfig() + { + return $this->ssh_config; + } + + public function hasSshConfig() + { + return isset($this->ssh_config); + } + + public function clearSshConfig() + { + unset($this->ssh_config); + } + + /** + * Optional. The SSH configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $var + * @return $this + */ + public function setSshConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig::class); + $this->ssh_config = $var; + + return $this; + } + + /** + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecurityGroupIds() + { + return $this->security_group_ids; + } + + /** + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecurityGroupIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->security_group_ids = $arr; + + return $this; + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null + */ + public function getProxyConfig() + { + return $this->proxy_config; + } + + public function hasProxyConfig() + { + return isset($this->proxy_config); + } + + public function clearProxyConfig() + { + unset($this->proxy_config); + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $var + * @return $this + */ + public function setProxyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig::class); + $this->proxy_config = $var; + + return $this; + } + + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null + */ + public function getConfigEncryption() + { + return $this->config_encryption; + } + + public function hasConfigEncryption() + { + return isset($this->config_encryption); + } + + public function clearConfigEncryption() + { + unset($this->config_encryption); + } + + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $var + * @return $this + */ + public function setConfigEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption::class); + $this->config_encryption = $var; + + return $this; + } + + /** + * Optional. Placement related info for this node. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null + */ + public function getInstancePlacement() + { + return $this->instance_placement; + } + + public function hasInstancePlacement() + { + return isset($this->instance_placement); + } + + public function clearInstancePlacement() + { + unset($this->instance_placement); + } + + /** + * Optional. Placement related info for this node. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $var + * @return $this + */ + public function setInstancePlacement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement::class); + $this->instance_placement = $var; + + return $this; + } + + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection|null + */ + public function getAutoscalingMetricsCollection() + { + return $this->autoscaling_metrics_collection; + } + + public function hasAutoscalingMetricsCollection() + { + return isset($this->autoscaling_metrics_collection); + } + + public function clearAutoscalingMetricsCollection() + { + unset($this->autoscaling_metrics_collection); + } + + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $var + * @return $this + */ + public function setAutoscalingMetricsCollection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection::class); + $this->autoscaling_metrics_collection = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php new file mode 100644 index 000000000000..2c71f5573170 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php @@ -0,0 +1,639 @@ +google.cloud.gkemulticloud.v1.AwsNodePool + */ +class AwsNodePool extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = ''; + /** + * Required. The configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config = null; + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autoscaling = null; + /** + * Required. The subnet where the node pool node run. + * + * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subnet_id = ''; + /** + * Output only. The lifecycle state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently changes in flight to the node + * pool. + * + * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this node pool was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this node pool was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 21; + */ + protected $etag = ''; + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_pods_constraint = null; + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * @type string $version + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig $config + * Required. The configuration of the node pool. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling $autoscaling + * Required. Autoscaler configuration for this node pool. + * @type string $subnet_id + * Required. The subnet where the node pool node run. + * @type int $state + * Output only. The lifecycle state of the node pool. + * @type string $uid + * Output only. A globally unique identifier for the node pool. + * @type bool $reconciling + * Output only. If set, there are currently changes in flight to the node + * pool. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this node pool was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this node pool was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * 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; + } + + /** + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Required. The configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Required. The configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * Required. The subnet where the node pool node run. + * + * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSubnetId() + { + return $this->subnet_id; + } + + /** + * Required. The subnet where the node pool node run. + * + * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->subnet_id = $var; + + return $this; + } + + /** + * Output only. The lifecycle state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The lifecycle state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently changes in flight to the node + * pool. + * + * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently changes in flight to the node + * pool. + * + * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this node pool was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.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 at which this node pool was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.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 at which this node pool was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.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 at which this node pool was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 21; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 21; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint|null + */ + public function getMaxPodsConstraint() + { + return $this->max_pods_constraint; + } + + public function hasMaxPodsConstraint() + { + return isset($this->max_pods_constraint); + } + + public function clearMaxPodsConstraint() + { + unset($this->max_pods_constraint); + } + + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $var + * @return $this + */ + public function setMaxPodsConstraint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint::class); + $this->max_pods_constraint = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError::class); + $this->errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php new file mode 100644 index 000000000000..6c57e22b0028 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php @@ -0,0 +1,95 @@ +google.cloud.gkemulticloud.v1.AwsNodePool.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the node pool is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the node pool has been created + * and is fully usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that the node pool is being reconciled. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the node pool is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the node pool is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the node pool requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AwsNodePool_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php new file mode 100644 index 000000000000..fa2cda6ccf53 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php @@ -0,0 +1,110 @@ +google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling + */ +class AwsNodePoolAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $min_node_count = 0; + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_node_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_node_count + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @type int $max_node_count + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php new file mode 100644 index 000000000000..c5a04b7d3934 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsNodePoolError + */ +class AwsNodePoolError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php new file mode 100644 index 000000000000..2e4dbf88c811 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AwsProxyConfig + */ +class AwsProxyConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy + * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file + * + * Generated from protobuf field string secret_arn = 1; + */ + protected $secret_arn = ''; + /** + * The version string of the AWS Secret Manager secret that contains the + * HTTP(S) proxy configuration. + * + * Generated from protobuf field string secret_version = 2; + */ + protected $secret_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $secret_arn + * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy + * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file + * @type string $secret_version + * The version string of the AWS Secret Manager secret that contains the + * HTTP(S) proxy configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy + * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file + * + * Generated from protobuf field string secret_arn = 1; + * @return string + */ + public function getSecretArn() + { + return $this->secret_arn; + } + + /** + * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy + * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file + * + * Generated from protobuf field string secret_arn = 1; + * @param string $var + * @return $this + */ + public function setSecretArn($var) + { + GPBUtil::checkString($var, True); + $this->secret_arn = $var; + + return $this; + } + + /** + * The version string of the AWS Secret Manager secret that contains the + * HTTP(S) proxy configuration. + * + * Generated from protobuf field string secret_version = 2; + * @return string + */ + public function getSecretVersion() + { + return $this->secret_version; + } + + /** + * The version string of the AWS Secret Manager secret that contains the + * HTTP(S) proxy configuration. + * + * Generated from protobuf field string secret_version = 2; + * @param string $var + * @return $this + */ + public function setSecretVersion($var) + { + GPBUtil::checkString($var, True); + $this->secret_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php new file mode 100644 index 000000000000..c00bfe0636c7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php @@ -0,0 +1,135 @@ +google.cloud.gkemulticloud.v1.AwsServerConfig + */ +class AwsServerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the config. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; + */ + private $valid_versions; + /** + * The list of supported AWS regions. + * + * Generated from protobuf field repeated string supported_aws_regions = 3; + */ + private $supported_aws_regions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the config. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions + * List of valid Kubernetes versions. + * @type array|\Google\Protobuf\Internal\RepeatedField $supported_aws_regions + * The list of supported AWS regions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the config. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the config. + * + * 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; + } + + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidVersions() + { + return $this->valid_versions; + } + + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo::class); + $this->valid_versions = $arr; + + return $this; + } + + /** + * The list of supported AWS regions. + * + * Generated from protobuf field repeated string supported_aws_regions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSupportedAwsRegions() + { + return $this->supported_aws_regions; + } + + /** + * The list of supported AWS regions. + * + * Generated from protobuf field repeated string supported_aws_regions = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSupportedAwsRegions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->supported_aws_regions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php new file mode 100644 index 000000000000..cef249ad091f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.AwsServicesAuthentication + */ +class AwsServicesAuthentication extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * + * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $role_arn = ''; + /** + * Optional. An identifier for the assumed role session. + * When unspecified, it defaults to `multicloud-service-agent`. + * + * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $role_session_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $role_arn + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * @type string $role_session_name + * Optional. An identifier for the assumed role session. + * When unspecified, it defaults to `multicloud-service-agent`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * + * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRoleArn() + { + return $this->role_arn; + } + + /** + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * + * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRoleArn($var) + { + GPBUtil::checkString($var, True); + $this->role_arn = $var; + + return $this; + } + + /** + * Optional. An identifier for the assumed role session. + * When unspecified, it defaults to `multicloud-service-agent`. + * + * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRoleSessionName() + { + return $this->role_session_name; + } + + /** + * Optional. An identifier for the assumed role session. + * When unspecified, it defaults to `multicloud-service-agent`. + * + * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRoleSessionName($var) + { + GPBUtil::checkString($var, True); + $this->role_session_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php new file mode 100644 index 000000000000..a3e356328b16 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsSshConfig + */ +class AwsSshConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the EC2 key pair used to login into cluster machines. + * + * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ec2_key_pair = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ec2_key_pair + * Required. The name of the EC2 key pair used to login into cluster machines. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the EC2 key pair used to login into cluster machines. + * + * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEc2KeyPair() + { + return $this->ec2_key_pair; + } + + /** + * Required. The name of the EC2 key pair used to login into cluster machines. + * + * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEc2KeyPair($var) + { + GPBUtil::checkString($var, True); + $this->ec2_key_pair = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php new file mode 100644 index 000000000000..99028858b4e9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php @@ -0,0 +1,197 @@ +google.cloud.gkemulticloud.v1.AwsVolumeTemplate + */ +class AwsVolumeTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The size of the volume, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $size_gib = 0; + /** + * Optional. Type of the EBS volume. + * When unspecified, it defaults to GP2 volume. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $volume_type = 0; + /** + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. + * + * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $iops = 0; + /** + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. + * If not specified, the default Amazon managed key associated to + * the AWS region where this cluster runs will be used. + * + * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $kms_key_arn = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $size_gib + * Optional. The size of the volume, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * @type int $volume_type + * Optional. Type of the EBS volume. + * When unspecified, it defaults to GP2 volume. + * @type int $iops + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. + * @type string $kms_key_arn + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. + * If not specified, the default Amazon managed key associated to + * the AWS region where this cluster runs will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The size of the volume, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSizeGib() + { + return $this->size_gib; + } + + /** + * Optional. The size of the volume, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSizeGib($var) + { + GPBUtil::checkInt32($var); + $this->size_gib = $var; + + return $this; + } + + /** + * Optional. Type of the EBS volume. + * When unspecified, it defaults to GP2 volume. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getVolumeType() + { + return $this->volume_type; + } + + /** + * Optional. Type of the EBS volume. + * When unspecified, it defaults to GP2 volume. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setVolumeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate\VolumeType::class); + $this->volume_type = $var; + + return $this; + } + + /** + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. + * + * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getIops() + { + return $this->iops; + } + + /** + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. + * + * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setIops($var) + { + GPBUtil::checkInt32($var); + $this->iops = $var; + + return $this; + } + + /** + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. + * If not specified, the default Amazon managed key associated to + * the AWS region where this cluster runs will be used. + * + * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKmsKeyArn() + { + return $this->kms_key_arn; + } + + /** + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. + * If not specified, the default Amazon managed key associated to + * the AWS region where this cluster runs will be used. + * + * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKmsKeyArn($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_arn = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php new file mode 100644 index 000000000000..8a88654de373 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType + */ +class VolumeType +{ + /** + * Not set. + * + * Generated from protobuf enum VOLUME_TYPE_UNSPECIFIED = 0; + */ + const VOLUME_TYPE_UNSPECIFIED = 0; + /** + * GP2 (General Purpose SSD volume type). + * + * Generated from protobuf enum GP2 = 1; + */ + const GP2 = 1; + /** + * GP3 (General Purpose SSD volume type). + * + * Generated from protobuf enum GP3 = 2; + */ + const GP3 = 2; + + private static $valueToName = [ + self::VOLUME_TYPE_UNSPECIFIED => 'VOLUME_TYPE_UNSPECIFIED', + self::GP2 => 'GP2', + self::GP3 => 'GP3', + ]; + + 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(VolumeType::class, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate_VolumeType::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php new file mode 100644 index 000000000000..dc53da62729d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AzureAuthorization + */ +class AzureAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $admin_users; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdminUsers() + { + return $this->admin_users; + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterUser>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdminUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterUser::class); + $this->admin_users = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php new file mode 100644 index 000000000000..0b11e8856493 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php @@ -0,0 +1,333 @@ +google.cloud.gkemulticloud.v1.AzureClient + */ +class AzureClient extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * `AzureClient` resource names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The Azure Active Directory Tenant ID. + * + * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tenant_id = ''; + /** + * Required. The Azure Active Directory Application ID. + * + * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $application_id = ''; + /** + * Optional. Annotations on the resource. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Output only. The PEM encoded x509 certificate. + * + * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pem_certificate = ''; + /** + * Output only. A globally unique identifier for the client. + * + * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time at which this resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * `AzureClient` resource names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type string $tenant_id + * Required. The Azure Active Directory Tenant ID. + * @type string $application_id + * Required. The Azure Active Directory Application ID. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the resource. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type string $pem_certificate + * Output only. The PEM encoded x509 certificate. + * @type string $uid + * Output only. A globally unique identifier for the client. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this resource was created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * `AzureClient` resource names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * `AzureClient` resource names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * Required. The Azure Active Directory Tenant ID. + * + * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTenantId() + { + return $this->tenant_id; + } + + /** + * Required. The Azure Active Directory Tenant ID. + * + * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTenantId($var) + { + GPBUtil::checkString($var, True); + $this->tenant_id = $var; + + return $this; + } + + /** + * Required. The Azure Active Directory Application ID. + * + * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getApplicationId() + { + return $this->application_id; + } + + /** + * Required. The Azure Active Directory Application ID. + * + * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setApplicationId($var) + { + GPBUtil::checkString($var, True); + $this->application_id = $var; + + return $this; + } + + /** + * Optional. Annotations on the resource. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the resource. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. The PEM encoded x509 certificate. + * + * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPemCertificate() + { + return $this->pem_certificate; + } + + /** + * Output only. The PEM encoded x509 certificate. + * + * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPemCertificate($var) + { + GPBUtil::checkString($var, True); + $this->pem_certificate = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the client. + * + * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the client. + * + * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time at which this resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 at which this resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php new file mode 100644 index 000000000000..017ffe4961e7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php @@ -0,0 +1,1035 @@ +google.cloud.gkemulticloud.v1.AzureCluster + */ +class AzureCluster extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The Azure region where the cluster runs. + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * + * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_region = ''; + /** + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * + * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource_group_id = ''; + /** + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_client = ''; + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $networking = null; + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $control_plane = null; + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorization = null; + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $endpoint = ''; + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + */ + protected $etag = ''; + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $workload_identity_config = null; + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cluster_ca_certificate = ''; + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fleet = null; + /** + * Output only. Managed Azure resources for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $managed_resources = null; + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $logging_config = null; + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $monitoring_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type string $description + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * @type string $azure_region + * Required. The Azure region where the cluster runs. + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * @type string $resource_group_id + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * @type string $azure_client + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking $networking + * Required. Cluster-wide networking configuration. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane $control_plane + * Required. Configuration related to the cluster control plane. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization $authorization + * Required. Configuration related to the cluster RBAC settings. + * @type int $state + * Output only. The current state of the cluster. + * @type string $endpoint + * Output only. The endpoint of the cluster's API server. + * @type string $uid + * Output only. A globally unique identifier for the cluster. + * @type bool $reconciling + * Output only. If set, there are currently changes in flight to the cluster. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this cluster was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this cluster was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config + * Output only. Workload Identity settings. + * @type string $cluster_ca_certificate + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet + * Required. Fleet configuration. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $managed_resources + * Output only. Managed Azure resources for this cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config + * Optional. Logging configuration for this cluster. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config + * Optional. Monitoring configuration for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field 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; + } + + /** + * Required. The Azure region where the cluster runs. + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * + * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureRegion() + { + return $this->azure_region; + } + + /** + * Required. The Azure region where the cluster runs. + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * + * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureRegion($var) + { + GPBUtil::checkString($var, True); + $this->azure_region = $var; + + return $this; + } + + /** + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * + * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getResourceGroupId() + { + return $this->resource_group_id; + } + + /** + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * + * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setResourceGroupId($var) + { + GPBUtil::checkString($var, True); + $this->resource_group_id = $var; + + return $this; + } + + /** + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureClient() + { + return $this->azure_client; + } + + /** + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureClient($var) + { + GPBUtil::checkString($var, True); + $this->azure_client = $var; + + return $this; + } + + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking|null + */ + public function getNetworking() + { + return $this->networking; + } + + public function hasNetworking() + { + return isset($this->networking); + } + + public function clearNetworking() + { + unset($this->networking); + } + + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking $var + * @return $this + */ + public function setNetworking($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking::class); + $this->networking = $var; + + return $this; + } + + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane|null + */ + public function getControlPlane() + { + return $this->control_plane; + } + + public function hasControlPlane() + { + return isset($this->control_plane); + } + + public function clearControlPlane() + { + unset($this->control_plane); + } + + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane $var + * @return $this + */ + public function setControlPlane($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane::class); + $this->control_plane = $var; + + return $this; + } + + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization|null + */ + public function getAuthorization() + { + return $this->authorization; + } + + public function hasAuthorization() + { + return isset($this->authorization); + } + + public function clearAuthorization() + { + unset($this->authorization); + } + + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization $var + * @return $this + */ + public function setAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization::class); + $this->authorization = $var; + + return $this; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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 at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null + */ + public function getWorkloadIdentityConfig() + { + return $this->workload_identity_config; + } + + public function hasWorkloadIdentityConfig() + { + return isset($this->workload_identity_config); + } + + public function clearWorkloadIdentityConfig() + { + unset($this->workload_identity_config); + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); + $this->workload_identity_config = $var; + + return $this; + } + + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getClusterCaCertificate() + { + return $this->cluster_ca_certificate; + } + + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setClusterCaCertificate($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ca_certificate = $var; + + return $this; + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null + */ + public function getFleet() + { + return $this->fleet; + } + + public function hasFleet() + { + return isset($this->fleet); + } + + public function clearFleet() + { + unset($this->fleet); + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var + * @return $this + */ + public function setFleet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); + $this->fleet = $var; + + return $this; + } + + /** + * Output only. Managed Azure resources for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources|null + */ + public function getManagedResources() + { + return $this->managed_resources; + } + + public function hasManagedResources() + { + return isset($this->managed_resources); + } + + public function clearManagedResources() + { + unset($this->managed_resources); + } + + /** + * Output only. Managed Azure resources for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $var + * @return $this + */ + public function setManagedResources($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources::class); + $this->managed_resources = $var; + + return $this; + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterError::class); + $this->errors = $arr; + + return $this; + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php new file mode 100644 index 000000000000..e62a7b58f248 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php @@ -0,0 +1,96 @@ +google.cloud.gkemulticloud.v1.AzureCluster.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the cluster is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the cluster has been created and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading the control plane replicas. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the cluster is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the cluster is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the cluster requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AzureCluster_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php new file mode 100644 index 000000000000..cf9a9b6b2e5d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AzureClusterError + */ +class AzureClusterError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php new file mode 100644 index 000000000000..c4425dee6e7c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php @@ -0,0 +1,241 @@ +google.cloud.gkemulticloud.v1.AzureClusterNetworking + */ +class AzureClusterNetworking extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * This field cannot be changed after creation. + * + * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $virtual_network_id = ''; + /** + * Required. The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $pod_address_cidr_blocks; + /** + * Required. The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creating a cluster. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $service_address_cidr_blocks; + /** + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to + * AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" + * + * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_load_balancer_subnet_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $virtual_network_id + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * This field cannot be changed after creation. + * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks + * Required. The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creation. + * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks + * Required. The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creating a cluster. + * @type string $service_load_balancer_subnet_id + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to + * AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * This field cannot be changed after creation. + * + * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVirtualNetworkId() + { + return $this->virtual_network_id; + } + + /** + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * This field cannot be changed after creation. + * + * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVirtualNetworkId($var) + { + GPBUtil::checkString($var, True); + $this->virtual_network_id = $var; + + return $this; + } + + /** + * Required. The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPodAddressCidrBlocks() + { + return $this->pod_address_cidr_blocks; + } + + /** + * Required. The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPodAddressCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pod_address_cidr_blocks = $arr; + + return $this; + } + + /** + * Required. The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creating a cluster. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getServiceAddressCidrBlocks() + { + return $this->service_address_cidr_blocks; + } + + /** + * Required. The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creating a cluster. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setServiceAddressCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_address_cidr_blocks = $arr; + + return $this; + } + + /** + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to + * AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" + * + * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceLoadBalancerSubnetId() + { + return $this->service_load_balancer_subnet_id; + } + + /** + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to + * AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" + * + * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceLoadBalancerSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->service_load_balancer_subnet_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php new file mode 100644 index 000000000000..ca301cadedac --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php @@ -0,0 +1,102 @@ +google.cloud.gkemulticloud.v1.AzureClusterResources + */ +class AzureClusterResources extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The ARM ID of the cluster network security group. + * + * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $network_security_group_id = ''; + /** + * Output only. The ARM ID of the control plane application security group. + * + * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $control_plane_application_security_group_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $network_security_group_id + * Output only. The ARM ID of the cluster network security group. + * @type string $control_plane_application_security_group_id + * Output only. The ARM ID of the control plane application security group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The ARM ID of the cluster network security group. + * + * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNetworkSecurityGroupId() + { + return $this->network_security_group_id; + } + + /** + * Output only. The ARM ID of the cluster network security group. + * + * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNetworkSecurityGroupId($var) + { + GPBUtil::checkString($var, True); + $this->network_security_group_id = $var; + + return $this; + } + + /** + * Output only. The ARM ID of the control plane application security group. + * + * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getControlPlaneApplicationSecurityGroupId() + { + return $this->control_plane_application_security_group_id; + } + + /** + * Output only. The ARM ID of the control plane application security group. + * + * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setControlPlaneApplicationSecurityGroupId($var) + { + GPBUtil::checkString($var, True); + $this->control_plane_application_security_group_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php new file mode 100644 index 000000000000..3aecd59fbf61 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AzureClusterUser + */ +class AzureClusterUser extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php new file mode 100644 index 000000000000..8920c0ef3e68 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php @@ -0,0 +1,16 @@ +_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureClient', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAzureClient(\Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AzureClient', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources on a given Google Cloud project and region. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAzureClients(\Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAzureClientsResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource. + * + * If the client is used by one or more clusters, deletion will + * fail and a `FAILED_PRECONDITION` error will be returned. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureClientRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAzureClient(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClientRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureClient', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource on a given GCP project and region. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\CreateAzureClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\CreateAzureClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAzureCluster(\Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AzureCluster', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources on a given Google Cloud project and region. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAzureClusters(\Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAzureClustersResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * + * Fails if the cluster has one or more associated + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAzureCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Generates a short-lived access token to authenticate to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GenerateAzureAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse', 'decode'], + $metadata, $options); + } + + /** + * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], + * attached to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\CreateAzureNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\CreateAzureNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAzureNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources on a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAzureNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Returns information, such as supported Azure regions and Kubernetes + * versions, on a given Google Cloud location. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureServerConfigRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAzureServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAzureServerConfigRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AzureServerConfig', 'decode'], + $metadata, $options); + } + +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php new file mode 100644 index 000000000000..f90fcdd501a4 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php @@ -0,0 +1,131 @@ +google.cloud.gkemulticloud.v1.AzureConfigEncryption + */ +class AzureConfigEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * + * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $key_id = ''; + /** + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. + * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) + * in ASN.1 DER form. The string must be comprised of a single PEM block of + * type "PUBLIC KEY". + * + * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $public_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key_id + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * @type string $public_key + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. + * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) + * in ASN.1 DER form. The string must be comprised of a single PEM block of + * type "PUBLIC KEY". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * + * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKeyId() + { + return $this->key_id; + } + + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * + * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKeyId($var) + { + GPBUtil::checkString($var, True); + $this->key_id = $var; + + return $this; + } + + /** + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. + * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) + * in ASN.1 DER form. The string must be comprised of a single PEM block of + * type "PUBLIC KEY". + * + * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPublicKey() + { + return $this->public_key; + } + + /** + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. + * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) + * in ASN.1 DER form. The string must be comprised of a single PEM block of + * type "PUBLIC KEY". + * + * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPublicKey($var) + { + GPBUtil::checkString($var, True); + $this->public_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php new file mode 100644 index 000000000000..92f3fed0095f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php @@ -0,0 +1,613 @@ +google.cloud.gkemulticloud.v1.AzureControlPlane + */ +class AzureControlPlane extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = ''; + /** + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless + * `AzureControlPlane.replica_placements` is specified. This subnet will also + * be used as default for `AzureControlPlane.endpoint_subnet_id` if + * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will + * be used as default for + * `AzureClusterNetworking.service_load_balancer_subnet_id`. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. + * + * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $subnet_id = ''; + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * For available VM sizes, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vm_size = ''; + /** + * Required. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ssh_config = null; + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * When unspecified, it defaults to 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $root_volume = null; + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * When unspecified, it defaults to a 8-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $main_volume = null; + /** + * Optional. Configuration related to application-layer secrets encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $database_encryption = null; + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_config = null; + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $config_encryption = null; + /** + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. + * + * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Optional. Configuration for where to place the control plane replicas. + * Up to three replica placement instances can be specified. If + * replica_placements is set, the replica placement instances will be applied + * to the three control plane replicas as evenly as possible. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $replica_placements; + /** + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" + * + * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $endpoint_subnet_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * @type string $subnet_id + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless + * `AzureControlPlane.replica_placements` is specified. This subnet will also + * be used as default for `AzureControlPlane.endpoint_subnet_id` if + * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will + * be used as default for + * `AzureClusterNetworking.service_load_balancer_subnet_id`. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. + * @type string $vm_size + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * For available VM sizes, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. + * When unspecified, it defaults to `Standard_DS2_v2`. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $ssh_config + * Required. SSH configuration for how to access the underlying control plane + * machines. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $root_volume + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * When unspecified, it defaults to 32-GiB Azure Disk. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $main_volume + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * When unspecified, it defaults to a 8-GiB Azure Disk. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption $database_encryption + * Optional. Configuration related to application-layer secrets encryption. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $proxy_config + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption + * Optional. Configuration related to vm config encryption. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. + * @type array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $replica_placements + * Optional. Configuration for where to place the control plane replicas. + * Up to three replica placement instances can be specified. If + * replica_placements is set, the replica placement instances will be applied + * to the three control plane replicas as evenly as possible. + * @type string $endpoint_subnet_id + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless + * `AzureControlPlane.replica_placements` is specified. This subnet will also + * be used as default for `AzureControlPlane.endpoint_subnet_id` if + * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will + * be used as default for + * `AzureClusterNetworking.service_load_balancer_subnet_id`. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. + * + * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSubnetId() + { + return $this->subnet_id; + } + + /** + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless + * `AzureControlPlane.replica_placements` is specified. This subnet will also + * be used as default for `AzureControlPlane.endpoint_subnet_id` if + * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will + * be used as default for + * `AzureClusterNetworking.service_load_balancer_subnet_id`. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. + * + * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->subnet_id = $var; + + return $this; + } + + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * For available VM sizes, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVmSize() + { + return $this->vm_size; + } + + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * For available VM sizes, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVmSize($var) + { + GPBUtil::checkString($var, True); + $this->vm_size = $var; + + return $this; + } + + /** + * Required. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig|null + */ + public function getSshConfig() + { + return $this->ssh_config; + } + + public function hasSshConfig() + { + return isset($this->ssh_config); + } + + public function clearSshConfig() + { + unset($this->ssh_config); + } + + /** + * Required. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $var + * @return $this + */ + public function setSshConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig::class); + $this->ssh_config = $var; + + return $this; + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * When unspecified, it defaults to 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null + */ + public function getRootVolume() + { + return $this->root_volume; + } + + public function hasRootVolume() + { + return isset($this->root_volume); + } + + public function clearRootVolume() + { + unset($this->root_volume); + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * When unspecified, it defaults to 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var + * @return $this + */ + public function setRootVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); + $this->root_volume = $var; + + return $this; + } + + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * When unspecified, it defaults to a 8-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null + */ + public function getMainVolume() + { + return $this->main_volume; + } + + public function hasMainVolume() + { + return isset($this->main_volume); + } + + public function clearMainVolume() + { + unset($this->main_volume); + } + + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * When unspecified, it defaults to a 8-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var + * @return $this + */ + public function setMainVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); + $this->main_volume = $var; + + return $this; + } + + /** + * Optional. Configuration related to application-layer secrets encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption|null + */ + public function getDatabaseEncryption() + { + return $this->database_encryption; + } + + public function hasDatabaseEncryption() + { + return isset($this->database_encryption); + } + + public function clearDatabaseEncryption() + { + unset($this->database_encryption); + } + + /** + * Optional. Configuration related to application-layer secrets encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption $var + * @return $this + */ + public function setDatabaseEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption::class); + $this->database_encryption = $var; + + return $this; + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig|null + */ + public function getProxyConfig() + { + return $this->proxy_config; + } + + public function hasProxyConfig() + { + return isset($this->proxy_config); + } + + public function clearProxyConfig() + { + unset($this->proxy_config); + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $var + * @return $this + */ + public function setProxyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig::class); + $this->proxy_config = $var; + + return $this; + } + + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption|null + */ + public function getConfigEncryption() + { + return $this->config_encryption; + } + + public function hasConfigEncryption() + { + return isset($this->config_encryption); + } + + public function clearConfigEncryption() + { + unset($this->config_encryption); + } + + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $var + * @return $this + */ + public function setConfigEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption::class); + $this->config_encryption = $var; + + return $this; + } + + /** + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. + * + * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. + * + * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Optional. Configuration for where to place the control plane replicas. + * Up to three replica placement instances can be specified. If + * replica_placements is set, the replica placement instances will be applied + * to the three control plane replicas as evenly as possible. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReplicaPlacements() + { + return $this->replica_placements; + } + + /** + * Optional. Configuration for where to place the control plane replicas. + * Up to three replica placement instances can be specified. If + * replica_placements is set, the replica placement instances will be applied + * to the three control plane replicas as evenly as possible. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReplicaPlacements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement::class); + $this->replica_placements = $arr; + + return $this; + } + + /** + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" + * + * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEndpointSubnetId() + { + return $this->endpoint_subnet_id; + } + + /** + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" + * + * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEndpointSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->endpoint_subnet_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php new file mode 100644 index 000000000000..21c7b8009267 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php @@ -0,0 +1,85 @@ +google.cloud.gkemulticloud.v1.AzureDatabaseEncryption + */ +class AzureDatabaseEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * Encryption will always take the latest version of the key and hence + * specific version is not supported. + * + * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $key_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key_id + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * Encryption will always take the latest version of the key and hence + * specific version is not supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * Encryption will always take the latest version of the key and hence + * specific version is not supported. + * + * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKeyId() + { + return $this->key_id; + } + + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * Encryption will always take the latest version of the key and hence + * specific version is not supported. + * + * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKeyId($var) + { + GPBUtil::checkString($var, True); + $this->key_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php new file mode 100644 index 000000000000..f3c1a39446b7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php @@ -0,0 +1,75 @@ +google.cloud.gkemulticloud.v1.AzureDiskTemplate + */ +class AzureDiskTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The size of the disk, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $size_gib = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $size_gib + * Optional. The size of the disk, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The size of the disk, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSizeGib() + { + return $this->size_gib; + } + + /** + * Optional. The size of the disk, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSizeGib($var) + { + GPBUtil::checkInt32($var); + $this->size_gib = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php new file mode 100644 index 000000000000..c5f4598bb33e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AzureK8sVersionInfo + */ +class AzureK8sVersionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * A supported Kubernetes version (for example, `1.19.10-gke.1000`) + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * A supported Kubernetes version (for example, `1.19.10-gke.1000`) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * A supported Kubernetes version (for example, `1.19.10-gke.1000`) + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * A supported Kubernetes version (for example, `1.19.10-gke.1000`) + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php new file mode 100644 index 000000000000..6008f9ede920 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php @@ -0,0 +1,436 @@ +google.cloud.gkemulticloud.v1.AzureNodeConfig + */ +class AzureNodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * See [Supported VM + * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vm_size = ''; + /** + * Optional. Configuration related to the root volume provisioned for each + * node pool machine. + * When unspecified, it defaults to a 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $root_volume = null; + /** + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image_type = ''; + /** + * Required. SSH configuration for how to access the node pool machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ssh_config = null; + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_config = null; + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $config_encryption = null; + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $taints; + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $vm_size + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * See [Supported VM + * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. + * When unspecified, it defaults to `Standard_DS2_v2`. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $root_volume + * Optional. Configuration related to the root volume provisioned for each + * node pool machine. + * When unspecified, it defaults to a 32-GiB Azure Disk. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * @type string $image_type + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $ssh_config + * Required. SSH configuration for how to access the node pool machines. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $proxy_config + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption + * Optional. Configuration related to vm config encryption. + * @type array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints + * Optional. The initial taints assigned to nodes of this node pool. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * See [Supported VM + * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVmSize() + { + return $this->vm_size; + } + + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * See [Supported VM + * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVmSize($var) + { + GPBUtil::checkString($var, True); + $this->vm_size = $var; + + return $this; + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * node pool machine. + * When unspecified, it defaults to a 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null + */ + public function getRootVolume() + { + return $this->root_volume; + } + + public function hasRootVolume() + { + return isset($this->root_volume); + } + + public function clearRootVolume() + { + unset($this->root_volume); + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * node pool machine. + * When unspecified, it defaults to a 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var + * @return $this + */ + public function setRootVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); + $this->root_volume = $var; + + return $this; + } + + /** + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * Required. SSH configuration for how to access the node pool machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig|null + */ + public function getSshConfig() + { + return $this->ssh_config; + } + + public function hasSshConfig() + { + return isset($this->ssh_config); + } + + public function clearSshConfig() + { + unset($this->ssh_config); + } + + /** + * Required. SSH configuration for how to access the node pool machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $var + * @return $this + */ + public function setSshConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig::class); + $this->ssh_config = $var; + + return $this; + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig|null + */ + public function getProxyConfig() + { + return $this->proxy_config; + } + + public function hasProxyConfig() + { + return isset($this->proxy_config); + } + + public function clearProxyConfig() + { + unset($this->proxy_config); + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $var + * @return $this + */ + public function setProxyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig::class); + $this->proxy_config = $var; + + return $this; + } + + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption|null + */ + public function getConfigEncryption() + { + return $this->config_encryption; + } + + public function hasConfigEncryption() + { + return isset($this->config_encryption); + } + + public function clearConfigEncryption() + { + unset($this->config_encryption); + } + + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $var + * @return $this + */ + public function setConfigEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption::class); + $this->config_encryption = $var; + + return $this; + } + + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaints() + { + return $this->taints; + } + + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\NodeTaint::class); + $this->taints = $arr; + + return $this; + } + + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php new file mode 100644 index 000000000000..957f0cef0a6c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php @@ -0,0 +1,669 @@ +google.cloud.gkemulticloud.v1.AzureNodePool + */ +class AzureNodePool extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = ''; + /** + * Required. The node configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config = null; + /** + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * + * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subnet_id = ''; + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autoscaling = null; + /** + * Output only. The current state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently pending changes to the node + * pool. + * + * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this node pool 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 at which this node pool was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12; + */ + protected $etag = ''; + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_pods_constraint = null; + /** + * Optional. The Azure availability zone of the nodes in this nodepool. + * When unspecified, it defaults to `1`. + * + * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $azure_availability_zone = ''; + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * @type string $version + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $config + * Required. The node configuration of the node pool. + * @type string $subnet_id + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $autoscaling + * Required. Autoscaler configuration for this node pool. + * @type int $state + * Output only. The current state of the node pool. + * @type string $uid + * Output only. A globally unique identifier for the node pool. + * @type bool $reconciling + * Output only. If set, there are currently pending changes to the node + * pool. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this node pool was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this node pool was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * @type string $azure_availability_zone + * Optional. The Azure availability zone of the nodes in this nodepool. + * When unspecified, it defaults to `1`. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * 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; + } + + /** + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Required. The node configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Required. The node configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * + * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSubnetId() + { + return $this->subnet_id; + } + + /** + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * + * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->subnet_id = $var; + + return $this; + } + + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * Output only. The current state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently pending changes to the node + * pool. + * + * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently pending changes to the node + * pool. + * + * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this node pool 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 at which this node pool 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 at which this node pool was last 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 at which this node pool was last 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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint|null + */ + public function getMaxPodsConstraint() + { + return $this->max_pods_constraint; + } + + public function hasMaxPodsConstraint() + { + return isset($this->max_pods_constraint); + } + + public function clearMaxPodsConstraint() + { + unset($this->max_pods_constraint); + } + + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $var + * @return $this + */ + public function setMaxPodsConstraint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint::class); + $this->max_pods_constraint = $var; + + return $this; + } + + /** + * Optional. The Azure availability zone of the nodes in this nodepool. + * When unspecified, it defaults to `1`. + * + * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAzureAvailabilityZone() + { + return $this->azure_availability_zone; + } + + /** + * Optional. The Azure availability zone of the nodes in this nodepool. + * When unspecified, it defaults to `1`. + * + * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAzureAvailabilityZone($var) + { + GPBUtil::checkString($var, True); + $this->azure_availability_zone = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError::class); + $this->errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php new file mode 100644 index 000000000000..1d994d640f61 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php @@ -0,0 +1,95 @@ +google.cloud.gkemulticloud.v1.AzureNodePool.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the node pool is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the node pool has been created and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that the node pool is being reconciled. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the node pool is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the node pool is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the node pool requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AzureNodePool_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php new file mode 100644 index 000000000000..2688e11da544 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php @@ -0,0 +1,111 @@ +google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling + */ +class AzureNodePoolAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $min_node_count = 0; + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_node_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_node_count + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @type int $max_node_count + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php new file mode 100644 index 000000000000..854ce75b671a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AzureNodePoolError + */ +class AzureNodePoolError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php new file mode 100644 index 000000000000..564057a0a4f3 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AzureProxyConfig + */ +class AzureProxyConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The ARM ID the of the resource group containing proxy keyvault. + * Resource group ids are formatted as + * `/subscriptions//resourceGroups/`. + * + * Generated from protobuf field string resource_group_id = 1; + */ + protected $resource_group_id = ''; + /** + * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + * Secret ids are formatted as + * `https://.vault.azure.net/secrets//`. + * + * Generated from protobuf field string secret_id = 2; + */ + protected $secret_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_group_id + * The ARM ID the of the resource group containing proxy keyvault. + * Resource group ids are formatted as + * `/subscriptions//resourceGroups/`. + * @type string $secret_id + * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + * Secret ids are formatted as + * `https://.vault.azure.net/secrets//`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The ARM ID the of the resource group containing proxy keyvault. + * Resource group ids are formatted as + * `/subscriptions//resourceGroups/`. + * + * Generated from protobuf field string resource_group_id = 1; + * @return string + */ + public function getResourceGroupId() + { + return $this->resource_group_id; + } + + /** + * The ARM ID the of the resource group containing proxy keyvault. + * Resource group ids are formatted as + * `/subscriptions//resourceGroups/`. + * + * Generated from protobuf field string resource_group_id = 1; + * @param string $var + * @return $this + */ + public function setResourceGroupId($var) + { + GPBUtil::checkString($var, True); + $this->resource_group_id = $var; + + return $this; + } + + /** + * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + * Secret ids are formatted as + * `https://.vault.azure.net/secrets//`. + * + * Generated from protobuf field string secret_id = 2; + * @return string + */ + public function getSecretId() + { + return $this->secret_id; + } + + /** + * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + * Secret ids are formatted as + * `https://.vault.azure.net/secrets//`. + * + * Generated from protobuf field string secret_id = 2; + * @param string $var + * @return $this + */ + public function setSecretId($var) + { + GPBUtil::checkString($var, True); + $this->secret_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php new file mode 100644 index 000000000000..d05c8963587f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php @@ -0,0 +1,152 @@ +google.cloud.gkemulticloud.v1.AzureServerConfig + */ +class AzureServerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The `AzureServerConfig` resource name. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; + */ + private $valid_versions; + /** + * The list of supported Azure regions. + * + * Generated from protobuf field repeated string supported_azure_regions = 3; + */ + private $supported_azure_regions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The `AzureServerConfig` resource name. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions + * List of valid Kubernetes versions. + * @type array|\Google\Protobuf\Internal\RepeatedField $supported_azure_regions + * The list of supported Azure regions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The `AzureServerConfig` resource name. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The `AzureServerConfig` resource name. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidVersions() + { + return $this->valid_versions; + } + + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo::class); + $this->valid_versions = $arr; + + return $this; + } + + /** + * The list of supported Azure regions. + * + * Generated from protobuf field repeated string supported_azure_regions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSupportedAzureRegions() + { + return $this->supported_azure_regions; + } + + /** + * The list of supported Azure regions. + * + * Generated from protobuf field repeated string supported_azure_regions = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSupportedAzureRegions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->supported_azure_regions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php new file mode 100644 index 000000000000..1327e9f14c97 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php @@ -0,0 +1,75 @@ +google.cloud.gkemulticloud.v1.AzureSshConfig + */ +class AzureSshConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * + * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorized_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $authorized_key + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * + * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAuthorizedKey() + { + return $this->authorized_key; + } + + /** + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * + * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAuthorizedKey($var) + { + GPBUtil::checkString($var, True); + $this->authorized_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php new file mode 100644 index 000000000000..2e04dc9e7bd6 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest + */ +class CreateAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attached_cluster = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attached_cluster_id = ''; + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $attached_cluster + * Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * @type string $attached_cluster_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AttachedCluster|null + */ + public function getAttachedCluster() + { + return $this->attached_cluster; + } + + public function hasAttachedCluster() + { + return isset($this->attached_cluster); + } + + public function clearAttachedCluster() + { + unset($this->attached_cluster); + } + + /** + * Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $var + * @return $this + */ + public function setAttachedCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); + $this->attached_cluster = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAttachedClusterId() + { + return $this->attached_cluster_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAttachedClusterId($var) + { + GPBUtil::checkString($var, True); + $this->attached_cluster_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php new file mode 100644 index 000000000000..62f0e71056dd --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAwsClusterRequest + */ +class CreateAwsClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_cluster = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_cluster_id = ''; + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * @type string $aws_cluster_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null + */ + public function getAwsCluster() + { + return $this->aws_cluster; + } + + public function hasAwsCluster() + { + return isset($this->aws_cluster); + } + + public function clearAwsCluster() + { + unset($this->aws_cluster); + } + + /** + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var + * @return $this + */ + public function setAwsCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); + $this->aws_cluster = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAwsClusterId() + { + return $this->aws_cluster_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAwsClusterId($var) + { + GPBUtil::checkString($var, True); + $this->aws_cluster_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php new file mode 100644 index 000000000000..8509d663ab0f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php @@ -0,0 +1,231 @@ +google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest + */ +class CreateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_node_pool = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_node_pool_id = ''; + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * @type string $aws_node_pool_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the node + * pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null + */ + public function getAwsNodePool() + { + return $this->aws_node_pool; + } + + public function hasAwsNodePool() + { + return isset($this->aws_node_pool); + } + + public function clearAwsNodePool() + { + unset($this->aws_node_pool); + } + + /** + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var + * @return $this + */ + public function setAwsNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); + $this->aws_node_pool = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAwsNodePoolId() + { + return $this->aws_node_pool_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAwsNodePoolId($var) + { + GPBUtil::checkString($var, True); + $this->aws_node_pool_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php new file mode 100644 index 000000000000..79a670bcfe0b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAzureClientRequest + */ +class CreateAzureClientRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_client = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_client_id = ''; + /** + * If set, only validate the request, but do not actually create the client. + * + * Generated from protobuf field bool validate_only = 3; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureClient $azure_client + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * @type string $azure_client_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the client. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureClient|null + */ + public function getAzureClient() + { + return $this->azure_client; + } + + public function hasAzureClient() + { + return isset($this->azure_client); + } + + public function clearAzureClient() + { + unset($this->azure_client); + } + + /** + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureClient $var + * @return $this + */ + public function setAzureClient($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClient::class); + $this->azure_client = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureClientId() + { + return $this->azure_client_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureClientId($var) + { + GPBUtil::checkString($var, True); + $this->azure_client_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the client. + * + * Generated from protobuf field bool validate_only = 3; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the client. + * + * Generated from protobuf field bool validate_only = 3; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php new file mode 100644 index 000000000000..cd34124a8b15 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAzureClusterRequest + */ +class CreateAzureClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_cluster = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_cluster_id = ''; + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * @type string $azure_cluster_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null + */ + public function getAzureCluster() + { + return $this->azure_cluster; + } + + public function hasAzureCluster() + { + return isset($this->azure_cluster); + } + + public function clearAzureCluster() + { + unset($this->azure_cluster); + } + + /** + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var + * @return $this + */ + public function setAzureCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); + $this->azure_cluster = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureClusterId() + { + return $this->azure_cluster_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureClusterId($var) + { + GPBUtil::checkString($var, True); + $this->azure_cluster_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php new file mode 100644 index 000000000000..19fd796cdee5 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest + */ +class CreateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_node_pool = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_node_pool_id = ''; + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * @type string $azure_node_pool_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the node + * pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null + */ + public function getAzureNodePool() + { + return $this->azure_node_pool; + } + + public function hasAzureNodePool() + { + return isset($this->azure_node_pool); + } + + public function clearAzureNodePool() + { + unset($this->azure_node_pool); + } + + /** + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var + * @return $this + */ + public function setAzureNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); + $this->azure_node_pool = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureNodePoolId() + { + return $this->azure_node_pool_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureNodePoolId($var) + { + GPBUtil::checkString($var, True); + $this->azure_node_pool_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php new file mode 100644 index 000000000000..5203109f005f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php @@ -0,0 +1,271 @@ +google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest + */ +class DeleteAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + /** + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5; + */ + protected $ignore_errors = false; + /** + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the resource. + * @type bool $allow_missing + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * @type bool $ignore_errors + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * @type string $etag + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5; + * @return bool + */ + public function getIgnoreErrors() + { + return $this->ignore_errors; + } + + /** + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5; + * @param bool $var + * @return $this + */ + public function setIgnoreErrors($var) + { + GPBUtil::checkBool($var); + $this->ignore_errors = $var; + + return $this; + } + + /** + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php new file mode 100644 index 000000000000..8c731da6dff7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php @@ -0,0 +1,221 @@ +google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest + */ +class DeleteAwsClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + /** + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the resource. + * @type bool $allow_missing + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * @type string $etag + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php new file mode 100644 index 000000000000..333666be0668 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php @@ -0,0 +1,225 @@ +google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest + */ +class DeleteAwsNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + /** + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the node + * pool. + * @type bool $allow_missing + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * @type string $etag + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php new file mode 100644 index 000000000000..926bfcb4f6c8 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php @@ -0,0 +1,175 @@ +google.cloud.gkemulticloud.v1.DeleteAzureClientRequest + */ +class DeleteAzureClientRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + */ + protected $allow_missing = false; + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type bool $allow_missing + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php new file mode 100644 index 000000000000..ad770b028af7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php @@ -0,0 +1,221 @@ +google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest + */ +class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + */ + protected $allow_missing = false; + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + */ + protected $validate_only = false; + /** + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type bool $allow_missing + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the resource. + * @type string $etag + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php new file mode 100644 index 000000000000..4c7e541bd178 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php @@ -0,0 +1,229 @@ +google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest + */ +class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + /** + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the node + * pool. + * @type bool $allow_missing + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * @type string $etag + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php new file mode 100644 index 000000000000..ddc8d53d7ae1 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php @@ -0,0 +1,131 @@ +google.cloud.gkemulticloud.v1.Fleet + */ +class Fleet extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Fleet host project where this cluster will be + * registered. + * Project names are formatted as + * `projects/`. + * + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project = ''; + /** + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. + * Membership names are formatted as + * `projects//locations/global/membership/`. + * + * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $membership = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project + * Required. The name of the Fleet host project where this cluster will be + * registered. + * Project names are formatted as + * `projects/`. + * @type string $membership + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. + * Membership names are formatted as + * `projects//locations/global/membership/`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Fleet host project where this cluster will be + * registered. + * Project names are formatted as + * `projects/`. + * + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * Required. The name of the Fleet host project where this cluster will be + * registered. + * Project names are formatted as + * `projects/`. + * + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. + * Membership names are formatted as + * `projects//locations/global/membership/`. + * + * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMembership() + { + return $this->membership; + } + + /** + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. + * Membership names are formatted as + * `projects//locations/global/membership/`. + * + * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkString($var, True); + $this->membership = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php new file mode 100644 index 000000000000..67e0ad776fc6 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php @@ -0,0 +1,208 @@ +google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + */ +class GenerateAttachedClusterInstallManifestRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * + * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attached_cluster_id = ''; + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $platform_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type string $attached_cluster_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * @type string $platform_version + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * + * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAttachedClusterId() + { + return $this->attached_cluster_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * + * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAttachedClusterId($var) + { + GPBUtil::checkString($var, True); + $this->attached_cluster_id = $var; + + return $this; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPlatformVersion() + { + return $this->platform_version; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPlatformVersion($var) + { + GPBUtil::checkString($var, True); + $this->platform_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php new file mode 100644 index 000000000000..558f3fe1e5d2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php @@ -0,0 +1,72 @@ +google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + */ +class GenerateAttachedClusterInstallManifestResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A set of Kubernetes resources (in YAML format) to be applied + * to the cluster to be attached. + * + * Generated from protobuf field string manifest = 1; + */ + protected $manifest = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $manifest + * A set of Kubernetes resources (in YAML format) to be applied + * to the cluster to be attached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * A set of Kubernetes resources (in YAML format) to be applied + * to the cluster to be attached. + * + * Generated from protobuf field string manifest = 1; + * @return string + */ + public function getManifest() + { + return $this->manifest; + } + + /** + * A set of Kubernetes resources (in YAML format) to be applied + * to the cluster to be attached. + * + * Generated from protobuf field string manifest = 1; + * @param string $var + * @return $this + */ + public function setManifest($var) + { + GPBUtil::checkString($var, True); + $this->manifest = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php new file mode 100644 index 000000000000..d3d109e81257 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest + */ +class GenerateAwsAccessTokenRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $aws_cluster = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $aws_cluster + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getAwsCluster() + { + return $this->aws_cluster; + } + + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAwsCluster($var) + { + GPBUtil::checkString($var, True); + $this->aws_cluster = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php new file mode 100644 index 000000000000..35f1695ffc34 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php @@ -0,0 +1,111 @@ +google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse + */ +class GenerateAwsAccessTokenResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access_token = ''; + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expiration_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $access_token + * Output only. Access token to authenticate to k8s api-server. + * @type \Google\Protobuf\Timestamp $expiration_time + * Output only. Timestamp at which the token will expire. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAccessToken() + { + return $this->access_token; + } + + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAccessToken($var) + { + GPBUtil::checkString($var, True); + $this->access_token = $var; + + return $this; + } + + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpirationTime() + { + return $this->expiration_time; + } + + public function hasExpirationTime() + { + return isset($this->expiration_time); + } + + public function clearExpirationTime() + { + unset($this->expiration_time); + } + + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expiration_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php new file mode 100644 index 000000000000..f655c348d217 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest + */ +class GenerateAzureAccessTokenRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $azure_cluster = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $azure_cluster + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getAzureCluster() + { + return $this->azure_cluster; + } + + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAzureCluster($var) + { + GPBUtil::checkString($var, True); + $this->azure_cluster = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php new file mode 100644 index 000000000000..4371394919c5 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php @@ -0,0 +1,111 @@ +google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse + */ +class GenerateAzureAccessTokenResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access_token = ''; + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expiration_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $access_token + * Output only. Access token to authenticate to k8s api-server. + * @type \Google\Protobuf\Timestamp $expiration_time + * Output only. Timestamp at which the token will expire. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAccessToken() + { + return $this->access_token; + } + + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAccessToken($var) + { + GPBUtil::checkString($var, True); + $this->access_token = $var; + + return $this; + } + + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpirationTime() + { + return $this->expiration_time; + } + + public function hasExpirationTime() + { + return isset($this->expiration_time); + } + + public function clearExpirationTime() + { + unset($this->expiration_time); + } + + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expiration_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php new file mode 100644 index 000000000000..3ec2e3c44c68 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAttachedClusterRequest + */ +class GetAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php new file mode 100644 index 000000000000..d8eb050d9aad --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php @@ -0,0 +1,92 @@ +google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest + */ +class GetAttachedServerConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php new file mode 100644 index 000000000000..c1bdee5e88d9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAwsClusterRequest + */ +class GetAwsClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php new file mode 100644 index 000000000000..080416baaf93 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest + */ +class GetAwsNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php new file mode 100644 index 000000000000..e8b728cd3e58 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest + */ +class GetAwsServerConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php new file mode 100644 index 000000000000..87a4874bbe65 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php @@ -0,0 +1,95 @@ +google.cloud.gkemulticloud.v1.GetAzureClientRequest + */ +class GetAzureClientRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php new file mode 100644 index 000000000000..fc806adc7c00 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAzureClusterRequest + */ +class GetAzureClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php new file mode 100644 index 000000000000..feb41baef9dc --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest + */ +class GetAzureNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php new file mode 100644 index 000000000000..c46bc07a1d07 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest + */ +class GetAzureServerConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php new file mode 100644 index 000000000000..8c30d8f35007 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php @@ -0,0 +1,239 @@ +google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest + */ +class ImportAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * If set, only validate the request, but do not actually import the cluster. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. The name of the fleet membership resource to import. + * + * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fleet_membership = ''; + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $platform_version = ''; + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $distribution = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually import the cluster. + * @type string $fleet_membership + * Required. The name of the fleet membership resource to import. + * @type string $platform_version + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @type string $distribution + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually import the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually import the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. The name of the fleet membership resource to import. + * + * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFleetMembership() + { + return $this->fleet_membership; + } + + /** + * Required. The name of the fleet membership resource to import. + * + * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFleetMembership($var) + { + GPBUtil::checkString($var, True); + $this->fleet_membership = $var; + + return $this; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPlatformVersion() + { + return $this->platform_version; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPlatformVersion($var) + { + GPBUtil::checkString($var, True); + $this->platform_version = $var; + + return $this; + } + + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDistribution() + { + return $this->distribution; + } + + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDistribution($var) + { + GPBUtil::checkString($var, True); + $this->distribution = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php new file mode 100644 index 000000000000..32fbfe164090 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php @@ -0,0 +1,179 @@ +google.cloud.gkemulticloud.v1.ListAttachedClustersRequest + */ +class ListAttachedClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php new file mode 100644 index 000000000000..08b8a9bece9f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAttachedClustersResponse + */ +class ListAttachedClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + private $attached_clusters; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedCluster>|\Google\Protobuf\Internal\RepeatedField $attached_clusters + * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources in the specified GCP project and region region. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttachedClusters() + { + return $this->attached_clusters; + } + + /** + * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttachedClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); + $this->attached_clusters = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php new file mode 100644 index 000000000000..fcaa4e64925f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php @@ -0,0 +1,179 @@ +google.cloud.gkemulticloud.v1.ListAwsClustersRequest + */ +class ListAwsClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php new file mode 100644 index 000000000000..ee30c0f40089 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAwsClustersResponse + */ +class ListAwsClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; + */ + private $aws_clusters; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $aws_clusters + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAwsClusters() + { + return $this->aws_clusters; + } + + /** + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAwsClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); + $this->aws_clusters = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php new file mode 100644 index 000000000000..5859e1a2c927 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php @@ -0,0 +1,183 @@ +google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest + */ +class ListAwsNodePoolsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php new file mode 100644 index 000000000000..e6a681467d5a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse + */ +class ListAwsNodePoolsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; + */ + private $aws_node_pools; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $aws_node_pools + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAwsNodePools() + { + return $this->aws_node_pools; + } + + /** + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAwsNodePools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); + $this->aws_node_pools = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php new file mode 100644 index 000000000000..e858bc67dc6b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php @@ -0,0 +1,179 @@ +google.cloud.gkemulticloud.v1.ListAzureClientsRequest + */ +class ListAzureClientsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php new file mode 100644 index 000000000000..6ec3fccc2c48 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAzureClientsResponse + */ +class ListAzureClientsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; + */ + private $azure_clients; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $azure_clients + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAzureClients() + { + return $this->azure_clients; + } + + /** + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAzureClients($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClient::class); + $this->azure_clients = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php new file mode 100644 index 000000000000..a90572b91bd4 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php @@ -0,0 +1,179 @@ +google.cloud.gkemulticloud.v1.ListAzureClustersRequest + */ +class ListAzureClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php new file mode 100644 index 000000000000..a7e8c5a90da8 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAzureClustersResponse + */ +class ListAzureClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; + */ + private $azure_clusters; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $azure_clusters + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAzureClusters() + { + return $this->azure_clusters; + } + + /** + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAzureClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); + $this->azure_clusters = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php new file mode 100644 index 000000000000..6509d98fdacc --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php @@ -0,0 +1,183 @@ +google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest + */ +class ListAzureNodePoolsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php new file mode 100644 index 000000000000..dba3b96d705d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse + */ +class ListAzureNodePoolsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; + */ + private $azure_node_pools; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $azure_node_pools + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAzureNodePools() + { + return $this->azure_node_pools; + } + + /** + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAzureNodePools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); + $this->azure_node_pools = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php new file mode 100644 index 000000000000..422fc56a7d5e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.LoggingComponentConfig + */ +class LoggingComponentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The components to be enabled. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; + */ + private $enable_components; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components + * The components to be enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * The components to be enabled. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnableComponents() + { + return $this->enable_components; + } + + /** + * The components to be enabled. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnableComponents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig\Component::class); + $this->enable_components = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php new file mode 100644 index 000000000000..7bbb2b8b88ac --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php @@ -0,0 +1,64 @@ +google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component + */ +class Component +{ + /** + * No component is specified + * + * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; + */ + const COMPONENT_UNSPECIFIED = 0; + /** + * This indicates that system logging components is enabled. + * + * Generated from protobuf enum SYSTEM_COMPONENTS = 1; + */ + const SYSTEM_COMPONENTS = 1; + /** + * This indicates that user workload logging component is enabled. + * + * Generated from protobuf enum WORKLOADS = 2; + */ + const WORKLOADS = 2; + + private static $valueToName = [ + self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', + self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', + self::WORKLOADS => 'WORKLOADS', + ]; + + 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(Component::class, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig_Component::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php new file mode 100644 index 000000000000..3d7fd5da3767 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.LoggingConfig + */ +class LoggingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The configuration of the logging components; + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; + */ + protected $component_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $component_config + * The configuration of the logging components; + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * The configuration of the logging components; + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; + * @return \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig|null + */ + public function getComponentConfig() + { + return $this->component_config; + } + + public function hasComponentConfig() + { + return isset($this->component_config); + } + + public function clearComponentConfig() + { + unset($this->component_config); + } + + /** + * The configuration of the logging components; + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; + * @param \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $var + * @return $this + */ + public function setComponentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig::class); + $this->component_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php new file mode 100644 index 000000000000..c3f7e469972b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php @@ -0,0 +1,68 @@ +google.cloud.gkemulticloud.v1.ManagedPrometheusConfig + */ +class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enable Managed Collection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php new file mode 100644 index 000000000000..abbd020c984a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.MaxPodsConstraint + */ +class MaxPodsConstraint extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The maximum number of pods to schedule on a single node. + * + * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_pods_per_node = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $max_pods_per_node + * Required. The maximum number of pods to schedule on a single node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The maximum number of pods to schedule on a single node. + * + * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getMaxPodsPerNode() + { + return $this->max_pods_per_node; + } + + /** + * Required. The maximum number of pods to schedule on a single node. + * + * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setMaxPodsPerNode($var) + { + GPBUtil::checkInt64($var); + $this->max_pods_per_node = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php new file mode 100644 index 000000000000..a6b9a2e0a799 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php @@ -0,0 +1,77 @@ +google.cloud.gkemulticloud.v1.MonitoringConfig + */ +class MonitoringConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Google Cloud Managed Service for Prometheus in the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + protected $managed_prometheus_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig $managed_prometheus_config + * Enable Google Cloud Managed Service for Prometheus in the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Enable Google Cloud Managed Service for Prometheus in the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig|null + */ + public function getManagedPrometheusConfig() + { + return $this->managed_prometheus_config; + } + + public function hasManagedPrometheusConfig() + { + return isset($this->managed_prometheus_config); + } + + public function clearManagedPrometheusConfig() + { + unset($this->managed_prometheus_config); + } + + /** + * Enable Google Cloud Managed Service for Prometheus in the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @param \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig $var + * @return $this + */ + public function setManagedPrometheusConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig::class); + $this->managed_prometheus_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php new file mode 100644 index 000000000000..3008c9dd75ef --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php @@ -0,0 +1,135 @@ +google.cloud.gkemulticloud.v1.NodeTaint + */ +class NodeTaint extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Key for the taint. + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $key = ''; + /** + * Required. Value for the taint. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + /** + * Required. The taint effect. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $effect = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Required. Key for the taint. + * @type string $value + * Required. Value for the taint. + * @type int $effect + * Required. The taint effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Key for the taint. + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Required. Key for the taint. + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Required. Value for the taint. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. Value for the taint. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Required. The taint effect. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEffect() + { + return $this->effect; + } + + /** + * Required. The taint effect. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEffect($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\NodeTaint\Effect::class); + $this->effect = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php new file mode 100644 index 000000000000..e91ecf54c3c1 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php @@ -0,0 +1,77 @@ +google.cloud.gkemulticloud.v1.NodeTaint.Effect + */ +class Effect +{ + /** + * Not set. + * + * Generated from protobuf enum EFFECT_UNSPECIFIED = 0; + */ + const EFFECT_UNSPECIFIED = 0; + /** + * Do not allow new pods to schedule onto the node unless they tolerate the + * taint, but allow all pods submitted to Kubelet without going through the + * scheduler to start, and allow all already-running pods to continue + * running. Enforced by the scheduler. + * + * Generated from protobuf enum NO_SCHEDULE = 1; + */ + const NO_SCHEDULE = 1; + /** + * Like TaintEffectNoSchedule, but the scheduler tries not to schedule + * new pods onto the node, rather than prohibiting new pods from scheduling + * onto the node entirely. Enforced by the scheduler. + * + * Generated from protobuf enum PREFER_NO_SCHEDULE = 2; + */ + const PREFER_NO_SCHEDULE = 2; + /** + * Evict any already-running pods that do not tolerate the taint. + * Currently enforced by NodeController. + * + * Generated from protobuf enum NO_EXECUTE = 3; + */ + const NO_EXECUTE = 3; + + private static $valueToName = [ + self::EFFECT_UNSPECIFIED => 'EFFECT_UNSPECIFIED', + self::NO_SCHEDULE => 'NO_SCHEDULE', + self::PREFER_NO_SCHEDULE => 'PREFER_NO_SCHEDULE', + self::NO_EXECUTE => 'NO_EXECUTE', + ]; + + 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(Effect::class, \Google\Cloud\GkeMultiCloud\V1\NodeTaint_Effect::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php new file mode 100644 index 000000000000..efd070529c2b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time at which this operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this operation was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. The name of the resource associated to this operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_detail = ''; + /** + * Output only. Human-readable status of any error that occurred during the + * operation. + * + * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_detail = ''; + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time at which this operation was completed. + * @type string $target + * Output only. The name of the resource associated to this operation. + * @type string $status_detail + * Output only. Human-readable status of the operation, if any. + * @type string $error_detail + * Output only. Human-readable status of any error that occurred during the + * operation. + * @type string $verb + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * @type bool $requested_cancellation + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time at which this operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 at which this operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 at which this operation was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. The time at which this operation was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. The name of the resource associated to this operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. The name of the resource associated to this operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStatusDetail() + { + return $this->status_detail; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStatusDetail($var) + { + GPBUtil::checkString($var, True); + $this->status_detail = $var; + + return $this; + } + + /** + * Output only. Human-readable status of any error that occurred during the + * operation. + * + * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getErrorDetail() + { + return $this->error_detail; + } + + /** + * Output only. Human-readable status of any error that occurred during the + * operation. + * + * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setErrorDetail($var) + { + GPBUtil::checkString($var, True); + $this->error_detail = $var; + + return $this; + } + + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php new file mode 100644 index 000000000000..c78be2466d12 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php @@ -0,0 +1,113 @@ +google.cloud.gkemulticloud.v1.ReplicaPlacement + */ +class ReplicaPlacement extends \Google\Protobuf\Internal\Message +{ + /** + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. + * + * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subnet_id = ''; + /** + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. + * + * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_availability_zone = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $subnet_id + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. + * @type string $azure_availability_zone + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. + * + * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSubnetId() + { + return $this->subnet_id; + } + + /** + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. + * + * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->subnet_id = $var; + + return $this; + } + + /** + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. + * + * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureAvailabilityZone() + { + return $this->azure_availability_zone; + } + + /** + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. + * + * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureAvailabilityZone($var) + { + GPBUtil::checkString($var, True); + $this->azure_availability_zone = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php new file mode 100644 index 000000000000..dc288355a2c5 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php @@ -0,0 +1,199 @@ +google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest + */ +class UpdateAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attached_cluster = null; + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $attached_cluster + * Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * @type bool $validate_only + * If set, only validate the request, but do not actually update the cluster. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AttachedCluster|null + */ + public function getAttachedCluster() + { + return $this->attached_cluster; + } + + public function hasAttachedCluster() + { + return isset($this->attached_cluster); + } + + public function clearAttachedCluster() + { + unset($this->attached_cluster); + } + + /** + * Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $var + * @return $this + */ + public function setAttachedCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); + $this->attached_cluster = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php new file mode 100644 index 000000000000..56f049ee89a7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php @@ -0,0 +1,259 @@ +google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest + */ +class UpdateAwsClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_cluster = null; + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * @type bool $validate_only + * If set, only validate the request, but do not actually update the cluster. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null + */ + public function getAwsCluster() + { + return $this->aws_cluster; + } + + public function hasAwsCluster() + { + return isset($this->aws_cluster); + } + + public function clearAwsCluster() + { + unset($this->aws_cluster); + } + + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var + * @return $this + */ + public function setAwsCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); + $this->aws_cluster = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php new file mode 100644 index 000000000000..bd09a5cc4266 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php @@ -0,0 +1,255 @@ +google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest + */ +class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_node_pool = null; + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * @type bool $validate_only + * If set, only validate the request, but don't actually update the node pool. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null + */ + public function getAwsNodePool() + { + return $this->aws_node_pool; + } + + public function hasAwsNodePool() + { + return isset($this->aws_node_pool); + } + + public function clearAwsNodePool() + { + unset($this->aws_node_pool); + } + + /** + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var + * @return $this + */ + public function setAwsNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); + $this->aws_node_pool = $var; + + return $this; + } + + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php new file mode 100644 index 000000000000..9c178a6e74a0 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php @@ -0,0 +1,219 @@ +google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest + */ +class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_cluster = null; + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * @type bool $validate_only + * If set, only validate the request, but do not actually update the cluster. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null + */ + public function getAzureCluster() + { + return $this->azure_cluster; + } + + public function hasAzureCluster() + { + return isset($this->azure_cluster); + } + + public function clearAzureCluster() + { + unset($this->azure_cluster); + } + + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var + * @return $this + */ + public function setAzureCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); + $this->azure_cluster = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php new file mode 100644 index 000000000000..4124d7d763ad --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php @@ -0,0 +1,187 @@ +google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest + */ +class UpdateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_node_pool = null; + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * @type bool $validate_only + * If set, only validate the request, but don't actually update the node pool. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null + */ + public function getAzureNodePool() + { + return $this->azure_node_pool; + } + + public function hasAzureNodePool() + { + return isset($this->azure_node_pool); + } + + public function clearAzureNodePool() + { + unset($this->azure_node_pool); + } + + /** + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var + * @return $this + */ + public function setAzureNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); + $this->azure_node_pool = $var; + + return $this; + } + + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php new file mode 100644 index 000000000000..261f7d8542a3 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php @@ -0,0 +1,139 @@ +google.cloud.gkemulticloud.v1.WorkloadIdentityConfig + */ +class WorkloadIdentityConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The OIDC issuer URL for this cluster. + * + * Generated from protobuf field string issuer_uri = 1; + */ + protected $issuer_uri = ''; + /** + * The Workload Identity Pool associated to the cluster. + * + * Generated from protobuf field string workload_pool = 2; + */ + protected $workload_pool = ''; + /** + * The ID of the OIDC Identity Provider (IdP) associated to the Workload + * Identity Pool. + * + * Generated from protobuf field string identity_provider = 3; + */ + protected $identity_provider = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issuer_uri + * The OIDC issuer URL for this cluster. + * @type string $workload_pool + * The Workload Identity Pool associated to the cluster. + * @type string $identity_provider + * The ID of the OIDC Identity Provider (IdP) associated to the Workload + * Identity Pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * The OIDC issuer URL for this cluster. + * + * Generated from protobuf field string issuer_uri = 1; + * @return string + */ + public function getIssuerUri() + { + return $this->issuer_uri; + } + + /** + * The OIDC issuer URL for this cluster. + * + * Generated from protobuf field string issuer_uri = 1; + * @param string $var + * @return $this + */ + public function setIssuerUri($var) + { + GPBUtil::checkString($var, True); + $this->issuer_uri = $var; + + return $this; + } + + /** + * The Workload Identity Pool associated to the cluster. + * + * Generated from protobuf field string workload_pool = 2; + * @return string + */ + public function getWorkloadPool() + { + return $this->workload_pool; + } + + /** + * The Workload Identity Pool associated to the cluster. + * + * Generated from protobuf field string workload_pool = 2; + * @param string $var + * @return $this + */ + public function setWorkloadPool($var) + { + GPBUtil::checkString($var, True); + $this->workload_pool = $var; + + return $this; + } + + /** + * The ID of the OIDC Identity Provider (IdP) associated to the Workload + * Identity Pool. + * + * Generated from protobuf field string identity_provider = 3; + * @return string + */ + public function getIdentityProvider() + { + return $this->identity_provider; + } + + /** + * The ID of the OIDC Identity Provider (IdP) associated to the Workload + * Identity Pool. + * + * Generated from protobuf field string identity_provider = 3; + * @param string $var + * @return $this + */ + public function setIdentityProvider($var) + { + GPBUtil::checkString($var, True); + $this->identity_provider = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php new file mode 100644 index 000000000000..8cd0df097d13 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php @@ -0,0 +1,144 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AttachedClustersClient::locationName()} for help formatting this field. + * @param string $attachedClusterPlatformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @param string $attachedClusterDistribution The Kubernetes distribution of the underlying attached cluster. + * + * Supported values: ["eks", "aks"]. + * @param string $attachedClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + * @param string $attachedClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_attached_cluster_sample( + string $formattedParent, + string $attachedClusterPlatformVersion, + string $attachedClusterDistribution, + string $attachedClusterFleetProject, + string $attachedClusterId +): void { + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedClusterFleet = (new Fleet()) + ->setProject($attachedClusterFleetProject); + $attachedCluster = (new AttachedCluster()) + ->setOidcConfig($attachedClusterOidcConfig) + ->setPlatformVersion($attachedClusterPlatformVersion) + ->setDistribution($attachedClusterDistribution) + ->setFleet($attachedClusterFleet); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $attachedClustersClient->createAttachedCluster( + $formattedParent, + $attachedCluster, + $attachedClusterId + ); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $attachedClusterPlatformVersion = '[PLATFORM_VERSION]'; + $attachedClusterDistribution = '[DISTRIBUTION]'; + $attachedClusterFleetProject = '[PROJECT]'; + $attachedClusterId = '[ATTACHED_CLUSTER_ID]'; + + create_attached_cluster_sample( + $formattedParent, + $attachedClusterPlatformVersion, + $attachedClusterDistribution, + $attachedClusterFleetProject, + $attachedClusterId + ); +} +// [END gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php new file mode 100644 index 000000000000..b2e90f5c8524 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php @@ -0,0 +1,91 @@ +/locations//attachedClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AttachedClustersClient::attachedClusterName()} for help formatting this field. + */ +function delete_attached_cluster_sample(string $formattedName): void +{ + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $attachedClustersClient->deleteAttachedCluster($formattedName); + $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 = AttachedClustersClient::attachedClusterName( + '[PROJECT]', + '[LOCATION]', + '[ATTACHED_CLUSTER]' + ); + + delete_attached_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php new file mode 100644 index 000000000000..42cfd36e46f2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php @@ -0,0 +1,106 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AttachedClustersClient::locationName()} for help formatting this field. + * @param string $attachedClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * @param string $platformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + */ +function generate_attached_cluster_install_manifest_sample( + string $formattedParent, + string $attachedClusterId, + string $platformVersion +): void { + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var GenerateAttachedClusterInstallManifestResponse $response */ + $response = $attachedClustersClient->generateAttachedClusterInstallManifest( + $formattedParent, + $attachedClusterId, + $platformVersion + ); + 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 +{ + $formattedParent = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $attachedClusterId = '[ATTACHED_CLUSTER_ID]'; + $platformVersion = '[PLATFORM_VERSION]'; + + generate_attached_cluster_install_manifest_sample( + $formattedParent, + $attachedClusterId, + $platformVersion + ); +} +// [END gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php new file mode 100644 index 000000000000..75db7d823f01 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php @@ -0,0 +1,79 @@ +/locations//attachedClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AttachedClustersClient::attachedClusterName()} for help formatting this field. + */ +function get_attached_cluster_sample(string $formattedName): void +{ + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AttachedCluster $response */ + $response = $attachedClustersClient->getAttachedCluster($formattedName); + 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 = AttachedClustersClient::attachedClusterName( + '[PROJECT]', + '[LOCATION]', + '[ATTACHED_CLUSTER]' + ); + + get_attached_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php new file mode 100644 index 000000000000..44cc44fa2497 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php @@ -0,0 +1,75 @@ +/locations//attachedServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AttachedClustersClient::attachedServerConfigName()} for help formatting this field. + */ +function get_attached_server_config_sample(string $formattedName): void +{ + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AttachedServerConfig $response */ + $response = $attachedClustersClient->getAttachedServerConfig($formattedName); + 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 = AttachedClustersClient::attachedServerConfigName('[PROJECT]', '[LOCATION]'); + + get_attached_server_config_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php new file mode 100644 index 000000000000..59c385b8c57e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php @@ -0,0 +1,115 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AttachedClustersClient::locationName()} for help formatting this field. + * @param string $fleetMembership The name of the fleet membership resource to import. + * @param string $platformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @param string $distribution The Kubernetes distribution of the underlying attached cluster. + * + * Supported values: ["eks", "aks"]. + */ +function import_attached_cluster_sample( + string $formattedParent, + string $fleetMembership, + string $platformVersion, + string $distribution +): void { + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $attachedClustersClient->importAttachedCluster( + $formattedParent, + $fleetMembership, + $platformVersion, + $distribution + ); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $fleetMembership = '[FLEET_MEMBERSHIP]'; + $platformVersion = '[PLATFORM_VERSION]'; + $distribution = '[DISTRIBUTION]'; + + import_attached_cluster_sample($formattedParent, $fleetMembership, $platformVersion, $distribution); +} +// [END gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php new file mode 100644 index 000000000000..5ced1a731838 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php @@ -0,0 +1,78 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AttachedClustersClient::locationName()} for help formatting this field. + */ +function list_attached_clusters_sample(string $formattedParent): void +{ + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $attachedClustersClient->listAttachedClusters($formattedParent); + + /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); + + list_attached_clusters_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php new file mode 100644 index 000000000000..0675297730e3 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php @@ -0,0 +1,113 @@ +`. + */ +function update_attached_cluster_sample( + string $attachedClusterPlatformVersion, + string $attachedClusterDistribution, + string $attachedClusterFleetProject +): void { + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedClusterFleet = (new Fleet()) + ->setProject($attachedClusterFleetProject); + $attachedCluster = (new AttachedCluster()) + ->setOidcConfig($attachedClusterOidcConfig) + ->setPlatformVersion($attachedClusterPlatformVersion) + ->setDistribution($attachedClusterDistribution) + ->setFleet($attachedClusterFleet); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AttachedCluster $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 +{ + $attachedClusterPlatformVersion = '[PLATFORM_VERSION]'; + $attachedClusterDistribution = '[DISTRIBUTION]'; + $attachedClusterFleetProject = '[PROJECT]'; + + update_attached_cluster_sample( + $attachedClusterPlatformVersion, + $attachedClusterDistribution, + $attachedClusterFleetProject + ); +} +// [END gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php new file mode 100644 index 000000000000..499c96199bd4 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php @@ -0,0 +1,224 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::locationName()} for help formatting this field. + * @param string $awsClusterNetworkingVpcId The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * + * This field cannot be changed after creation. + * @param string $awsClusterNetworkingPodAddressCidrBlocksElement All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * @param string $awsClusterNetworkingServiceAddressCidrBlocksElement All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * @param string $awsClusterAwsRegion The AWS region where the cluster runs. + * + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * @param string $awsClusterControlPlaneVersion The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * @param string $awsClusterControlPlaneSubnetIdsElement The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * @param string $awsClusterControlPlaneIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * @param string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt cluster secrets. + * @param string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * @param string $awsClusterControlPlaneConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. + * @param string $awsClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. + * @param string $awsClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + * @param string $awsClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_aws_cluster_sample( + string $formattedParent, + string $awsClusterNetworkingVpcId, + string $awsClusterNetworkingPodAddressCidrBlocksElement, + string $awsClusterNetworkingServiceAddressCidrBlocksElement, + string $awsClusterAwsRegion, + string $awsClusterControlPlaneVersion, + string $awsClusterControlPlaneSubnetIdsElement, + string $awsClusterControlPlaneIamInstanceProfile, + string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, + string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, + string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, + string $awsClusterAuthorizationAdminUsersUsername, + string $awsClusterFleetProject, + string $awsClusterId +): void { + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $awsClusterNetworkingPodAddressCidrBlocks = [$awsClusterNetworkingPodAddressCidrBlocksElement,]; + $awsClusterNetworkingServiceAddressCidrBlocks = [ + $awsClusterNetworkingServiceAddressCidrBlocksElement, + ]; + $awsClusterNetworking = (new AwsClusterNetworking()) + ->setVpcId($awsClusterNetworkingVpcId) + ->setPodAddressCidrBlocks($awsClusterNetworkingPodAddressCidrBlocks) + ->setServiceAddressCidrBlocks($awsClusterNetworkingServiceAddressCidrBlocks); + $awsClusterControlPlaneSubnetIds = [$awsClusterControlPlaneSubnetIdsElement,]; + $awsClusterControlPlaneDatabaseEncryption = (new AwsDatabaseEncryption()) + ->setKmsKeyArn($awsClusterControlPlaneDatabaseEncryptionKmsKeyArn); + $awsClusterControlPlaneAwsServicesAuthentication = (new AwsServicesAuthentication()) + ->setRoleArn($awsClusterControlPlaneAwsServicesAuthenticationRoleArn); + $awsClusterControlPlaneConfigEncryption = (new AwsConfigEncryption()) + ->setKmsKeyArn($awsClusterControlPlaneConfigEncryptionKmsKeyArn); + $awsClusterControlPlane = (new AwsControlPlane()) + ->setVersion($awsClusterControlPlaneVersion) + ->setSubnetIds($awsClusterControlPlaneSubnetIds) + ->setIamInstanceProfile($awsClusterControlPlaneIamInstanceProfile) + ->setDatabaseEncryption($awsClusterControlPlaneDatabaseEncryption) + ->setAwsServicesAuthentication($awsClusterControlPlaneAwsServicesAuthentication) + ->setConfigEncryption($awsClusterControlPlaneConfigEncryption); + $awsClusterUser = (new AwsClusterUser()) + ->setUsername($awsClusterAuthorizationAdminUsersUsername); + $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; + $awsClusterAuthorization = (new AwsAuthorization()) + ->setAdminUsers($awsClusterAuthorizationAdminUsers); + $awsClusterFleet = (new Fleet()) + ->setProject($awsClusterFleetProject); + $awsCluster = (new AwsCluster()) + ->setNetworking($awsClusterNetworking) + ->setAwsRegion($awsClusterAwsRegion) + ->setControlPlane($awsClusterControlPlane) + ->setAuthorization($awsClusterAuthorization) + ->setFleet($awsClusterFleet); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AwsCluster $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 = AwsClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $awsClusterNetworkingVpcId = '[VPC_ID]'; + $awsClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; + $awsClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; + $awsClusterAwsRegion = '[AWS_REGION]'; + $awsClusterControlPlaneVersion = '[VERSION]'; + $awsClusterControlPlaneSubnetIdsElement = '[SUBNET_IDS]'; + $awsClusterControlPlaneIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; + $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; + $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $awsClusterFleetProject = '[PROJECT]'; + $awsClusterId = '[AWS_CLUSTER_ID]'; + + create_aws_cluster_sample( + $formattedParent, + $awsClusterNetworkingVpcId, + $awsClusterNetworkingPodAddressCidrBlocksElement, + $awsClusterNetworkingServiceAddressCidrBlocksElement, + $awsClusterAwsRegion, + $awsClusterControlPlaneVersion, + $awsClusterControlPlaneSubnetIdsElement, + $awsClusterControlPlaneIamInstanceProfile, + $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, + $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, + $awsClusterControlPlaneConfigEncryptionKmsKeyArn, + $awsClusterAuthorizationAdminUsersUsername, + $awsClusterFleetProject, + $awsClusterId + ); +} +// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php new file mode 100644 index 000000000000..b97d31d03933 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php @@ -0,0 +1,163 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + * @param string $awsNodePoolVersion The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * @param string $awsNodePoolConfigConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. + * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @param int $awsNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * @param string $awsNodePoolSubnetId The subnet where the node pool node run. + * @param int $awsNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. + * @param string $awsNodePoolId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_aws_node_pool_sample( + string $formattedParent, + string $awsNodePoolVersion, + string $awsNodePoolConfigIamInstanceProfile, + string $awsNodePoolConfigConfigEncryptionKmsKeyArn, + int $awsNodePoolAutoscalingMinNodeCount, + int $awsNodePoolAutoscalingMaxNodeCount, + string $awsNodePoolSubnetId, + int $awsNodePoolMaxPodsConstraintMaxPodsPerNode, + string $awsNodePoolId +): void { + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $awsNodePoolConfigConfigEncryption = (new AwsConfigEncryption()) + ->setKmsKeyArn($awsNodePoolConfigConfigEncryptionKmsKeyArn); + $awsNodePoolConfig = (new AwsNodeConfig()) + ->setIamInstanceProfile($awsNodePoolConfigIamInstanceProfile) + ->setConfigEncryption($awsNodePoolConfigConfigEncryption); + $awsNodePoolAutoscaling = (new AwsNodePoolAutoscaling()) + ->setMinNodeCount($awsNodePoolAutoscalingMinNodeCount) + ->setMaxNodeCount($awsNodePoolAutoscalingMaxNodeCount); + $awsNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) + ->setMaxPodsPerNode($awsNodePoolMaxPodsConstraintMaxPodsPerNode); + $awsNodePool = (new AwsNodePool()) + ->setVersion($awsNodePoolVersion) + ->setConfig($awsNodePoolConfig) + ->setAutoscaling($awsNodePoolAutoscaling) + ->setSubnetId($awsNodePoolSubnetId) + ->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AwsNodePool $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $awsNodePoolVersion = '[VERSION]'; + $awsNodePoolConfigIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; + $awsNodePoolConfigConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsNodePoolAutoscalingMinNodeCount = 0; + $awsNodePoolAutoscalingMaxNodeCount = 0; + $awsNodePoolSubnetId = '[SUBNET_ID]'; + $awsNodePoolMaxPodsConstraintMaxPodsPerNode = 0; + $awsNodePoolId = '[AWS_NODE_POOL_ID]'; + + create_aws_node_pool_sample( + $formattedParent, + $awsNodePoolVersion, + $awsNodePoolConfigIamInstanceProfile, + $awsNodePoolConfigConfigEncryptionKmsKeyArn, + $awsNodePoolAutoscalingMinNodeCount, + $awsNodePoolAutoscalingMaxNodeCount, + $awsNodePoolSubnetId, + $awsNodePoolMaxPodsConstraintMaxPodsPerNode, + $awsNodePoolId + ); +} +// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php new file mode 100644 index 000000000000..90d9d3279498 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php @@ -0,0 +1,90 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + */ +function delete_aws_cluster_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->deleteAwsCluster($formattedName); + $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + + delete_aws_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php new file mode 100644 index 000000000000..79fe862ddb01 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php @@ -0,0 +1,92 @@ +/locations//awsClusters//awsNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsNodePoolName()} for help formatting this field. + */ +function delete_aws_node_pool_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->deleteAwsNodePool($formattedName); + $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 = AwsClustersClient::awsNodePoolName( + '[PROJECT]', + '[LOCATION]', + '[AWS_CLUSTER]', + '[AWS_NODE_POOL]' + ); + + delete_aws_node_pool_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php new file mode 100644 index 000000000000..107c79ee7022 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php @@ -0,0 +1,79 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + */ +function generate_aws_access_token_sample(string $formattedAwsCluster): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var GenerateAwsAccessTokenResponse $response */ + $response = $awsClustersClient->generateAwsAccessToken($formattedAwsCluster); + 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 +{ + $formattedAwsCluster = AwsClustersClient::awsClusterName( + '[PROJECT]', + '[LOCATION]', + '[AWS_CLUSTER]' + ); + + generate_aws_access_token_sample($formattedAwsCluster); +} +// [END gkemulticloud_v1_generated_AwsClusters_GenerateAwsAccessToken_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php new file mode 100644 index 000000000000..8da5624ce66e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php @@ -0,0 +1,75 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + */ +function get_aws_cluster_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AwsCluster $response */ + $response = $awsClustersClient->getAwsCluster($formattedName); + 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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + + get_aws_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_GetAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php new file mode 100644 index 000000000000..fb17d2ab126c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php @@ -0,0 +1,80 @@ +/locations//awsClusters//awsNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsNodePoolName()} for help formatting this field. + */ +function get_aws_node_pool_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AwsNodePool $response */ + $response = $awsClustersClient->getAwsNodePool($formattedName); + 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 = AwsClustersClient::awsNodePoolName( + '[PROJECT]', + '[LOCATION]', + '[AWS_CLUSTER]', + '[AWS_NODE_POOL]' + ); + + get_aws_node_pool_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_GetAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php new file mode 100644 index 000000000000..9db146ac3794 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php @@ -0,0 +1,75 @@ +/locations//awsServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsServerConfigName()} for help formatting this field. + */ +function get_aws_server_config_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AwsServerConfig $response */ + $response = $awsClustersClient->getAwsServerConfig($formattedName); + 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 = AwsClustersClient::awsServerConfigName('[PROJECT]', '[LOCATION]'); + + get_aws_server_config_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_GetAwsServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php new file mode 100644 index 000000000000..ee79000863e6 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php @@ -0,0 +1,78 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AwsClustersClient::locationName()} for help formatting this field. + */ +function list_aws_clusters_sample(string $formattedParent): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $awsClustersClient->listAwsClusters($formattedParent); + + /** @var AwsCluster $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 = AwsClustersClient::locationName('[PROJECT]', '[LOCATION]'); + + list_aws_clusters_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AwsClusters_ListAwsClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php new file mode 100644 index 000000000000..0da606e94859 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php @@ -0,0 +1,80 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + */ +function list_aws_node_pools_sample(string $formattedParent): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $awsClustersClient->listAwsNodePools($formattedParent); + + /** @var AwsNodePool $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + + list_aws_node_pools_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AwsClusters_ListAwsNodePools_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php new file mode 100644 index 000000000000..ee96b446dede --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php @@ -0,0 +1,197 @@ +`. + */ +function update_aws_cluster_sample( + string $awsClusterNetworkingVpcId, + string $awsClusterNetworkingPodAddressCidrBlocksElement, + string $awsClusterNetworkingServiceAddressCidrBlocksElement, + string $awsClusterAwsRegion, + string $awsClusterControlPlaneVersion, + string $awsClusterControlPlaneSubnetIdsElement, + string $awsClusterControlPlaneIamInstanceProfile, + string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, + string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, + string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, + string $awsClusterAuthorizationAdminUsersUsername, + string $awsClusterFleetProject +): void { + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $awsClusterNetworkingPodAddressCidrBlocks = [$awsClusterNetworkingPodAddressCidrBlocksElement,]; + $awsClusterNetworkingServiceAddressCidrBlocks = [ + $awsClusterNetworkingServiceAddressCidrBlocksElement, + ]; + $awsClusterNetworking = (new AwsClusterNetworking()) + ->setVpcId($awsClusterNetworkingVpcId) + ->setPodAddressCidrBlocks($awsClusterNetworkingPodAddressCidrBlocks) + ->setServiceAddressCidrBlocks($awsClusterNetworkingServiceAddressCidrBlocks); + $awsClusterControlPlaneSubnetIds = [$awsClusterControlPlaneSubnetIdsElement,]; + $awsClusterControlPlaneDatabaseEncryption = (new AwsDatabaseEncryption()) + ->setKmsKeyArn($awsClusterControlPlaneDatabaseEncryptionKmsKeyArn); + $awsClusterControlPlaneAwsServicesAuthentication = (new AwsServicesAuthentication()) + ->setRoleArn($awsClusterControlPlaneAwsServicesAuthenticationRoleArn); + $awsClusterControlPlaneConfigEncryption = (new AwsConfigEncryption()) + ->setKmsKeyArn($awsClusterControlPlaneConfigEncryptionKmsKeyArn); + $awsClusterControlPlane = (new AwsControlPlane()) + ->setVersion($awsClusterControlPlaneVersion) + ->setSubnetIds($awsClusterControlPlaneSubnetIds) + ->setIamInstanceProfile($awsClusterControlPlaneIamInstanceProfile) + ->setDatabaseEncryption($awsClusterControlPlaneDatabaseEncryption) + ->setAwsServicesAuthentication($awsClusterControlPlaneAwsServicesAuthentication) + ->setConfigEncryption($awsClusterControlPlaneConfigEncryption); + $awsClusterUser = (new AwsClusterUser()) + ->setUsername($awsClusterAuthorizationAdminUsersUsername); + $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; + $awsClusterAuthorization = (new AwsAuthorization()) + ->setAdminUsers($awsClusterAuthorizationAdminUsers); + $awsClusterFleet = (new Fleet()) + ->setProject($awsClusterFleetProject); + $awsCluster = (new AwsCluster()) + ->setNetworking($awsClusterNetworking) + ->setAwsRegion($awsClusterAwsRegion) + ->setControlPlane($awsClusterControlPlane) + ->setAuthorization($awsClusterAuthorization) + ->setFleet($awsClusterFleet); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AwsCluster $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 +{ + $awsClusterNetworkingVpcId = '[VPC_ID]'; + $awsClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; + $awsClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; + $awsClusterAwsRegion = '[AWS_REGION]'; + $awsClusterControlPlaneVersion = '[VERSION]'; + $awsClusterControlPlaneSubnetIdsElement = '[SUBNET_IDS]'; + $awsClusterControlPlaneIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; + $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; + $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $awsClusterFleetProject = '[PROJECT]'; + + update_aws_cluster_sample( + $awsClusterNetworkingVpcId, + $awsClusterNetworkingPodAddressCidrBlocksElement, + $awsClusterNetworkingServiceAddressCidrBlocksElement, + $awsClusterAwsRegion, + $awsClusterControlPlaneVersion, + $awsClusterControlPlaneSubnetIdsElement, + $awsClusterControlPlaneIamInstanceProfile, + $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, + $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, + $awsClusterControlPlaneConfigEncryptionKmsKeyArn, + $awsClusterAuthorizationAdminUsersUsername, + $awsClusterFleetProject + ); +} +// [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php new file mode 100644 index 000000000000..e17d2dfdf42c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php @@ -0,0 +1,136 @@ +setKmsKeyArn($awsNodePoolConfigConfigEncryptionKmsKeyArn); + $awsNodePoolConfig = (new AwsNodeConfig()) + ->setIamInstanceProfile($awsNodePoolConfigIamInstanceProfile) + ->setConfigEncryption($awsNodePoolConfigConfigEncryption); + $awsNodePoolAutoscaling = (new AwsNodePoolAutoscaling()) + ->setMinNodeCount($awsNodePoolAutoscalingMinNodeCount) + ->setMaxNodeCount($awsNodePoolAutoscalingMaxNodeCount); + $awsNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) + ->setMaxPodsPerNode($awsNodePoolMaxPodsConstraintMaxPodsPerNode); + $awsNodePool = (new AwsNodePool()) + ->setVersion($awsNodePoolVersion) + ->setConfig($awsNodePoolConfig) + ->setAutoscaling($awsNodePoolAutoscaling) + ->setSubnetId($awsNodePoolSubnetId) + ->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AwsNodePool $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 +{ + $awsNodePoolVersion = '[VERSION]'; + $awsNodePoolConfigIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; + $awsNodePoolConfigConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsNodePoolAutoscalingMinNodeCount = 0; + $awsNodePoolAutoscalingMaxNodeCount = 0; + $awsNodePoolSubnetId = '[SUBNET_ID]'; + $awsNodePoolMaxPodsConstraintMaxPodsPerNode = 0; + + update_aws_node_pool_sample( + $awsNodePoolVersion, + $awsNodePoolConfigIamInstanceProfile, + $awsNodePoolConfigConfigEncryptionKmsKeyArn, + $awsNodePoolAutoscalingMinNodeCount, + $awsNodePoolAutoscalingMaxNodeCount, + $awsNodePoolSubnetId, + $awsNodePoolMaxPodsConstraintMaxPodsPerNode + ); +} +// [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php new file mode 100644 index 000000000000..b1add7f7bbdd --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php @@ -0,0 +1,122 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::locationName()} for help formatting this field. + * @param string $azureClientTenantId The Azure Active Directory Tenant ID. + * @param string $azureClientApplicationId The Azure Active Directory Application ID. + * @param string $azureClientId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_azure_client_sample( + string $formattedParent, + string $azureClientTenantId, + string $azureClientApplicationId, + string $azureClientId +): void { + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $azureClient = (new AzureClient()) + ->setTenantId($azureClientTenantId) + ->setApplicationId($azureClientApplicationId); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureClient $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $azureClientTenantId = '[TENANT_ID]'; + $azureClientApplicationId = '[APPLICATION_ID]'; + $azureClientId = '[AZURE_CLIENT_ID]'; + + create_azure_client_sample( + $formattedParent, + $azureClientTenantId, + $azureClientApplicationId, + $azureClientId + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php new file mode 100644 index 000000000000..54d10e1350d5 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php @@ -0,0 +1,238 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::locationName()} for help formatting this field. + * @param string $azureClusterAzureRegion The Azure region where the cluster runs. + * + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * @param string $azureClusterResourceGroupId The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * @param string $azureClusterAzureClient Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * + * This field cannot be changed after creation. + * @param string $azureClusterNetworkingPodAddressCidrBlocksElement The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * + * This field cannot be changed after creation. + * @param string $azureClusterNetworkingServiceAddressCidrBlocksElement The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * + * This field cannot be changed after creating a cluster. + * @param string $azureClusterControlPlaneVersion The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. + * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + * @param string $azureClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_azure_cluster_sample( + string $formattedParent, + string $azureClusterAzureRegion, + string $azureClusterResourceGroupId, + string $azureClusterAzureClient, + string $azureClusterNetworkingVirtualNetworkId, + string $azureClusterNetworkingPodAddressCidrBlocksElement, + string $azureClusterNetworkingServiceAddressCidrBlocksElement, + string $azureClusterControlPlaneVersion, + string $azureClusterControlPlaneSshConfigAuthorizedKey, + string $azureClusterAuthorizationAdminUsersUsername, + string $azureClusterFleetProject, + string $azureClusterId +): void { + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $azureClusterNetworkingPodAddressCidrBlocks = [ + $azureClusterNetworkingPodAddressCidrBlocksElement, + ]; + $azureClusterNetworkingServiceAddressCidrBlocks = [ + $azureClusterNetworkingServiceAddressCidrBlocksElement, + ]; + $azureClusterNetworking = (new AzureClusterNetworking()) + ->setVirtualNetworkId($azureClusterNetworkingVirtualNetworkId) + ->setPodAddressCidrBlocks($azureClusterNetworkingPodAddressCidrBlocks) + ->setServiceAddressCidrBlocks($azureClusterNetworkingServiceAddressCidrBlocks); + $azureClusterControlPlaneSshConfig = (new AzureSshConfig()) + ->setAuthorizedKey($azureClusterControlPlaneSshConfigAuthorizedKey); + $azureClusterControlPlane = (new AzureControlPlane()) + ->setVersion($azureClusterControlPlaneVersion) + ->setSshConfig($azureClusterControlPlaneSshConfig); + $azureClusterUser = (new AzureClusterUser()) + ->setUsername($azureClusterAuthorizationAdminUsersUsername); + $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; + $azureClusterAuthorization = (new AzureAuthorization()) + ->setAdminUsers($azureClusterAuthorizationAdminUsers); + $azureClusterFleet = (new Fleet()) + ->setProject($azureClusterFleetProject); + $azureCluster = (new AzureCluster()) + ->setAzureRegion($azureClusterAzureRegion) + ->setResourceGroupId($azureClusterResourceGroupId) + ->setAzureClient($azureClusterAzureClient) + ->setNetworking($azureClusterNetworking) + ->setControlPlane($azureClusterControlPlane) + ->setAuthorization($azureClusterAuthorization) + ->setFleet($azureClusterFleet); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->createAzureCluster( + $formattedParent, + $azureCluster, + $azureClusterId + ); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureCluster $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $azureClusterAzureRegion = '[AZURE_REGION]'; + $azureClusterResourceGroupId = '[RESOURCE_GROUP_ID]'; + $azureClusterAzureClient = '[AZURE_CLIENT]'; + $azureClusterNetworkingVirtualNetworkId = '[VIRTUAL_NETWORK_ID]'; + $azureClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; + $azureClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; + $azureClusterControlPlaneVersion = '[VERSION]'; + $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; + $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $azureClusterFleetProject = '[PROJECT]'; + $azureClusterId = '[AZURE_CLUSTER_ID]'; + + create_azure_cluster_sample( + $formattedParent, + $azureClusterAzureRegion, + $azureClusterResourceGroupId, + $azureClusterAzureClient, + $azureClusterNetworkingVirtualNetworkId, + $azureClusterNetworkingPodAddressCidrBlocksElement, + $azureClusterNetworkingServiceAddressCidrBlocksElement, + $azureClusterControlPlaneVersion, + $azureClusterControlPlaneSshConfigAuthorizedKey, + $azureClusterAuthorizationAdminUsersUsername, + $azureClusterFleetProject, + $azureClusterId + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php new file mode 100644 index 000000000000..037860627c4f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php @@ -0,0 +1,164 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + * @param string $azureNodePoolVersion The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * @param string $azureNodePoolConfigSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * @param string $azureNodePoolSubnetId The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * @param int $azureNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @param int $azureNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * @param int $azureNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. + * @param string $azureNodePoolId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_azure_node_pool_sample( + string $formattedParent, + string $azureNodePoolVersion, + string $azureNodePoolConfigSshConfigAuthorizedKey, + string $azureNodePoolSubnetId, + int $azureNodePoolAutoscalingMinNodeCount, + int $azureNodePoolAutoscalingMaxNodeCount, + int $azureNodePoolMaxPodsConstraintMaxPodsPerNode, + string $azureNodePoolId +): void { + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $azureNodePoolConfigSshConfig = (new AzureSshConfig()) + ->setAuthorizedKey($azureNodePoolConfigSshConfigAuthorizedKey); + $azureNodePoolConfig = (new AzureNodeConfig()) + ->setSshConfig($azureNodePoolConfigSshConfig); + $azureNodePoolAutoscaling = (new AzureNodePoolAutoscaling()) + ->setMinNodeCount($azureNodePoolAutoscalingMinNodeCount) + ->setMaxNodeCount($azureNodePoolAutoscalingMaxNodeCount); + $azureNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) + ->setMaxPodsPerNode($azureNodePoolMaxPodsConstraintMaxPodsPerNode); + $azureNodePool = (new AzureNodePool()) + ->setVersion($azureNodePoolVersion) + ->setConfig($azureNodePoolConfig) + ->setSubnetId($azureNodePoolSubnetId) + ->setAutoscaling($azureNodePoolAutoscaling) + ->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->createAzureNodePool( + $formattedParent, + $azureNodePool, + $azureNodePoolId + ); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureNodePool $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 = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + $azureNodePoolVersion = '[VERSION]'; + $azureNodePoolConfigSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; + $azureNodePoolSubnetId = '[SUBNET_ID]'; + $azureNodePoolAutoscalingMinNodeCount = 0; + $azureNodePoolAutoscalingMaxNodeCount = 0; + $azureNodePoolMaxPodsConstraintMaxPodsPerNode = 0; + $azureNodePoolId = '[AZURE_NODE_POOL_ID]'; + + create_azure_node_pool_sample( + $formattedParent, + $azureNodePoolVersion, + $azureNodePoolConfigSshConfigAuthorizedKey, + $azureNodePoolSubnetId, + $azureNodePoolAutoscalingMinNodeCount, + $azureNodePoolAutoscalingMaxNodeCount, + $azureNodePoolMaxPodsConstraintMaxPodsPerNode, + $azureNodePoolId + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php new file mode 100644 index 000000000000..03dc723aaa18 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php @@ -0,0 +1,91 @@ +/locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClientName()} for help formatting this field. + */ +function delete_azure_client_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->deleteAzureClient($formattedName); + $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 = AzureClustersClient::azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + + delete_azure_client_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php new file mode 100644 index 000000000000..4ecd65b8fa56 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php @@ -0,0 +1,94 @@ +/locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + */ +function delete_azure_cluster_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->deleteAzureCluster($formattedName); + $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 = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + + delete_azure_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php new file mode 100644 index 000000000000..aff62d100ed7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php @@ -0,0 +1,92 @@ +/locations//azureClusters//azureNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureNodePoolName()} for help formatting this field. + */ +function delete_azure_node_pool_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->deleteAzureNodePool($formattedName); + $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 = AzureClustersClient::azureNodePoolName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]', + '[AZURE_NODE_POOL]' + ); + + delete_azure_node_pool_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php new file mode 100644 index 000000000000..cfaf60fe58c9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php @@ -0,0 +1,79 @@ +/locations//AzureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + */ +function generate_azure_access_token_sample(string $formattedAzureCluster): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var GenerateAzureAccessTokenResponse $response */ + $response = $azureClustersClient->generateAzureAccessToken($formattedAzureCluster); + 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 +{ + $formattedAzureCluster = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + + generate_azure_access_token_sample($formattedAzureCluster); +} +// [END gkemulticloud_v1_generated_AzureClusters_GenerateAzureAccessToken_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php new file mode 100644 index 000000000000..23be24df6692 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php @@ -0,0 +1,76 @@ +/locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClientName()} for help formatting this field. + */ +function get_azure_client_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AzureClient $response */ + $response = $azureClustersClient->getAzureClient($formattedName); + 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 = AzureClustersClient::azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + + get_azure_client_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_GetAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php new file mode 100644 index 000000000000..f56f988022c0 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php @@ -0,0 +1,79 @@ +/locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + */ +function get_azure_cluster_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AzureCluster $response */ + $response = $azureClustersClient->getAzureCluster($formattedName); + 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 = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + + get_azure_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_GetAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php new file mode 100644 index 000000000000..cf546ffefc9d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php @@ -0,0 +1,80 @@ +/locations//azureClusters//azureNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureNodePoolName()} for help formatting this field. + */ +function get_azure_node_pool_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AzureNodePool $response */ + $response = $azureClustersClient->getAzureNodePool($formattedName); + 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 = AzureClustersClient::azureNodePoolName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]', + '[AZURE_NODE_POOL]' + ); + + get_azure_node_pool_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_GetAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php new file mode 100644 index 000000000000..1062f5f5739c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php @@ -0,0 +1,75 @@ +/locations//azureServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureServerConfigName()} for help formatting this field. + */ +function get_azure_server_config_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AzureServerConfig $response */ + $response = $azureClustersClient->getAzureServerConfig($formattedName); + 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 = AzureClustersClient::azureServerConfigName('[PROJECT]', '[LOCATION]'); + + get_azure_server_config_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_GetAzureServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php new file mode 100644 index 000000000000..3323eb37deb6 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php @@ -0,0 +1,78 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AzureClustersClient::locationName()} for help formatting this field. + */ +function list_azure_clients_sample(string $formattedParent): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $azureClustersClient->listAzureClients($formattedParent); + + /** @var AzureClient $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); + + list_azure_clients_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AzureClusters_ListAzureClients_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php new file mode 100644 index 000000000000..51a3e3c98abd --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php @@ -0,0 +1,78 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AzureClustersClient::locationName()} for help formatting this field. + */ +function list_azure_clusters_sample(string $formattedParent): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $azureClustersClient->listAzureClusters($formattedParent); + + /** @var AzureCluster $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); + + list_azure_clusters_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AzureClusters_ListAzureClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php new file mode 100644 index 000000000000..2c81ebfa2bfa --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php @@ -0,0 +1,84 @@ +/locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + */ +function list_azure_node_pools_sample(string $formattedParent): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $azureClustersClient->listAzureNodePools($formattedParent); + + /** @var AzureNodePool $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 = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + + list_azure_node_pools_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AzureClusters_ListAzureNodePools_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php new file mode 100644 index 000000000000..04ae46f44b2b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php @@ -0,0 +1,207 @@ +/resourceGroups/` + * @param string $azureClusterAzureClient Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * + * This field cannot be changed after creation. + * @param string $azureClusterNetworkingPodAddressCidrBlocksElement The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * + * This field cannot be changed after creation. + * @param string $azureClusterNetworkingServiceAddressCidrBlocksElement The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * + * This field cannot be changed after creating a cluster. + * @param string $azureClusterControlPlaneVersion The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. + * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + */ +function update_azure_cluster_sample( + string $azureClusterAzureRegion, + string $azureClusterResourceGroupId, + string $azureClusterAzureClient, + string $azureClusterNetworkingVirtualNetworkId, + string $azureClusterNetworkingPodAddressCidrBlocksElement, + string $azureClusterNetworkingServiceAddressCidrBlocksElement, + string $azureClusterControlPlaneVersion, + string $azureClusterControlPlaneSshConfigAuthorizedKey, + string $azureClusterAuthorizationAdminUsersUsername, + string $azureClusterFleetProject +): void { + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $azureClusterNetworkingPodAddressCidrBlocks = [ + $azureClusterNetworkingPodAddressCidrBlocksElement, + ]; + $azureClusterNetworkingServiceAddressCidrBlocks = [ + $azureClusterNetworkingServiceAddressCidrBlocksElement, + ]; + $azureClusterNetworking = (new AzureClusterNetworking()) + ->setVirtualNetworkId($azureClusterNetworkingVirtualNetworkId) + ->setPodAddressCidrBlocks($azureClusterNetworkingPodAddressCidrBlocks) + ->setServiceAddressCidrBlocks($azureClusterNetworkingServiceAddressCidrBlocks); + $azureClusterControlPlaneSshConfig = (new AzureSshConfig()) + ->setAuthorizedKey($azureClusterControlPlaneSshConfigAuthorizedKey); + $azureClusterControlPlane = (new AzureControlPlane()) + ->setVersion($azureClusterControlPlaneVersion) + ->setSshConfig($azureClusterControlPlaneSshConfig); + $azureClusterUser = (new AzureClusterUser()) + ->setUsername($azureClusterAuthorizationAdminUsersUsername); + $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; + $azureClusterAuthorization = (new AzureAuthorization()) + ->setAdminUsers($azureClusterAuthorizationAdminUsers); + $azureClusterFleet = (new Fleet()) + ->setProject($azureClusterFleetProject); + $azureCluster = (new AzureCluster()) + ->setAzureRegion($azureClusterAzureRegion) + ->setResourceGroupId($azureClusterResourceGroupId) + ->setAzureClient($azureClusterAzureClient) + ->setNetworking($azureClusterNetworking) + ->setControlPlane($azureClusterControlPlane) + ->setAuthorization($azureClusterAuthorization) + ->setFleet($azureClusterFleet); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureCluster $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 +{ + $azureClusterAzureRegion = '[AZURE_REGION]'; + $azureClusterResourceGroupId = '[RESOURCE_GROUP_ID]'; + $azureClusterAzureClient = '[AZURE_CLIENT]'; + $azureClusterNetworkingVirtualNetworkId = '[VIRTUAL_NETWORK_ID]'; + $azureClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; + $azureClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; + $azureClusterControlPlaneVersion = '[VERSION]'; + $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; + $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $azureClusterFleetProject = '[PROJECT]'; + + update_azure_cluster_sample( + $azureClusterAzureRegion, + $azureClusterResourceGroupId, + $azureClusterAzureClient, + $azureClusterNetworkingVirtualNetworkId, + $azureClusterNetworkingPodAddressCidrBlocksElement, + $azureClusterNetworkingServiceAddressCidrBlocksElement, + $azureClusterControlPlaneVersion, + $azureClusterControlPlaneSshConfigAuthorizedKey, + $azureClusterAuthorizationAdminUsersUsername, + $azureClusterFleetProject + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php new file mode 100644 index 000000000000..f3ec43e2c263 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php @@ -0,0 +1,129 @@ +setAuthorizedKey($azureNodePoolConfigSshConfigAuthorizedKey); + $azureNodePoolConfig = (new AzureNodeConfig()) + ->setSshConfig($azureNodePoolConfigSshConfig); + $azureNodePoolAutoscaling = (new AzureNodePoolAutoscaling()) + ->setMinNodeCount($azureNodePoolAutoscalingMinNodeCount) + ->setMaxNodeCount($azureNodePoolAutoscalingMaxNodeCount); + $azureNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) + ->setMaxPodsPerNode($azureNodePoolMaxPodsConstraintMaxPodsPerNode); + $azureNodePool = (new AzureNodePool()) + ->setVersion($azureNodePoolVersion) + ->setConfig($azureNodePoolConfig) + ->setSubnetId($azureNodePoolSubnetId) + ->setAutoscaling($azureNodePoolAutoscaling) + ->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureNodePool $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 +{ + $azureNodePoolVersion = '[VERSION]'; + $azureNodePoolConfigSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; + $azureNodePoolSubnetId = '[SUBNET_ID]'; + $azureNodePoolAutoscalingMinNodeCount = 0; + $azureNodePoolAutoscalingMaxNodeCount = 0; + $azureNodePoolMaxPodsConstraintMaxPodsPerNode = 0; + + update_azure_node_pool_sample( + $azureNodePoolVersion, + $azureNodePoolConfigSshConfigAuthorizedKey, + $azureNodePoolSubnetId, + $azureNodePoolAutoscalingMinNodeCount, + $azureNodePoolAutoscalingMaxNodeCount, + $azureNodePoolMaxPodsConstraintMaxPodsPerNode + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php new file mode 100644 index 000000000000..a7029dacd067 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php @@ -0,0 +1,34 @@ +locationName('[PROJECT]', '[LOCATION]'); + * $attachedCluster = new AttachedCluster(); + * $attachedClusterId = 'attached_cluster_id'; + * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'createAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + */ +class AttachedClustersGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AttachedClusters'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static $attachedClusterNameTemplate; + + private static $attachedServerConfigNameTemplate; + + private static $locationNameTemplate; + + private static $pathTemplateMap; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/attached_clusters_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/attached_clusters_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/attached_clusters_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/attached_clusters_rest_client_config.php', + ], + ], + ]; + } + + private static function getAttachedClusterNameTemplate() + { + if (self::$attachedClusterNameTemplate == null) { + self::$attachedClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/attachedClusters/{attached_cluster}'); + } + + return self::$attachedClusterNameTemplate; + } + + private static function getAttachedServerConfigNameTemplate() + { + if (self::$attachedServerConfigNameTemplate == null) { + self::$attachedServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/attachedServerConfig'); + } + + return self::$attachedServerConfigNameTemplate; + } + + private static function getLocationNameTemplate() + { + if (self::$locationNameTemplate == null) { + self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); + } + + return self::$locationNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'attachedCluster' => self::getAttachedClusterNameTemplate(), + 'attachedServerConfig' => self::getAttachedServerConfigNameTemplate(), + 'location' => self::getLocationNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * attached_cluster resource. + * + * @param string $project + * @param string $location + * @param string $attachedCluster + * + * @return string The formatted attached_cluster resource. + */ + public static function attachedClusterName($project, $location, $attachedCluster) + { + return self::getAttachedClusterNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'attached_cluster' => $attachedCluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * attached_server_config resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted attached_server_config resource. + */ + public static function attachedServerConfigName($project, $location) + { + return self::getAttachedServerConfigNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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($project, $location) + { + return self::getLocationNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - attachedCluster: projects/{project}/locations/{location}/attachedClusters/{attached_cluster} + * - attachedServerConfig: projects/{project}/locations/{location}/attachedServerConfig + * - location: projects/{project}/locations/{location} + * + * 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($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Constructor. + * + * @param array $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 'gkemulticloud.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @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. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** + * Creates a new + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * on a given GCP project and region. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $attachedCluster = new AttachedCluster(); + * $attachedClusterId = 'attached_cluster_id'; + * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'createAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AttachedCluster $attachedCluster Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * @param string $attachedClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAttachedCluster($parent, $attachedCluster, $attachedClusterId, array $optionalArgs = []) + { + $request = new CreateAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAttachedCluster($attachedCluster); + $request->setAttachedClusterId($attachedClusterId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedName = $attachedClustersClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + * $operationResponse = $attachedClustersClient->deleteAttachedCluster($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->deleteAttachedCluster($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'deleteAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the resource. + * @type bool $allowMissing + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * + * Useful for idempotent deletion. + * @type bool $ignoreErrors + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * @type string $etag + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAttachedCluster($name, array $optionalArgs = []) + { + $request = new DeleteAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['ignoreErrors'])) { + $request->setIgnoreErrors($optionalArgs['ignoreErrors']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Generates the install manifest to be installed on the target cluster. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $attachedClusterId = 'attached_cluster_id'; + * $platformVersion = 'platform_version'; + * $response = $attachedClustersClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param string $attachedClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * @param string $platformVersion Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestResponse + * + * @throws ApiException if the remote call fails + */ + public function generateAttachedClusterInstallManifest($parent, $attachedClusterId, $platformVersion, array $optionalArgs = []) + { + $request = new GenerateAttachedClusterInstallManifestRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAttachedClusterId($attachedClusterId); + $request->setPlatformVersion($platformVersion); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GenerateAttachedClusterInstallManifest', GenerateAttachedClusterInstallManifestResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedName = $attachedClustersClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + * $response = $attachedClustersClient->getAttachedCluster($formattedName); + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AttachedCluster + * + * @throws ApiException if the remote call fails + */ + public function getAttachedCluster($name, array $optionalArgs = []) + { + $request = new GetAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAttachedCluster', AttachedCluster::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns information, such as supported Kubernetes versions, on a given + * Google Cloud location. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedName = $attachedClustersClient->attachedServerConfigName('[PROJECT]', '[LOCATION]'); + * $response = $attachedClustersClient->getAttachedServerConfig($formattedName); + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AttachedServerConfig + * + * @throws ApiException if the remote call fails + */ + public function getAttachedServerConfig($name, array $optionalArgs = []) + { + $request = new GetAttachedServerConfigRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAttachedServerConfig', AttachedServerConfig::class, $optionalArgs, $request)->wait(); + } + + /** + * Imports creates a new + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + * Attached Clusters created before the introduction of the Anthos Multi-Cloud + * API can be imported through this method. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $fleetMembership = 'fleet_membership'; + * $platformVersion = 'platform_version'; + * $distribution = 'distribution'; + * $operationResponse = $attachedClustersClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'importAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param string $fleetMembership Required. The name of the fleet membership resource to import. + * @param string $platformVersion Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @param string $distribution Required. The Kubernetes distribution of the underlying attached cluster. + * + * Supported values: ["eks", "aks"]. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually import the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function importAttachedCluster($parent, $fleetMembership, $platformVersion, $distribution, array $optionalArgs = []) + { + $request = new ImportAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setFleetMembership($fleetMembership); + $request->setPlatformVersion($platformVersion); + $request->setDistribution($distribution); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('ImportAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources on a given Google Cloud project and region. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * // Iterate over pages of elements + * $pagedResponse = $attachedClustersClient->listAttachedClusters($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $attachedClustersClient->listAttachedClusters($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAttachedClusters($parent, array $optionalArgs = []) + { + $request = new ListAttachedClustersRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAttachedClusters', $optionalArgs, ListAttachedClustersResponse::class, $request); + } + + /** + * Updates an + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $attachedCluster = new AttachedCluster(); + * $updateMask = new FieldMask(); + * $operationResponse = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'updateAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param AttachedCluster $attachedCluster Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually update the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAttachedCluster($attachedCluster, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setAttachedCluster($attachedCluster); + $request->setUpdateMask($updateMask); + $requestParamHeaders['attached_cluster.name'] = $attachedCluster->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php new file mode 100644 index 000000000000..7d8a15b8589e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php @@ -0,0 +1,1365 @@ +locationName('[PROJECT]', '[LOCATION]'); + * $awsCluster = new AwsCluster(); + * $awsClusterId = 'aws_cluster_id'; + * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + */ +class AwsClustersGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AwsClusters'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static $awsClusterNameTemplate; + + private static $awsNodePoolNameTemplate; + + private static $awsServerConfigNameTemplate; + + private static $locationNameTemplate; + + private static $pathTemplateMap; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/aws_clusters_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/aws_clusters_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/aws_clusters_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/aws_clusters_rest_client_config.php', + ], + ], + ]; + } + + private static function getAwsClusterNameTemplate() + { + if (self::$awsClusterNameTemplate == null) { + self::$awsClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsClusters/{aws_cluster}'); + } + + return self::$awsClusterNameTemplate; + } + + private static function getAwsNodePoolNameTemplate() + { + if (self::$awsNodePoolNameTemplate == null) { + self::$awsNodePoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool}'); + } + + return self::$awsNodePoolNameTemplate; + } + + private static function getAwsServerConfigNameTemplate() + { + if (self::$awsServerConfigNameTemplate == null) { + self::$awsServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsServerConfig'); + } + + return self::$awsServerConfigNameTemplate; + } + + private static function getLocationNameTemplate() + { + if (self::$locationNameTemplate == null) { + self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); + } + + return self::$locationNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'awsCluster' => self::getAwsClusterNameTemplate(), + 'awsNodePool' => self::getAwsNodePoolNameTemplate(), + 'awsServerConfig' => self::getAwsServerConfigNameTemplate(), + 'location' => self::getLocationNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a aws_cluster + * resource. + * + * @param string $project + * @param string $location + * @param string $awsCluster + * + * @return string The formatted aws_cluster resource. + */ + public static function awsClusterName($project, $location, $awsCluster) + { + return self::getAwsClusterNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'aws_cluster' => $awsCluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * aws_node_pool resource. + * + * @param string $project + * @param string $location + * @param string $awsCluster + * @param string $awsNodePool + * + * @return string The formatted aws_node_pool resource. + */ + public static function awsNodePoolName($project, $location, $awsCluster, $awsNodePool) + { + return self::getAwsNodePoolNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'aws_cluster' => $awsCluster, + 'aws_node_pool' => $awsNodePool, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * aws_server_config resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted aws_server_config resource. + */ + public static function awsServerConfigName($project, $location) + { + return self::getAwsServerConfigNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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($project, $location) + { + return self::getLocationNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - awsCluster: projects/{project}/locations/{location}/awsClusters/{aws_cluster} + * - awsNodePool: projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool} + * - awsServerConfig: projects/{project}/locations/{location}/awsServerConfig + * - location: projects/{project}/locations/{location} + * + * 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($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Constructor. + * + * @param array $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 'gkemulticloud.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @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. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** + * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource on a given GCP project and region. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedParent = $awsClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $awsCluster = new AwsCluster(); + * $awsClusterId = 'aws_cluster_id'; + * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AwsCluster $awsCluster Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * @param string $awsClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAwsCluster($parent, $awsCluster, $awsClusterId, array $optionalArgs = []) + { + $request = new CreateAwsClusterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAwsCluster($awsCluster); + $request->setAwsClusterId($awsClusterId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], + * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedParent = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * $awsNodePool = new AwsNodePool(); + * $awsNodePoolId = 'aws_node_pool_id'; + * $operationResponse = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AwsNodePool $awsNodePool Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * @param string $awsNodePoolId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the node + * pool. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAwsNodePool($parent, $awsNodePool, $awsNodePoolId, array $optionalArgs = []) + { + $request = new CreateAwsNodePoolRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAwsNodePool($awsNodePool); + $request->setAwsNodePoolId($awsNodePoolId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. + * + * Fails if the cluster has one or more associated + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * $operationResponse = $awsClustersClient->deleteAwsCluster($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->deleteAwsCluster($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'deleteAwsCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the resource. + * @type bool $allowMissing + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * + * Useful for idempotent deletion. + * @type string $etag + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAwsCluster($name, array $optionalArgs = []) + { + $request = new DeleteAwsClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + * $operationResponse = $awsClustersClient->deleteAwsNodePool($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->deleteAwsNodePool($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'deleteAwsNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the node + * pool. + * @type bool $allowMissing + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * + * Useful for idempotent deletion. + * @type string $etag + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAwsNodePool($name, array $optionalArgs = []) + { + $request = new DeleteAwsNodePoolRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Generates a short-lived access token to authenticate to a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedAwsCluster = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * $response = $awsClustersClient->generateAwsAccessToken($formattedAwsCluster); + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $awsCluster Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse + * + * @throws ApiException if the remote call fails + */ + public function generateAwsAccessToken($awsCluster, array $optionalArgs = []) + { + $request = new GenerateAwsAccessTokenRequest(); + $requestParamHeaders = []; + $request->setAwsCluster($awsCluster); + $requestParamHeaders['aws_cluster'] = $awsCluster; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GenerateAwsAccessToken', GenerateAwsAccessTokenResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * $response = $awsClustersClient->getAwsCluster($formattedName); + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AwsCluster + * + * @throws ApiException if the remote call fails + */ + public function getAwsCluster($name, array $optionalArgs = []) + { + $request = new GetAwsClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAwsCluster', AwsCluster::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + * $response = $awsClustersClient->getAwsNodePool($formattedName); + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AwsNodePool + * + * @throws ApiException if the remote call fails + */ + public function getAwsNodePool($name, array $optionalArgs = []) + { + $request = new GetAwsNodePoolRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAwsNodePool', AwsNodePool::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns information, such as supported AWS regions and Kubernetes + * versions, on a given Google Cloud location. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsServerConfigName('[PROJECT]', '[LOCATION]'); + * $response = $awsClustersClient->getAwsServerConfig($formattedName); + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AwsServerConfig + * + * @throws ApiException if the remote call fails + */ + public function getAwsServerConfig($name, array $optionalArgs = []) + { + $request = new GetAwsServerConfigRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAwsServerConfig', AwsServerConfig::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * on a given Google Cloud project and region. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedParent = $awsClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * // Iterate over pages of elements + * $pagedResponse = $awsClustersClient->listAwsClusters($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $awsClustersClient->listAwsClusters($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAwsClusters($parent, array $optionalArgs = []) + { + $request = new ListAwsClustersRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAwsClusters', $optionalArgs, ListAwsClustersResponse::class, $request); + } + + /** + * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources on a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedParent = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * // Iterate over pages of elements + * $pagedResponse = $awsClustersClient->listAwsNodePools($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $awsClustersClient->listAwsNodePools($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAwsNodePools($parent, array $optionalArgs = []) + { + $request = new ListAwsNodePoolsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAwsNodePools', $optionalArgs, ListAwsNodePoolsResponse::class, $request); + } + + /** + * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $awsCluster = new AwsCluster(); + * $updateMask = new FieldMask(); + * $operationResponse = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'updateAwsCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param AwsCluster $awsCluster Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually update the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAwsCluster($awsCluster, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAwsClusterRequest(); + $requestParamHeaders = []; + $request->setAwsCluster($awsCluster); + $request->setUpdateMask($updateMask); + $requestParamHeaders['aws_cluster.name'] = $awsCluster->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $awsNodePool = new AwsNodePool(); + * $updateMask = new FieldMask(); + * $operationResponse = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'updateAwsNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param AwsNodePool $awsNodePool Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but don't actually update the node pool. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAwsNodePool($awsNodePool, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAwsNodePoolRequest(); + $requestParamHeaders = []; + $request->setAwsNodePool($awsNodePool); + $request->setUpdateMask($updateMask); + $requestParamHeaders['aws_node_pool.name'] = $awsNodePool->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php new file mode 100644 index 000000000000..4d34ddd5b376 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php @@ -0,0 +1,1697 @@ +locationName('[PROJECT]', '[LOCATION]'); + * $azureClient = new AzureClient(); + * $azureClientId = 'azure_client_id'; + * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureClient'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + */ +class AzureClustersGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AzureClusters'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static $azureClientNameTemplate; + + private static $azureClusterNameTemplate; + + private static $azureNodePoolNameTemplate; + + private static $azureServerConfigNameTemplate; + + private static $locationNameTemplate; + + private static $pathTemplateMap; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/azure_clusters_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/azure_clusters_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/azure_clusters_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/azure_clusters_rest_client_config.php', + ], + ], + ]; + } + + private static function getAzureClientNameTemplate() + { + if (self::$azureClientNameTemplate == null) { + self::$azureClientNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClients/{azure_client}'); + } + + return self::$azureClientNameTemplate; + } + + private static function getAzureClusterNameTemplate() + { + if (self::$azureClusterNameTemplate == null) { + self::$azureClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClusters/{azure_cluster}'); + } + + return self::$azureClusterNameTemplate; + } + + private static function getAzureNodePoolNameTemplate() + { + if (self::$azureNodePoolNameTemplate == null) { + self::$azureNodePoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool}'); + } + + return self::$azureNodePoolNameTemplate; + } + + private static function getAzureServerConfigNameTemplate() + { + if (self::$azureServerConfigNameTemplate == null) { + self::$azureServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureServerConfig'); + } + + return self::$azureServerConfigNameTemplate; + } + + private static function getLocationNameTemplate() + { + if (self::$locationNameTemplate == null) { + self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); + } + + return self::$locationNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'azureClient' => self::getAzureClientNameTemplate(), + 'azureCluster' => self::getAzureClusterNameTemplate(), + 'azureNodePool' => self::getAzureNodePoolNameTemplate(), + 'azureServerConfig' => self::getAzureServerConfigNameTemplate(), + 'location' => self::getLocationNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a azure_client + * resource. + * + * @param string $project + * @param string $location + * @param string $azureClient + * + * @return string The formatted azure_client resource. + */ + public static function azureClientName($project, $location, $azureClient) + { + return self::getAzureClientNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'azure_client' => $azureClient, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * azure_cluster resource. + * + * @param string $project + * @param string $location + * @param string $azureCluster + * + * @return string The formatted azure_cluster resource. + */ + public static function azureClusterName($project, $location, $azureCluster) + { + return self::getAzureClusterNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'azure_cluster' => $azureCluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * azure_node_pool resource. + * + * @param string $project + * @param string $location + * @param string $azureCluster + * @param string $azureNodePool + * + * @return string The formatted azure_node_pool resource. + */ + public static function azureNodePoolName($project, $location, $azureCluster, $azureNodePool) + { + return self::getAzureNodePoolNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'azure_cluster' => $azureCluster, + 'azure_node_pool' => $azureNodePool, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * azure_server_config resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted azure_server_config resource. + */ + public static function azureServerConfigName($project, $location) + { + return self::getAzureServerConfigNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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($project, $location) + { + return self::getLocationNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - azureClient: projects/{project}/locations/{location}/azureClients/{azure_client} + * - azureCluster: projects/{project}/locations/{location}/azureClusters/{azure_cluster} + * - azureNodePool: projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool} + * - azureServerConfig: projects/{project}/locations/{location}/azureServerConfig + * - location: projects/{project}/locations/{location} + * + * 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($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Constructor. + * + * @param array $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 'gkemulticloud.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @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. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** + * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource on a given Google Cloud project and region. + * + * `AzureClient` resources hold client authentication + * information needed by the Anthos Multicloud API to manage Azure resources + * on your Azure subscription on your behalf. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $azureClient = new AzureClient(); + * $azureClientId = 'azure_client_id'; + * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureClient'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AzureClient $azureClient Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * @param string $azureClientId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the client. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAzureClient($parent, $azureClient, $azureClientId, array $optionalArgs = []) + { + $request = new CreateAzureClientRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAzureClient($azureClient); + $request->setAzureClientId($azureClientId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAzureClient', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource on a given GCP project and region. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $azureCluster = new AzureCluster(); + * $azureClusterId = 'azure_cluster_id'; + * $operationResponse = $azureClustersClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AzureCluster $azureCluster Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * @param string $azureClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAzureCluster($parent, $azureCluster, $azureClusterId, array $optionalArgs = []) + { + $request = new CreateAzureClusterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAzureCluster($azureCluster); + $request->setAzureClusterId($azureClusterId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], + * attached to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * $azureNodePool = new AzureNodePool(); + * $azureNodePoolId = 'azure_node_pool_id'; + * $operationResponse = $azureClustersClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AzureNodePool $azureNodePool Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * @param string $azureNodePoolId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the node + * pool. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAzureNodePool($parent, $azureNodePool, $azureNodePoolId, array $optionalArgs = []) + { + $request = new CreateAzureNodePoolRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAzureNodePool($azureNodePool); + $request->setAzureNodePoolId($azureNodePoolId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource. + * + * If the client is used by one or more clusters, deletion will + * fail and a `FAILED_PRECONDITION` error will be returned. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + * $operationResponse = $azureClustersClient->deleteAzureClient($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->deleteAzureClient($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureClient'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $allowMissing + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * + * Useful for idempotent deletion. + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the resource. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAzureClient($name, array $optionalArgs = []) + { + $request = new DeleteAzureClientRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAzureClient', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * + * Fails if the cluster has one or more associated + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * $operationResponse = $azureClustersClient->deleteAzureCluster($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->deleteAzureCluster($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $allowMissing + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * + * Useful for idempotent deletion. + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the resource. + * @type string $etag + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAzureCluster($name, array $optionalArgs = []) + { + $request = new DeleteAzureClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + * $operationResponse = $azureClustersClient->deleteAzureNodePool($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->deleteAzureNodePool($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the node + * pool. + * @type bool $allowMissing + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * + * Useful for idempotent deletion. + * @type string $etag + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAzureNodePool($name, array $optionalArgs = []) + { + $request = new DeleteAzureNodePoolRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Generates a short-lived access token to authenticate to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedAzureCluster = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * $response = $azureClustersClient->generateAzureAccessToken($formattedAzureCluster); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $azureCluster Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse + * + * @throws ApiException if the remote call fails + */ + public function generateAzureAccessToken($azureCluster, array $optionalArgs = []) + { + $request = new GenerateAzureAccessTokenRequest(); + $requestParamHeaders = []; + $request->setAzureCluster($azureCluster); + $requestParamHeaders['azure_cluster'] = $azureCluster; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GenerateAzureAccessToken', GenerateAzureAccessTokenResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + * $response = $azureClustersClient->getAzureClient($formattedName); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AzureClient + * + * @throws ApiException if the remote call fails + */ + public function getAzureClient($name, array $optionalArgs = []) + { + $request = new GetAzureClientRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAzureClient', AzureClient::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * $response = $azureClustersClient->getAzureCluster($formattedName); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AzureCluster + * + * @throws ApiException if the remote call fails + */ + public function getAzureCluster($name, array $optionalArgs = []) + { + $request = new GetAzureClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAzureCluster', AzureCluster::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + * $response = $azureClustersClient->getAzureNodePool($formattedName); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AzureNodePool + * + * @throws ApiException if the remote call fails + */ + public function getAzureNodePool($name, array $optionalArgs = []) + { + $request = new GetAzureNodePoolRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAzureNodePool', AzureNodePool::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns information, such as supported Azure regions and Kubernetes + * versions, on a given Google Cloud location. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureServerConfigName('[PROJECT]', '[LOCATION]'); + * $response = $azureClustersClient->getAzureServerConfig($formattedName); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AzureServerConfig + * + * @throws ApiException if the remote call fails + */ + public function getAzureServerConfig($name, array $optionalArgs = []) + { + $request = new GetAzureServerConfigRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAzureServerConfig', AzureServerConfig::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources on a given Google Cloud project and region. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * // Iterate over pages of elements + * $pagedResponse = $azureClustersClient->listAzureClients($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $azureClustersClient->listAzureClients($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAzureClients($parent, array $optionalArgs = []) + { + $request = new ListAzureClientsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAzureClients', $optionalArgs, ListAzureClientsResponse::class, $request); + } + + /** + * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources on a given Google Cloud project and region. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * // Iterate over pages of elements + * $pagedResponse = $azureClustersClient->listAzureClusters($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $azureClustersClient->listAzureClusters($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAzureClusters($parent, array $optionalArgs = []) + { + $request = new ListAzureClustersRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAzureClusters', $optionalArgs, ListAzureClustersResponse::class, $request); + } + + /** + * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources on a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * // Iterate over pages of elements + * $pagedResponse = $azureClustersClient->listAzureNodePools($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $azureClustersClient->listAzureNodePools($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAzureNodePools($parent, array $optionalArgs = []) + { + $request = new ListAzureNodePoolsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAzureNodePools', $optionalArgs, ListAzureNodePoolsResponse::class, $request); + } + + /** + * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $azureCluster = new AzureCluster(); + * $updateMask = new FieldMask(); + * $operationResponse = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'updateAzureCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param AzureCluster $azureCluster Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually update the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAzureCluster($azureCluster, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAzureClusterRequest(); + $requestParamHeaders = []; + $request->setAzureCluster($azureCluster); + $request->setUpdateMask($updateMask); + $requestParamHeaders['azure_cluster.name'] = $azureCluster->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $azureNodePool = new AzureNodePool(); + * $updateMask = new FieldMask(); + * $operationResponse = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'updateAzureNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param AzureNodePool $azureNodePool Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but don't actually update the node pool. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAzureNodePool($azureNodePool, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAzureNodePoolRequest(); + $requestParamHeaders = []; + $request->setAzureNodePool($azureNodePool); + $request->setUpdateMask($updateMask); + $requestParamHeaders['azure_node_pool.name'] = $azureNodePool->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..a69240b06fba --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json @@ -0,0 +1,216 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.gkemulticloud.v1", + "libraryPackage": "Google\\Cloud\\GkeMultiCloud\\V1", + "services": { + "AttachedClusters": { + "clients": { + "grpc": { + "libraryClient": "AttachedClustersGapicClient", + "rpcs": { + "CreateAttachedCluster": { + "methods": [ + "createAttachedCluster" + ] + }, + "DeleteAttachedCluster": { + "methods": [ + "deleteAttachedCluster" + ] + }, + "GenerateAttachedClusterInstallManifest": { + "methods": [ + "generateAttachedClusterInstallManifest" + ] + }, + "GetAttachedCluster": { + "methods": [ + "getAttachedCluster" + ] + }, + "GetAttachedServerConfig": { + "methods": [ + "getAttachedServerConfig" + ] + }, + "ImportAttachedCluster": { + "methods": [ + "importAttachedCluster" + ] + }, + "ListAttachedClusters": { + "methods": [ + "listAttachedClusters" + ] + }, + "UpdateAttachedCluster": { + "methods": [ + "updateAttachedCluster" + ] + } + } + } + } + }, + "AwsClusters": { + "clients": { + "grpc": { + "libraryClient": "AwsClustersGapicClient", + "rpcs": { + "CreateAwsCluster": { + "methods": [ + "createAwsCluster" + ] + }, + "CreateAwsNodePool": { + "methods": [ + "createAwsNodePool" + ] + }, + "DeleteAwsCluster": { + "methods": [ + "deleteAwsCluster" + ] + }, + "DeleteAwsNodePool": { + "methods": [ + "deleteAwsNodePool" + ] + }, + "GenerateAwsAccessToken": { + "methods": [ + "generateAwsAccessToken" + ] + }, + "GetAwsCluster": { + "methods": [ + "getAwsCluster" + ] + }, + "GetAwsNodePool": { + "methods": [ + "getAwsNodePool" + ] + }, + "GetAwsServerConfig": { + "methods": [ + "getAwsServerConfig" + ] + }, + "ListAwsClusters": { + "methods": [ + "listAwsClusters" + ] + }, + "ListAwsNodePools": { + "methods": [ + "listAwsNodePools" + ] + }, + "UpdateAwsCluster": { + "methods": [ + "updateAwsCluster" + ] + }, + "UpdateAwsNodePool": { + "methods": [ + "updateAwsNodePool" + ] + } + } + } + } + }, + "AzureClusters": { + "clients": { + "grpc": { + "libraryClient": "AzureClustersGapicClient", + "rpcs": { + "CreateAzureClient": { + "methods": [ + "createAzureClient" + ] + }, + "CreateAzureCluster": { + "methods": [ + "createAzureCluster" + ] + }, + "CreateAzureNodePool": { + "methods": [ + "createAzureNodePool" + ] + }, + "DeleteAzureClient": { + "methods": [ + "deleteAzureClient" + ] + }, + "DeleteAzureCluster": { + "methods": [ + "deleteAzureCluster" + ] + }, + "DeleteAzureNodePool": { + "methods": [ + "deleteAzureNodePool" + ] + }, + "GenerateAzureAccessToken": { + "methods": [ + "generateAzureAccessToken" + ] + }, + "GetAzureClient": { + "methods": [ + "getAzureClient" + ] + }, + "GetAzureCluster": { + "methods": [ + "getAzureCluster" + ] + }, + "GetAzureNodePool": { + "methods": [ + "getAzureNodePool" + ] + }, + "GetAzureServerConfig": { + "methods": [ + "getAzureServerConfig" + ] + }, + "ListAzureClients": { + "methods": [ + "listAzureClients" + ] + }, + "ListAzureClusters": { + "methods": [ + "listAzureClusters" + ] + }, + "ListAzureNodePools": { + "methods": [ + "listAzureNodePools" + ] + }, + "UpdateAzureCluster": { + "methods": [ + "updateAzureCluster" + ] + }, + "UpdateAzureNodePool": { + "methods": [ + "updateAzureNodePool" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json new file mode 100644 index 000000000000..79c17065c97a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json @@ -0,0 +1,84 @@ +{ + "interfaces": { + "google.cloud.gkemulticloud.v1.AttachedClusters": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "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 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "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": { + "CreateAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GenerateAttachedClusterInstallManifest": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAttachedServerConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ImportAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListAttachedClusters": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php new file mode 100644 index 000000000000..7fd39638c34b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php @@ -0,0 +1,58 @@ + [ + 'google.cloud.gkemulticloud.v1.AttachedClusters' => [ + 'CreateAttachedCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAttachedCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'ImportAttachedCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAttachedCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'ListAttachedClusters' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAttachedClusters', + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php new file mode 100644 index 000000000000..5d9c3003ee17 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php @@ -0,0 +1,153 @@ + [ + 'google.cloud.gkemulticloud.v1.AttachedClusters' => [ + 'CreateAttachedCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters', + 'body' => 'attached_cluster', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'attached_cluster_id', + ], + ], + 'DeleteAttachedCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateAttachedClusterInstallManifest' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifest', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetAttachedCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAttachedServerConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedServerConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ImportAttachedCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters:import', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAttachedClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateAttachedCluster' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{attached_cluster.name=projects/*/locations/*/attachedClusters/*}', + 'body' => 'attached_cluster', + 'placeholders' => [ + 'attached_cluster.name' => [ + 'getters' => [ + 'getAttachedCluster', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json new file mode 100644 index 000000000000..c7c0634a0a98 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json @@ -0,0 +1,104 @@ +{ + "interfaces": { + "google.cloud.gkemulticloud.v1.AwsClusters": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "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 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "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": { + "CreateAwsCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateAwsNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAwsCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAwsNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GenerateAwsAccessToken": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAwsCluster": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAwsNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAwsServerConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAwsClusters": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAwsNodePools": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAwsCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateAwsNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php new file mode 100644 index 000000000000..9a86fcf0c4b2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php @@ -0,0 +1,88 @@ + [ + 'google.cloud.gkemulticloud.v1.AwsClusters' => [ + 'CreateAwsCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'CreateAwsNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAwsCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAwsNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAwsCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAwsNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'ListAwsClusters' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAwsClusters', + ], + ], + 'ListAwsNodePools' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAwsNodePools', + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php new file mode 100644 index 000000000000..e61743f714aa --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php @@ -0,0 +1,205 @@ + [ + 'google.cloud.gkemulticloud.v1.AwsClusters' => [ + 'CreateAwsCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/awsClusters', + 'body' => 'aws_cluster', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'aws_cluster_id', + ], + ], + 'CreateAwsNodePool' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools', + 'body' => 'aws_node_pool', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'aws_node_pool_id', + ], + ], + 'DeleteAwsCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteAwsNodePool' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateAwsAccessToken' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessToken', + 'placeholders' => [ + 'aws_cluster' => [ + 'getters' => [ + 'getAwsCluster', + ], + ], + ], + ], + 'GetAwsCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAwsNodePool' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAwsServerConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsServerConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAwsClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/awsClusters', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAwsNodePools' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateAwsCluster' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}', + 'body' => 'aws_cluster', + 'placeholders' => [ + 'aws_cluster.name' => [ + 'getters' => [ + 'getAwsCluster', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateAwsNodePool' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', + 'body' => 'aws_node_pool', + 'placeholders' => [ + 'aws_node_pool.name' => [ + 'getters' => [ + 'getAwsNodePool', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json new file mode 100644 index 000000000000..fae6b0761556 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json @@ -0,0 +1,124 @@ +{ + "interfaces": { + "google.cloud.gkemulticloud.v1.AzureClusters": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "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 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "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": { + "CreateAzureClient": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateAzureCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateAzureNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAzureClient": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAzureCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAzureNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GenerateAzureAccessToken": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAzureClient": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAzureCluster": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAzureNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAzureServerConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAzureClients": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAzureClusters": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAzureNodePools": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAzureCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateAzureNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php new file mode 100644 index 000000000000..b2d05d9d141f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php @@ -0,0 +1,118 @@ + [ + 'google.cloud.gkemulticloud.v1.AzureClusters' => [ + 'CreateAzureClient' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureClient', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'CreateAzureCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'CreateAzureNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAzureClient' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAzureCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAzureNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAzureCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAzureNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'ListAzureClients' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAzureClients', + ], + ], + 'ListAzureClusters' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAzureClusters', + ], + ], + 'ListAzureNodePools' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAzureNodePools', + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php new file mode 100644 index 000000000000..76e3adfb1baf --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php @@ -0,0 +1,253 @@ + [ + 'google.cloud.gkemulticloud.v1.AzureClusters' => [ + 'CreateAzureClient' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClients', + 'body' => 'azure_client', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'azure_client_id', + ], + ], + 'CreateAzureCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClusters', + 'body' => 'azure_cluster', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'azure_cluster_id', + ], + ], + 'CreateAzureNodePool' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools', + 'body' => 'azure_node_pool', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'azure_node_pool_id', + ], + ], + 'DeleteAzureClient' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClients/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteAzureCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteAzureNodePool' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateAzureAccessToken' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessToken', + 'placeholders' => [ + 'azure_cluster' => [ + 'getters' => [ + 'getAzureCluster', + ], + ], + ], + ], + 'GetAzureClient' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClients/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAzureCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAzureNodePool' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAzureServerConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureServerConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAzureClients' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClients', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAzureClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClusters', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAzureNodePools' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateAzureCluster' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}', + 'body' => 'azure_cluster', + 'placeholders' => [ + 'azure_cluster.name' => [ + 'getters' => [ + 'getAzureCluster', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateAzureNodePool' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', + 'body' => 'azure_node_pool', + 'placeholders' => [ + 'azure_node_pool.name' => [ + 'getters' => [ + 'getAzureNodePool', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php new file mode 100644 index 000000000000..2de09dd4ce09 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php @@ -0,0 +1,930 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AttachedClustersClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AttachedClustersClient($options); + } + + /** @test */ + public function createAttachedClusterTest() + { + $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/createAttachedClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $clusterRegion = 'clusterRegion993903833'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $kubernetesVersion = 'kubernetesVersion50850015'; + $expectedResponse = new AttachedCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setPlatformVersion($platformVersion); + $expectedResponse->setDistribution($distribution); + $expectedResponse->setClusterRegion($clusterRegion); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setKubernetesVersion($kubernetesVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAttachedClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $attachedCluster = new AttachedCluster(); + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedCluster->setOidcConfig($attachedClusterOidcConfig); + $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; + $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); + $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; + $attachedCluster->setDistribution($attachedClusterDistribution); + $attachedClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $attachedClusterFleet->setProject($fleetProject); + $attachedCluster->setFleet($attachedClusterFleet); + $attachedClusterId = 'attachedClusterId-249426181'; + $response = $gapicClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + $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.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAttachedCluster(); + $this->assertProtobufEquals($attachedCluster, $actualValue); + $actualValue = $actualApiRequestObject->getAttachedClusterId(); + $this->assertProtobufEquals($attachedClusterId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAttachedClusterTest'); + $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 createAttachedClusterExceptionTest() + { + $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/createAttachedClusterTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $attachedCluster = new AttachedCluster(); + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedCluster->setOidcConfig($attachedClusterOidcConfig); + $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; + $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); + $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; + $attachedCluster->setDistribution($attachedClusterDistribution); + $attachedClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $attachedClusterFleet->setProject($fleetProject); + $attachedCluster->setFleet($attachedClusterFleet); + $attachedClusterId = 'attachedClusterId-249426181'; + $response = $gapicClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAttachedClusterTest'); + 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 deleteAttachedClusterTest() + { + $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/deleteAttachedClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAttachedClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + $response = $gapicClient->deleteAttachedCluster($formattedName); + $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.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAttachedClusterTest'); + $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 deleteAttachedClusterExceptionTest() + { + $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/deleteAttachedClusterTest'); + $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->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + $response = $gapicClient->deleteAttachedCluster($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAttachedClusterTest'); + 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 generateAttachedClusterInstallManifestTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $manifest = 'manifest130625071'; + $expectedResponse = new GenerateAttachedClusterInstallManifestResponse(); + $expectedResponse->setManifest($manifest); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $attachedClusterId = 'attachedClusterId-249426181'; + $platformVersion = 'platformVersion1813514508'; + $response = $gapicClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAttachedClusterId(); + $this->assertProtobufEquals($attachedClusterId, $actualValue); + $actualValue = $actualRequestObject->getPlatformVersion(); + $this->assertProtobufEquals($platformVersion, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateAttachedClusterInstallManifestExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $attachedClusterId = 'attachedClusterId-249426181'; + $platformVersion = 'platformVersion1813514508'; + try { + $gapicClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); + // 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 getAttachedClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $clusterRegion = 'clusterRegion993903833'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $kubernetesVersion = 'kubernetesVersion50850015'; + $expectedResponse = new AttachedCluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setPlatformVersion($platformVersion); + $expectedResponse->setDistribution($distribution); + $expectedResponse->setClusterRegion($clusterRegion); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setKubernetesVersion($kubernetesVersion); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + $response = $gapicClient->getAttachedCluster($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAttachedClusterExceptionTest() + { + $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->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + try { + $gapicClient->getAttachedCluster($formattedName); + // 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 getAttachedServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new AttachedServerConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->attachedServerConfigName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->getAttachedServerConfig($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAttachedServerConfigExceptionTest() + { + $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->attachedServerConfigName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->getAttachedServerConfig($formattedName); + // 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 importAttachedClusterTest() + { + $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/importAttachedClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $platformVersion2 = 'platformVersion2-969276993'; + $distribution2 = 'distribution21357826359'; + $clusterRegion = 'clusterRegion993903833'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $kubernetesVersion = 'kubernetesVersion50850015'; + $expectedResponse = new AttachedCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setPlatformVersion($platformVersion2); + $expectedResponse->setDistribution($distribution2); + $expectedResponse->setClusterRegion($clusterRegion); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setKubernetesVersion($kubernetesVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/importAttachedClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $fleetMembership = 'fleetMembership1817977703'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $response = $gapicClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); + $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.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getFleetMembership(); + $this->assertProtobufEquals($fleetMembership, $actualValue); + $actualValue = $actualApiRequestObject->getPlatformVersion(); + $this->assertProtobufEquals($platformVersion, $actualValue); + $actualValue = $actualApiRequestObject->getDistribution(); + $this->assertProtobufEquals($distribution, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/importAttachedClusterTest'); + $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 importAttachedClusterExceptionTest() + { + $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/importAttachedClusterTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $fleetMembership = 'fleetMembership1817977703'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $response = $gapicClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/importAttachedClusterTest'); + 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 listAttachedClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $attachedClustersElement = new AttachedCluster(); + $attachedClusters = [ + $attachedClustersElement, + ]; + $expectedResponse = new ListAttachedClustersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAttachedClusters($attachedClusters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listAttachedClusters($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAttachedClusters()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAttachedClustersExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->listAttachedClusters($formattedParent); + // 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 updateAttachedClusterTest() + { + $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/updateAttachedClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $clusterRegion = 'clusterRegion993903833'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $kubernetesVersion = 'kubernetesVersion50850015'; + $expectedResponse = new AttachedCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setPlatformVersion($platformVersion); + $expectedResponse->setDistribution($distribution); + $expectedResponse->setClusterRegion($clusterRegion); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setKubernetesVersion($kubernetesVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAttachedClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $attachedCluster = new AttachedCluster(); + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedCluster->setOidcConfig($attachedClusterOidcConfig); + $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; + $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); + $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; + $attachedCluster->setDistribution($attachedClusterDistribution); + $attachedClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $attachedClusterFleet->setProject($fleetProject); + $attachedCluster->setFleet($attachedClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAttachedCluster($attachedCluster, $updateMask); + $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.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAttachedCluster(); + $this->assertProtobufEquals($attachedCluster, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAttachedClusterTest'); + $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 updateAttachedClusterExceptionTest() + { + $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/updateAttachedClusterTest'); + $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 + $attachedCluster = new AttachedCluster(); + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedCluster->setOidcConfig($attachedClusterOidcConfig); + $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; + $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); + $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; + $attachedCluster->setDistribution($attachedClusterDistribution); + $attachedClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $attachedClusterFleet->setProject($fleetProject); + $attachedCluster->setFleet($attachedClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAttachedCluster($attachedCluster, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAttachedClusterTest'); + 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()); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php new file mode 100644 index 000000000000..0896a1d01b38 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php @@ -0,0 +1,1504 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AwsClustersClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AwsClustersClient($options); + } + + /** @test */ + public function createAwsClusterTest() + { + $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/createAwsClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $awsRegion = 'awsRegion-1887255946'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AwsCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setAwsRegion($awsRegion); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAwsClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $awsCluster = new AwsCluster(); + $awsClusterNetworking = new AwsClusterNetworking(); + $networkingVpcId = 'networkingVpcId-1154507440'; + $awsClusterNetworking->setVpcId($networkingVpcId); + $networkingPodAddressCidrBlocks = []; + $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $awsCluster->setNetworking($awsClusterNetworking); + $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; + $awsCluster->setAwsRegion($awsClusterAwsRegion); + $awsClusterControlPlane = new AwsControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $awsClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSubnetIds = []; + $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); + $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; + $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); + $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); + $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; + $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); + $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); + $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); + $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; + $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); + $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); + $controlPlaneConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); + $awsCluster->setControlPlane($awsClusterControlPlane); + $awsClusterAuthorization = new AwsAuthorization(); + $authorizationAdminUsers = []; + $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); + $awsClusterId = 'awsClusterId938438658'; + $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + $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.gkemulticloud.v1.AwsClusters/CreateAwsCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAwsCluster(); + $this->assertProtobufEquals($awsCluster, $actualValue); + $actualValue = $actualApiRequestObject->getAwsClusterId(); + $this->assertProtobufEquals($awsClusterId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAwsClusterTest'); + $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 createAwsClusterExceptionTest() + { + $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/createAwsClusterTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $awsCluster = new AwsCluster(); + $awsClusterNetworking = new AwsClusterNetworking(); + $networkingVpcId = 'networkingVpcId-1154507440'; + $awsClusterNetworking->setVpcId($networkingVpcId); + $networkingPodAddressCidrBlocks = []; + $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $awsCluster->setNetworking($awsClusterNetworking); + $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; + $awsCluster->setAwsRegion($awsClusterAwsRegion); + $awsClusterControlPlane = new AwsControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $awsClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSubnetIds = []; + $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); + $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; + $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); + $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); + $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; + $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); + $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); + $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); + $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; + $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); + $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); + $controlPlaneConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); + $awsCluster->setControlPlane($awsClusterControlPlane); + $awsClusterAuthorization = new AwsAuthorization(); + $authorizationAdminUsers = []; + $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); + $awsClusterId = 'awsClusterId938438658'; + $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAwsClusterTest'); + 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 createAwsNodePoolTest() + { + $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/createAwsNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $expectedResponse = new AwsNodePool(); + $expectedResponse->setName($name); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAwsNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $awsNodePool = new AwsNodePool(); + $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; + $awsNodePool->setVersion($awsNodePoolVersion); + $awsNodePoolConfig = new AwsNodeConfig(); + $configIamInstanceProfile = 'configIamInstanceProfile805825313'; + $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); + $configConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); + $awsNodePool->setConfig($awsNodePoolConfig); + $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); + $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; + $awsNodePool->setSubnetId($awsNodePoolSubnetId); + $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $awsNodePoolId = 'awsNodePoolId1958033635'; + $response = $gapicClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + $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.gkemulticloud.v1.AwsClusters/CreateAwsNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAwsNodePool(); + $this->assertProtobufEquals($awsNodePool, $actualValue); + $actualValue = $actualApiRequestObject->getAwsNodePoolId(); + $this->assertProtobufEquals($awsNodePoolId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAwsNodePoolTest'); + $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 createAwsNodePoolExceptionTest() + { + $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/createAwsNodePoolTest'); + $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $awsNodePool = new AwsNodePool(); + $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; + $awsNodePool->setVersion($awsNodePoolVersion); + $awsNodePoolConfig = new AwsNodeConfig(); + $configIamInstanceProfile = 'configIamInstanceProfile805825313'; + $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); + $configConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); + $awsNodePool->setConfig($awsNodePoolConfig); + $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); + $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; + $awsNodePool->setSubnetId($awsNodePoolSubnetId); + $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $awsNodePoolId = 'awsNodePoolId1958033635'; + $response = $gapicClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAwsNodePoolTest'); + 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 deleteAwsClusterTest() + { + $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/deleteAwsClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAwsClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->deleteAwsCluster($formattedName); + $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.gkemulticloud.v1.AwsClusters/DeleteAwsCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAwsClusterTest'); + $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 deleteAwsClusterExceptionTest() + { + $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/deleteAwsClusterTest'); + $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->deleteAwsCluster($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAwsClusterTest'); + 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 deleteAwsNodePoolTest() + { + $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/deleteAwsNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAwsNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + $response = $gapicClient->deleteAwsNodePool($formattedName); + $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.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAwsNodePoolTest'); + $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 deleteAwsNodePoolExceptionTest() + { + $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/deleteAwsNodePoolTest'); + $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->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + $response = $gapicClient->deleteAwsNodePool($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAwsNodePoolTest'); + 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 generateAwsAccessTokenTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $accessToken = 'accessToken-1938933922'; + $expectedResponse = new GenerateAwsAccessTokenResponse(); + $expectedResponse->setAccessToken($accessToken); + $transport->addResponse($expectedResponse); + // Mock request + $formattedAwsCluster = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->generateAwsAccessToken($formattedAwsCluster); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken', $actualFuncCall); + $actualValue = $actualRequestObject->getAwsCluster(); + $this->assertProtobufEquals($formattedAwsCluster, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateAwsAccessTokenExceptionTest() + { + $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 + $formattedAwsCluster = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + try { + $gapicClient->generateAwsAccessToken($formattedAwsCluster); + // 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 getAwsClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $awsRegion = 'awsRegion-1887255946'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AwsCluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setAwsRegion($awsRegion); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->getAwsCluster($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAwsClusterExceptionTest() + { + $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + try { + $gapicClient->getAwsCluster($formattedName); + // 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 getAwsNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $expectedResponse = new AwsNodePool(); + $expectedResponse->setName($name2); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + $response = $gapicClient->getAwsNodePool($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAwsNodePoolExceptionTest() + { + $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->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + try { + $gapicClient->getAwsNodePool($formattedName); + // 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 getAwsServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new AwsServerConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->awsServerConfigName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->getAwsServerConfig($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAwsServerConfigExceptionTest() + { + $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->awsServerConfigName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->getAwsServerConfig($formattedName); + // 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 listAwsClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $awsClustersElement = new AwsCluster(); + $awsClusters = [ + $awsClustersElement, + ]; + $expectedResponse = new ListAwsClustersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAwsClusters($awsClusters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listAwsClusters($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAwsClusters()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAwsClustersExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->listAwsClusters($formattedParent); + // 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 listAwsNodePoolsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $awsNodePoolsElement = new AwsNodePool(); + $awsNodePools = [ + $awsNodePoolsElement, + ]; + $expectedResponse = new ListAwsNodePoolsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAwsNodePools($awsNodePools); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->listAwsNodePools($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAwsNodePools()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAwsNodePoolsExceptionTest() + { + $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + try { + $gapicClient->listAwsNodePools($formattedParent); + // 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 updateAwsClusterTest() + { + $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/updateAwsClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $awsRegion = 'awsRegion-1887255946'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AwsCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setAwsRegion($awsRegion); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAwsClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $awsCluster = new AwsCluster(); + $awsClusterNetworking = new AwsClusterNetworking(); + $networkingVpcId = 'networkingVpcId-1154507440'; + $awsClusterNetworking->setVpcId($networkingVpcId); + $networkingPodAddressCidrBlocks = []; + $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $awsCluster->setNetworking($awsClusterNetworking); + $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; + $awsCluster->setAwsRegion($awsClusterAwsRegion); + $awsClusterControlPlane = new AwsControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $awsClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSubnetIds = []; + $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); + $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; + $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); + $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); + $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; + $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); + $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); + $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); + $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; + $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); + $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); + $controlPlaneConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); + $awsCluster->setControlPlane($awsClusterControlPlane); + $awsClusterAuthorization = new AwsAuthorization(); + $authorizationAdminUsers = []; + $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); + $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.gkemulticloud.v1.AwsClusters/UpdateAwsCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAwsCluster(); + $this->assertProtobufEquals($awsCluster, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAwsClusterTest'); + $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 updateAwsClusterExceptionTest() + { + $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/updateAwsClusterTest'); + $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 + $awsCluster = new AwsCluster(); + $awsClusterNetworking = new AwsClusterNetworking(); + $networkingVpcId = 'networkingVpcId-1154507440'; + $awsClusterNetworking->setVpcId($networkingVpcId); + $networkingPodAddressCidrBlocks = []; + $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $awsCluster->setNetworking($awsClusterNetworking); + $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; + $awsCluster->setAwsRegion($awsClusterAwsRegion); + $awsClusterControlPlane = new AwsControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $awsClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSubnetIds = []; + $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); + $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; + $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); + $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); + $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; + $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); + $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); + $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); + $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; + $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); + $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); + $controlPlaneConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); + $awsCluster->setControlPlane($awsClusterControlPlane); + $awsClusterAuthorization = new AwsAuthorization(); + $authorizationAdminUsers = []; + $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAwsClusterTest'); + 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 updateAwsNodePoolTest() + { + $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/updateAwsNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $expectedResponse = new AwsNodePool(); + $expectedResponse->setName($name); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAwsNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $awsNodePool = new AwsNodePool(); + $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; + $awsNodePool->setVersion($awsNodePoolVersion); + $awsNodePoolConfig = new AwsNodeConfig(); + $configIamInstanceProfile = 'configIamInstanceProfile805825313'; + $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); + $configConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); + $awsNodePool->setConfig($awsNodePoolConfig); + $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); + $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; + $awsNodePool->setSubnetId($awsNodePoolSubnetId); + $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAwsNodePool($awsNodePool, $updateMask); + $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.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAwsNodePool(); + $this->assertProtobufEquals($awsNodePool, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAwsNodePoolTest'); + $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 updateAwsNodePoolExceptionTest() + { + $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/updateAwsNodePoolTest'); + $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 + $awsNodePool = new AwsNodePool(); + $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; + $awsNodePool->setVersion($awsNodePoolVersion); + $awsNodePoolConfig = new AwsNodeConfig(); + $configIamInstanceProfile = 'configIamInstanceProfile805825313'; + $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); + $configConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); + $awsNodePool->setConfig($awsNodePoolConfig); + $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); + $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; + $awsNodePool->setSubnetId($awsNodePoolSubnetId); + $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAwsNodePool($awsNodePool, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAwsNodePoolTest'); + 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()); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php new file mode 100644 index 000000000000..8141f41b1b98 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php @@ -0,0 +1,1878 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AzureClustersClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AzureClustersClient($options); + } + + /** @test */ + public function createAzureClientTest() + { + $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/createAzureClientTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $tenantId = 'tenantId-1852780336'; + $applicationId = 'applicationId-1287148950'; + $pemCertificate = 'pemCertificate1234463984'; + $uid = 'uid115792'; + $expectedResponse = new AzureClient(); + $expectedResponse->setName($name); + $expectedResponse->setTenantId($tenantId); + $expectedResponse->setApplicationId($applicationId); + $expectedResponse->setPemCertificate($pemCertificate); + $expectedResponse->setUid($uid); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAzureClientTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $azureClient = new AzureClient(); + $azureClientTenantId = 'azureClientTenantId-567307073'; + $azureClient->setTenantId($azureClientTenantId); + $azureClientApplicationId = 'azureClientApplicationId264838513'; + $azureClient->setApplicationId($azureClientApplicationId); + $azureClientId = 'azureClientId315645023'; + $response = $gapicClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + $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.gkemulticloud.v1.AzureClusters/CreateAzureClient', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAzureClient(); + $this->assertProtobufEquals($azureClient, $actualValue); + $actualValue = $actualApiRequestObject->getAzureClientId(); + $this->assertProtobufEquals($azureClientId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureClientTest'); + $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 createAzureClientExceptionTest() + { + $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/createAzureClientTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $azureClient = new AzureClient(); + $azureClientTenantId = 'azureClientTenantId-567307073'; + $azureClient->setTenantId($azureClientTenantId); + $azureClientApplicationId = 'azureClientApplicationId264838513'; + $azureClient->setApplicationId($azureClientApplicationId); + $azureClientId = 'azureClientId315645023'; + $response = $gapicClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureClientTest'); + 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 createAzureClusterTest() + { + $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/createAzureClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $azureRegion = 'azureRegion-253373788'; + $resourceGroupId = 'resourceGroupId-1092054036'; + $azureClient = 'azureClient-676290693'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AzureCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setAzureRegion($azureRegion); + $expectedResponse->setResourceGroupId($resourceGroupId); + $expectedResponse->setAzureClient($azureClient); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAzureClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $azureCluster = new AzureCluster(); + $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; + $azureCluster->setAzureRegion($azureClusterAzureRegion); + $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; + $azureCluster->setResourceGroupId($azureClusterResourceGroupId); + $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; + $azureCluster->setAzureClient($azureClusterAzureClient); + $azureClusterNetworking = new AzureClusterNetworking(); + $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; + $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); + $networkingPodAddressCidrBlocks = []; + $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $azureCluster->setNetworking($azureClusterNetworking); + $azureClusterControlPlane = new AzureControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $azureClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); + $azureCluster->setControlPlane($azureClusterControlPlane); + $azureClusterAuthorization = new AzureAuthorization(); + $authorizationAdminUsers = []; + $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); + $azureClusterId = 'azureClusterId332577072'; + $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); + $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.gkemulticloud.v1.AzureClusters/CreateAzureCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAzureCluster(); + $this->assertProtobufEquals($azureCluster, $actualValue); + $actualValue = $actualApiRequestObject->getAzureClusterId(); + $this->assertProtobufEquals($azureClusterId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureClusterTest'); + $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 createAzureClusterExceptionTest() + { + $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/createAzureClusterTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $azureCluster = new AzureCluster(); + $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; + $azureCluster->setAzureRegion($azureClusterAzureRegion); + $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; + $azureCluster->setResourceGroupId($azureClusterResourceGroupId); + $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; + $azureCluster->setAzureClient($azureClusterAzureClient); + $azureClusterNetworking = new AzureClusterNetworking(); + $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; + $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); + $networkingPodAddressCidrBlocks = []; + $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $azureCluster->setNetworking($azureClusterNetworking); + $azureClusterControlPlane = new AzureControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $azureClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); + $azureCluster->setControlPlane($azureClusterControlPlane); + $azureClusterAuthorization = new AzureAuthorization(); + $authorizationAdminUsers = []; + $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); + $azureClusterId = 'azureClusterId332577072'; + $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureClusterTest'); + 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 createAzureNodePoolTest() + { + $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/createAzureNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $azureAvailabilityZone = 'azureAvailabilityZone541920864'; + $expectedResponse = new AzureNodePool(); + $expectedResponse->setName($name); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAzureNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $azureNodePool = new AzureNodePool(); + $azureNodePoolVersion = 'azureNodePoolVersion349490987'; + $azureNodePool->setVersion($azureNodePoolVersion); + $azureNodePoolConfig = new AzureNodeConfig(); + $configSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureNodePoolConfig->setSshConfig($configSshConfig); + $azureNodePool->setConfig($azureNodePoolConfig); + $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; + $azureNodePool->setSubnetId($azureNodePoolSubnetId); + $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); + $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $azureNodePoolId = 'azureNodePoolId-454365551'; + $response = $gapicClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); + $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.gkemulticloud.v1.AzureClusters/CreateAzureNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAzureNodePool(); + $this->assertProtobufEquals($azureNodePool, $actualValue); + $actualValue = $actualApiRequestObject->getAzureNodePoolId(); + $this->assertProtobufEquals($azureNodePoolId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureNodePoolTest'); + $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 createAzureNodePoolExceptionTest() + { + $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/createAzureNodePoolTest'); + $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $azureNodePool = new AzureNodePool(); + $azureNodePoolVersion = 'azureNodePoolVersion349490987'; + $azureNodePool->setVersion($azureNodePoolVersion); + $azureNodePoolConfig = new AzureNodeConfig(); + $configSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureNodePoolConfig->setSshConfig($configSshConfig); + $azureNodePool->setConfig($azureNodePoolConfig); + $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; + $azureNodePool->setSubnetId($azureNodePoolSubnetId); + $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); + $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $azureNodePoolId = 'azureNodePoolId-454365551'; + $response = $gapicClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureNodePoolTest'); + 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 deleteAzureClientTest() + { + $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/deleteAzureClientTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAzureClientTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + $response = $gapicClient->deleteAzureClient($formattedName); + $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.gkemulticloud.v1.AzureClusters/DeleteAzureClient', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureClientTest'); + $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 deleteAzureClientExceptionTest() + { + $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/deleteAzureClientTest'); + $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->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + $response = $gapicClient->deleteAzureClient($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureClientTest'); + 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 deleteAzureClusterTest() + { + $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/deleteAzureClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAzureClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->deleteAzureCluster($formattedName); + $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.gkemulticloud.v1.AzureClusters/DeleteAzureCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureClusterTest'); + $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 deleteAzureClusterExceptionTest() + { + $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/deleteAzureClusterTest'); + $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->deleteAzureCluster($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureClusterTest'); + 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 deleteAzureNodePoolTest() + { + $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/deleteAzureNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAzureNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + $response = $gapicClient->deleteAzureNodePool($formattedName); + $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.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureNodePoolTest'); + $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 deleteAzureNodePoolExceptionTest() + { + $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/deleteAzureNodePoolTest'); + $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->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + $response = $gapicClient->deleteAzureNodePool($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureNodePoolTest'); + 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 generateAzureAccessTokenTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $accessToken = 'accessToken-1938933922'; + $expectedResponse = new GenerateAzureAccessTokenResponse(); + $expectedResponse->setAccessToken($accessToken); + $transport->addResponse($expectedResponse); + // Mock request + $formattedAzureCluster = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->generateAzureAccessToken($formattedAzureCluster); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken', $actualFuncCall); + $actualValue = $actualRequestObject->getAzureCluster(); + $this->assertProtobufEquals($formattedAzureCluster, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateAzureAccessTokenExceptionTest() + { + $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 + $formattedAzureCluster = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + try { + $gapicClient->generateAzureAccessToken($formattedAzureCluster); + // 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 getAzureClientTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $tenantId = 'tenantId-1852780336'; + $applicationId = 'applicationId-1287148950'; + $pemCertificate = 'pemCertificate1234463984'; + $uid = 'uid115792'; + $expectedResponse = new AzureClient(); + $expectedResponse->setName($name2); + $expectedResponse->setTenantId($tenantId); + $expectedResponse->setApplicationId($applicationId); + $expectedResponse->setPemCertificate($pemCertificate); + $expectedResponse->setUid($uid); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + $response = $gapicClient->getAzureClient($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAzureClientExceptionTest() + { + $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->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + try { + $gapicClient->getAzureClient($formattedName); + // 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 getAzureClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $azureRegion = 'azureRegion-253373788'; + $resourceGroupId = 'resourceGroupId-1092054036'; + $azureClient = 'azureClient-676290693'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AzureCluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setAzureRegion($azureRegion); + $expectedResponse->setResourceGroupId($resourceGroupId); + $expectedResponse->setAzureClient($azureClient); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->getAzureCluster($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAzureClusterExceptionTest() + { + $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + try { + $gapicClient->getAzureCluster($formattedName); + // 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 getAzureNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $azureAvailabilityZone = 'azureAvailabilityZone541920864'; + $expectedResponse = new AzureNodePool(); + $expectedResponse->setName($name2); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + $response = $gapicClient->getAzureNodePool($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAzureNodePoolExceptionTest() + { + $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->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + try { + $gapicClient->getAzureNodePool($formattedName); + // 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 getAzureServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new AzureServerConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->azureServerConfigName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->getAzureServerConfig($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAzureServerConfigExceptionTest() + { + $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->azureServerConfigName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->getAzureServerConfig($formattedName); + // 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 listAzureClientsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $azureClientsElement = new AzureClient(); + $azureClients = [ + $azureClientsElement, + ]; + $expectedResponse = new ListAzureClientsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAzureClients($azureClients); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listAzureClients($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAzureClients()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAzureClientsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->listAzureClients($formattedParent); + // 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 listAzureClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $azureClustersElement = new AzureCluster(); + $azureClusters = [ + $azureClustersElement, + ]; + $expectedResponse = new ListAzureClustersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAzureClusters($azureClusters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listAzureClusters($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAzureClusters()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAzureClustersExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->listAzureClusters($formattedParent); + // 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 listAzureNodePoolsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $azureNodePoolsElement = new AzureNodePool(); + $azureNodePools = [ + $azureNodePoolsElement, + ]; + $expectedResponse = new ListAzureNodePoolsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAzureNodePools($azureNodePools); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->listAzureNodePools($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAzureNodePools()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAzureNodePoolsExceptionTest() + { + $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + try { + $gapicClient->listAzureNodePools($formattedParent); + // 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 updateAzureClusterTest() + { + $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/updateAzureClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $azureRegion = 'azureRegion-253373788'; + $resourceGroupId = 'resourceGroupId-1092054036'; + $azureClient = 'azureClient-676290693'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AzureCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setAzureRegion($azureRegion); + $expectedResponse->setResourceGroupId($resourceGroupId); + $expectedResponse->setAzureClient($azureClient); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAzureClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $azureCluster = new AzureCluster(); + $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; + $azureCluster->setAzureRegion($azureClusterAzureRegion); + $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; + $azureCluster->setResourceGroupId($azureClusterResourceGroupId); + $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; + $azureCluster->setAzureClient($azureClusterAzureClient); + $azureClusterNetworking = new AzureClusterNetworking(); + $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; + $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); + $networkingPodAddressCidrBlocks = []; + $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $azureCluster->setNetworking($azureClusterNetworking); + $azureClusterControlPlane = new AzureControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $azureClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); + $azureCluster->setControlPlane($azureClusterControlPlane); + $azureClusterAuthorization = new AzureAuthorization(); + $authorizationAdminUsers = []; + $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); + $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.gkemulticloud.v1.AzureClusters/UpdateAzureCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAzureCluster(); + $this->assertProtobufEquals($azureCluster, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAzureClusterTest'); + $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 updateAzureClusterExceptionTest() + { + $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/updateAzureClusterTest'); + $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 + $azureCluster = new AzureCluster(); + $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; + $azureCluster->setAzureRegion($azureClusterAzureRegion); + $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; + $azureCluster->setResourceGroupId($azureClusterResourceGroupId); + $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; + $azureCluster->setAzureClient($azureClusterAzureClient); + $azureClusterNetworking = new AzureClusterNetworking(); + $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; + $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); + $networkingPodAddressCidrBlocks = []; + $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $azureCluster->setNetworking($azureClusterNetworking); + $azureClusterControlPlane = new AzureControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $azureClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); + $azureCluster->setControlPlane($azureClusterControlPlane); + $azureClusterAuthorization = new AzureAuthorization(); + $authorizationAdminUsers = []; + $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAzureClusterTest'); + 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 updateAzureNodePoolTest() + { + $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/updateAzureNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $azureAvailabilityZone = 'azureAvailabilityZone541920864'; + $expectedResponse = new AzureNodePool(); + $expectedResponse->setName($name); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAzureNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $azureNodePool = new AzureNodePool(); + $azureNodePoolVersion = 'azureNodePoolVersion349490987'; + $azureNodePool->setVersion($azureNodePoolVersion); + $azureNodePoolConfig = new AzureNodeConfig(); + $configSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureNodePoolConfig->setSshConfig($configSshConfig); + $azureNodePool->setConfig($azureNodePoolConfig); + $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; + $azureNodePool->setSubnetId($azureNodePoolSubnetId); + $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); + $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAzureNodePool($azureNodePool, $updateMask); + $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.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAzureNodePool(); + $this->assertProtobufEquals($azureNodePool, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAzureNodePoolTest'); + $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 updateAzureNodePoolExceptionTest() + { + $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/updateAzureNodePoolTest'); + $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 + $azureNodePool = new AzureNodePool(); + $azureNodePoolVersion = 'azureNodePoolVersion349490987'; + $azureNodePool->setVersion($azureNodePoolVersion); + $azureNodePoolConfig = new AzureNodeConfig(); + $configSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureNodePoolConfig->setSshConfig($configSshConfig); + $azureNodePool->setConfig($azureNodePoolConfig); + $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; + $azureNodePool->setSubnetId($azureNodePoolSubnetId); + $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); + $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAzureNodePool($azureNodePool, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAzureNodePoolTest'); + 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()); + } +} From 113ab3a631af8fc8865136a531fa95c1c044afb2 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 20 Dec 2022 21:56:06 +0000 Subject: [PATCH 2/4] =?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/AttachedResources.php | Bin .../metadata}/V1/AttachedService.php | 0 GkeMultiCloud/metadata/V1/AwsResources.php | Bin 6526 -> 7021 bytes GkeMultiCloud/metadata/V1/AzureResources.php | Bin 6766 -> 7067 bytes GkeMultiCloud/metadata/V1/CommonResources.php | Bin 1972 -> 2183 bytes .../create_attached_cluster.php | 0 .../delete_attached_cluster.php | 0 ...rate_attached_cluster_install_manifest.php | 0 .../get_attached_cluster.php | 0 .../get_attached_server_config.php | 0 .../import_attached_cluster.php | 0 .../list_attached_clusters.php | 0 .../update_attached_cluster.php | 0 .../AwsClustersClient/create_aws_cluster.php | 53 +- .../create_aws_node_pool.php | 31 +- .../AwsClustersClient/delete_aws_cluster.php | 10 +- .../delete_aws_node_pool.php | 6 +- .../generate_aws_access_token.php | 4 +- .../V1/AwsClustersClient/get_aws_cluster.php | 7 +- .../AwsClustersClient/get_aws_node_pool.php | 7 +- .../get_aws_server_config.php | 4 +- .../AwsClustersClient/list_aws_clusters.php | 4 +- .../AwsClustersClient/list_aws_node_pools.php | 4 +- .../AwsClustersClient/update_aws_cluster.php | 38 +- .../update_aws_node_pool.php | 14 +- .../create_azure_client.php | 20 +- .../create_azure_cluster.php | 53 +- .../create_azure_node_pool.php | 39 +- .../delete_azure_client.php | 9 +- .../delete_azure_cluster.php | 10 +- .../delete_azure_node_pool.php | 6 +- .../generate_azure_access_token.php | 4 +- .../AzureClustersClient/get_azure_client.php | 10 +- .../AzureClustersClient/get_azure_cluster.php | 7 +- .../get_azure_node_pool.php | 7 +- .../get_azure_server_config.php | 4 +- .../list_azure_clients.php | 4 +- .../list_azure_clusters.php | 4 +- .../list_azure_node_pools.php | 4 +- .../update_azure_cluster.php | 38 +- .../update_azure_node_pool.php | 21 +- .../src}/V1/AttachedCluster.php | 36 +- .../src}/V1/AttachedCluster/State.php | 2 - .../src}/V1/AttachedClusterError.php | 2 +- .../src}/V1/AttachedClusterUser.php | 2 +- .../src}/V1/AttachedClustersAuthorization.php | 0 .../src/V1/AttachedClustersClient.php | 0 .../src}/V1/AttachedClustersGrpcClient.php | 0 .../src}/V1/AttachedOidcConfig.php | 4 +- .../src}/V1/AttachedPlatformVersionInfo.php | 2 +- .../src}/V1/AttachedServerConfig.php | 2 +- .../AwsAutoscalingGroupMetricsCollection.php | 2 +- GkeMultiCloud/src/V1/AwsCluster.php | 92 +- .../src}/V1/AwsClusterError.php | 2 +- GkeMultiCloud/src/V1/AwsClusterNetworking.php | 48 +- .../src/V1/AwsClustersGrpcClient.php | 30 +- GkeMultiCloud/src/V1/AwsControlPlane.php | 32 +- GkeMultiCloud/src/V1/AwsNodeConfig.php | 120 +- GkeMultiCloud/src/V1/AwsNodePool.php | 46 +- .../src/V1/AwsNodePoolAutoscaling.php | 32 +- .../src}/V1/AwsNodePoolError.php | 2 +- GkeMultiCloud/src/V1/AwsProxyConfig.php | 12 + .../src/V1/AwsServicesAuthentication.php | 16 +- GkeMultiCloud/src/V1/AwsVolumeTemplate.php | 28 +- GkeMultiCloud/src/V1/AzureClient.php | 7 +- GkeMultiCloud/src/V1/AzureCluster.php | 140 +- .../src}/V1/AzureClusterError.php | 2 +- .../src/V1/AzureClusterNetworking.php | 32 +- .../src/V1/AzureClustersGrpcClient.php | 45 +- .../src/V1/AzureConfigEncryption.php | 24 +- GkeMultiCloud/src/V1/AzureControlPlane.php | 44 +- GkeMultiCloud/src/V1/AzureNodeConfig.php | 16 +- GkeMultiCloud/src/V1/AzureNodePool.php | 62 +- .../src/V1/AzureNodePoolAutoscaling.php | 32 +- .../src}/V1/AzureNodePoolError.php | 2 +- GkeMultiCloud/src/V1/AzureProxyConfig.php | 12 + GkeMultiCloud/src/V1/AzureSshConfig.php | 24 +- .../src}/V1/CreateAttachedClusterRequest.php | 8 +- .../src/V1/CreateAwsClusterRequest.php | 76 +- .../src/V1/CreateAwsNodePoolRequest.php | 68 +- .../src/V1/CreateAzureClientRequest.php | 76 +- .../src/V1/CreateAzureClusterRequest.php | 76 +- .../src/V1/CreateAzureNodePoolRequest.php | 68 +- .../src}/V1/DeleteAttachedClusterRequest.php | 10 +- .../src/V1/DeleteAwsClusterRequest.php | 52 +- .../src/V1/DeleteAwsNodePoolRequest.php | 54 +- .../src/V1/DeleteAzureClientRequest.php | 52 +- .../src/V1/DeleteAzureClusterRequest.php | 52 +- .../src/V1/DeleteAzureNodePoolRequest.php | 58 +- GkeMultiCloud/src/V1/Fleet.php | 24 +- .../V1/Gapic/AttachedClustersGapicClient.php | 210 +- .../src/V1/Gapic/AwsClustersGapicClient.php | 134 +- .../src/V1/Gapic/AzureClustersGapicClient.php | 186 +- ...eAttachedClusterInstallManifestRequest.php | 6 +- ...AttachedClusterInstallManifestResponse.php | 2 +- .../src/V1/GenerateAwsAccessTokenRequest.php | 16 +- .../V1/GenerateAzureAccessTokenRequest.php | 16 +- .../src}/V1/GetAttachedClusterRequest.php | 2 +- .../V1/GetAttachedServerConfigRequest.php | 2 +- GkeMultiCloud/src/V1/GetAwsClusterRequest.php | 16 +- .../src/V1/GetAwsNodePoolRequest.php | 16 +- .../src/V1/GetAwsServerConfigRequest.php | 16 +- .../src/V1/GetAzureClientRequest.php | 28 +- .../src/V1/GetAzureClusterRequest.php | 16 +- .../src/V1/GetAzureNodePoolRequest.php | 16 +- .../src/V1/GetAzureServerConfigRequest.php | 16 +- .../src}/V1/ImportAttachedClusterRequest.php | 10 +- .../src}/V1/ListAttachedClustersRequest.php | 6 +- .../src}/V1/ListAttachedClustersResponse.php | 2 +- .../src/V1/ListAwsClustersRequest.php | 28 +- .../src/V1/ListAwsClustersResponse.php | 16 +- .../src/V1/ListAwsNodePoolsRequest.php | 28 +- .../src/V1/ListAwsNodePoolsResponse.php | 12 +- .../src/V1/ListAzureClientsRequest.php | 28 +- .../src/V1/ListAzureClientsResponse.php | 16 +- .../src/V1/ListAzureClustersRequest.php | 28 +- .../src/V1/ListAzureClustersResponse.php | 16 +- .../src/V1/ListAzureNodePoolsRequest.php | 28 +- .../src/V1/ListAzureNodePoolsResponse.php | 12 +- .../src}/V1/ManagedPrometheusConfig.php | 2 +- .../src}/V1/MonitoringConfig.php | 2 +- GkeMultiCloud/src/V1/OperationMetadata.php | 100 +- GkeMultiCloud/src/V1/ReplicaPlacement.php | 40 +- .../src}/V1/UpdateAttachedClusterRequest.php | 6 +- .../src/V1/UpdateAwsClusterRequest.php | 48 +- .../src/V1/UpdateAwsNodePoolRequest.php | 40 +- .../src/V1/UpdateAzureClusterRequest.php | 48 +- .../src/V1/UpdateAzureNodePoolRequest.php | 20 +- GkeMultiCloud/src/V1/gapic_metadata.json | 49 + .../attached_clusters_client_config.json | 0 .../attached_clusters_descriptor_config.php | 0 .../attached_clusters_rest_client_config.php | 0 .../Unit/V1/AttachedClustersClientTest.php | 0 .../tests/Unit/V1/AwsClustersClientTest.php | 17 + .../tests/Unit/V1/AzureClustersClientTest.php | 17 + .../Cloud/Gkemulticloud/V1/AwsResources.php | Bin 7021 -> 0 bytes .../Cloud/Gkemulticloud/V1/AwsService.php | 117 - .../Cloud/Gkemulticloud/V1/AzureResources.php | Bin 7067 -> 0 bytes .../Cloud/Gkemulticloud/V1/AzureService.php | 142 -- .../Gkemulticloud/V1/CommonResources.php | Bin 2183 -> 0 bytes .../V1/AttachedCluster_State.php | 16 - .../GkeMultiCloud/V1/AwsAuthorization.php | 83 - .../Cloud/GkeMultiCloud/V1/AwsCluster.php | 879 -------- .../GkeMultiCloud/V1/AwsCluster/State.php | 96 - .../GkeMultiCloud/V1/AwsClusterNetworking.php | 161 -- .../Cloud/GkeMultiCloud/V1/AwsClusterUser.php | 67 - .../GkeMultiCloud/V1/AwsCluster_State.php | 16 - .../V1/AwsClustersGrpcClient.php | 246 --- .../GkeMultiCloud/V1/AwsConfigEncryption.php | 67 - .../GkeMultiCloud/V1/AwsControlPlane.php | 693 ------ .../V1/AwsDatabaseEncryption.php | 67 - .../GkeMultiCloud/V1/AwsInstancePlacement.php | 70 - .../V1/AwsInstancePlacement/Tenancy.php | 75 - .../V1/AwsInstancePlacement_Tenancy.php | 16 - .../GkeMultiCloud/V1/AwsK8sVersionInfo.php | 67 - .../Cloud/GkeMultiCloud/V1/AwsNodeConfig.php | 607 ------ .../Cloud/GkeMultiCloud/V1/AwsNodePool.php | 639 ------ .../GkeMultiCloud/V1/AwsNodePool/State.php | 95 - .../V1/AwsNodePoolAutoscaling.php | 110 - .../GkeMultiCloud/V1/AwsNodePool_State.php | 16 - .../Cloud/GkeMultiCloud/V1/AwsProxyConfig.php | 121 -- .../GkeMultiCloud/V1/AwsServerConfig.php | 135 -- .../V1/AwsServicesAuthentication.php | 109 - .../Cloud/GkeMultiCloud/V1/AwsSshConfig.php | 67 - .../GkeMultiCloud/V1/AwsVolumeTemplate.php | 197 -- .../V1/AwsVolumeTemplate/VolumeType.php | 67 - .../V1/AwsVolumeTemplate_VolumeType.php | 16 - .../GkeMultiCloud/V1/AzureAuthorization.php | 83 - .../Cloud/GkeMultiCloud/V1/AzureClient.php | 333 --- .../Cloud/GkeMultiCloud/V1/AzureCluster.php | 1035 --------- .../GkeMultiCloud/V1/AzureCluster/State.php | 96 - .../V1/AzureClusterNetworking.php | 241 --- .../V1/AzureClusterResources.php | 102 - .../GkeMultiCloud/V1/AzureClusterUser.php | 67 - .../GkeMultiCloud/V1/AzureCluster_State.php | 16 - .../V1/AzureClustersGrpcClient.php | 326 --- .../V1/AzureConfigEncryption.php | 131 -- .../GkeMultiCloud/V1/AzureControlPlane.php | 613 ------ .../V1/AzureDatabaseEncryption.php | 85 - .../GkeMultiCloud/V1/AzureDiskTemplate.php | 75 - .../GkeMultiCloud/V1/AzureK8sVersionInfo.php | 67 - .../GkeMultiCloud/V1/AzureNodeConfig.php | 436 ---- .../Cloud/GkeMultiCloud/V1/AzureNodePool.php | 669 ------ .../GkeMultiCloud/V1/AzureNodePool/State.php | 95 - .../V1/AzureNodePoolAutoscaling.php | 111 - .../GkeMultiCloud/V1/AzureNodePool_State.php | 16 - .../GkeMultiCloud/V1/AzureProxyConfig.php | 129 -- .../GkeMultiCloud/V1/AzureServerConfig.php | 152 -- .../Cloud/GkeMultiCloud/V1/AzureSshConfig.php | 75 - .../V1/CreateAwsClusterRequest.php | 227 -- .../V1/CreateAwsNodePoolRequest.php | 231 -- .../V1/CreateAzureClientRequest.php | 227 -- .../V1/CreateAzureClusterRequest.php | 227 -- .../V1/CreateAzureNodePoolRequest.php | 227 -- .../V1/DeleteAwsClusterRequest.php | 221 -- .../V1/DeleteAwsNodePoolRequest.php | 225 -- .../V1/DeleteAzureClientRequest.php | 175 -- .../V1/DeleteAzureClusterRequest.php | 221 -- .../V1/DeleteAzureNodePoolRequest.php | 229 -- .../Google/Cloud/GkeMultiCloud/V1/Fleet.php | 131 -- .../V1/GenerateAwsAccessTokenRequest.php | 91 - .../V1/GenerateAwsAccessTokenResponse.php | 111 - .../V1/GenerateAzureAccessTokenRequest.php | 91 - .../V1/GenerateAzureAccessTokenResponse.php | 111 - .../GkeMultiCloud/V1/GetAwsClusterRequest.php | 91 - .../V1/GetAwsNodePoolRequest.php | 91 - .../V1/GetAwsServerConfigRequest.php | 91 - .../V1/GetAzureClientRequest.php | 95 - .../V1/GetAzureClusterRequest.php | 91 - .../V1/GetAzureNodePoolRequest.php | 91 - .../V1/GetAzureServerConfigRequest.php | 91 - .../V1/ListAwsClustersRequest.php | 179 -- .../V1/ListAwsClustersResponse.php | 109 - .../V1/ListAwsNodePoolsRequest.php | 183 -- .../V1/ListAwsNodePoolsResponse.php | 109 - .../V1/ListAzureClientsRequest.php | 179 -- .../V1/ListAzureClientsResponse.php | 109 - .../V1/ListAzureClustersRequest.php | 179 -- .../V1/ListAzureClustersResponse.php | 109 - .../V1/ListAzureNodePoolsRequest.php | 183 -- .../V1/ListAzureNodePoolsResponse.php | 109 - .../V1/LoggingComponentConfig.php | 67 - .../V1/LoggingComponentConfig/Component.php | 64 - .../V1/LoggingComponentConfig_Component.php | 16 - .../Cloud/GkeMultiCloud/V1/LoggingConfig.php | 77 - .../GkeMultiCloud/V1/MaxPodsConstraint.php | 67 - .../Cloud/GkeMultiCloud/V1/NodeTaint.php | 135 -- .../GkeMultiCloud/V1/NodeTaint/Effect.php | 77 - .../GkeMultiCloud/V1/NodeTaint_Effect.php | 16 - .../GkeMultiCloud/V1/OperationMetadata.php | 315 --- .../GkeMultiCloud/V1/ReplicaPlacement.php | 113 - .../V1/UpdateAwsClusterRequest.php | 259 --- .../V1/UpdateAwsNodePoolRequest.php | 255 --- .../V1/UpdateAzureClusterRequest.php | 219 -- .../V1/UpdateAzureNodePoolRequest.php | 187 -- .../V1/WorkloadIdentityConfig.php | 139 -- .../AwsClustersClient/create_aws_cluster.php | 224 -- .../create_aws_node_pool.php | 163 -- .../AwsClustersClient/delete_aws_cluster.php | 90 - .../delete_aws_node_pool.php | 92 - .../generate_aws_access_token.php | 79 - .../V1/AwsClustersClient/get_aws_cluster.php | 75 - .../AwsClustersClient/get_aws_node_pool.php | 80 - .../get_aws_server_config.php | 75 - .../AwsClustersClient/list_aws_clusters.php | 78 - .../AwsClustersClient/list_aws_node_pools.php | 80 - .../AwsClustersClient/update_aws_cluster.php | 197 -- .../update_aws_node_pool.php | 136 -- .../create_azure_client.php | 122 -- .../create_azure_cluster.php | 238 --- .../create_azure_node_pool.php | 164 -- .../delete_azure_client.php | 91 - .../delete_azure_cluster.php | 94 - .../delete_azure_node_pool.php | 92 - .../generate_azure_access_token.php | 79 - .../AzureClustersClient/get_azure_client.php | 76 - .../AzureClustersClient/get_azure_cluster.php | 79 - .../get_azure_node_pool.php | 80 - .../get_azure_server_config.php | 75 - .../list_azure_clients.php | 78 - .../list_azure_clusters.php | 78 - .../list_azure_node_pools.php | 84 - .../update_azure_cluster.php | 207 -- .../update_azure_node_pool.php | 129 -- .../v1/src/V1/AwsClustersClient.php | 34 - .../v1/src/V1/AzureClustersClient.php | 34 - .../src/V1/Gapic/AwsClustersGapicClient.php | 1365 ------------ .../src/V1/Gapic/AzureClustersGapicClient.php | 1697 --------------- .../v1/src/V1/gapic_metadata.json | 216 -- .../resources/aws_clusters_client_config.json | 104 - .../aws_clusters_descriptor_config.php | 88 - .../aws_clusters_rest_client_config.php | 205 -- .../azure_clusters_client_config.json | 124 -- .../azure_clusters_descriptor_config.php | 118 -- .../azure_clusters_rest_client_config.php | 253 --- .../tests/Unit/V1/AwsClustersClientTest.php | 1504 ------------- .../tests/Unit/V1/AzureClustersClientTest.php | 1878 ----------------- 277 files changed, 2262 insertions(+), 28710 deletions(-) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud => GkeMultiCloud/metadata}/V1/AttachedResources.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud => GkeMultiCloud/metadata}/V1/AttachedService.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/samples/V1/AttachedClustersClient/create_attached_cluster.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/samples/V1/AttachedClustersClient/delete_attached_cluster.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/samples/V1/AttachedClustersClient/get_attached_cluster.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/samples/V1/AttachedClustersClient/get_attached_server_config.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/samples/V1/AttachedClustersClient/import_attached_cluster.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/samples/V1/AttachedClustersClient/list_attached_clusters.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/samples/V1/AttachedClustersClient/update_attached_cluster.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedCluster.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedCluster/State.php (94%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedClusterError.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedClusterUser.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedClustersAuthorization.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/src/V1/AttachedClustersClient.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedClustersGrpcClient.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedOidcConfig.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedPlatformVersionInfo.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AttachedServerConfig.php (99%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AwsAutoscalingGroupMetricsCollection.php (99%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AwsClusterError.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AwsNodePoolError.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AzureClusterError.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/AzureNodePoolError.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/CreateAttachedClusterRequest.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/DeleteAttachedClusterRequest.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/src/V1/Gapic/AttachedClustersGapicClient.php (88%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/GenerateAttachedClusterInstallManifestRequest.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/GenerateAttachedClusterInstallManifestResponse.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/GetAttachedClusterRequest.php (99%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/GetAttachedServerConfigRequest.php (99%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/ImportAttachedClusterRequest.php (97%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/ListAttachedClustersRequest.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/ListAttachedClustersResponse.php (99%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/ManagedPrometheusConfig.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/MonitoringConfig.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud => GkeMultiCloud/src}/V1/UpdateAttachedClusterRequest.php (98%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/src/V1/resources/attached_clusters_client_config.json (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/src/V1/resources/attached_clusters_descriptor_config.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/src/V1/resources/attached_clusters_rest_client_config.php (100%) rename {owl-bot-staging/GkeMultiCloud/v1 => GkeMultiCloud}/tests/Unit/V1/AttachedClustersClientTest.php (100%) delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureService.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClustersGrpcClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsK8sVersionInfo.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsProxyConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureAuthorization.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClustersGrpcClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureProxyConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AwsClustersClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AzureClustersClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php b/GkeMultiCloud/metadata/V1/AttachedResources.php similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php rename to GkeMultiCloud/metadata/V1/AttachedResources.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php b/GkeMultiCloud/metadata/V1/AttachedService.php similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php rename to GkeMultiCloud/metadata/V1/AttachedService.php diff --git a/GkeMultiCloud/metadata/V1/AwsResources.php b/GkeMultiCloud/metadata/V1/AwsResources.php index d54e0680a6d8715e3966f531233b78236b71a21e..1f0d035c6472f51b924d20339dd0909b2a24eb93 100644 GIT binary patch delta 422 zcmexo^ww;{YbK_x29w`19c4PkwRsD(Co?0{`9;MNA_~kJ+(vqn z8QC-yT|q)l%nuxyh5We$bMx~uOY(~{^U~v!^YhX&(6+Le^Kv;=^P{PI&$1M>58u&Z)<&d8;hoSzHymE7hm2@ysB DYTbi7 delta 79 zcmV-V0I>hjDDCER*d5#R9Miv$O+A0|5b({sv34-v>em0kE?o4|M{Q-v_Ld li4u_l!v?b)6Xyc6bru~12twxp3L#@}ZIb~89ac=MoNUN%x!G0tEo-Qf3YVZ`RcTSGb53b-Noo;T zT8N*EJvX(uI59m{f>D7{gHuVBO9-sWFFz$UAU{6`yE3Pjj9iMz`ME%gyFUrhIch1jC%S;!F zMJP9&rL1KNG&anPX/locations/`. * @@ -55,12 +58,12 @@ * (i.e. control plane and node pools) run on a single VPC. * * This field cannot be changed after creation. - * @param string $awsClusterNetworkingPodAddressCidrBlocksElement All pods in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. - * @param string $awsClusterNetworkingServiceAddressCidrBlocksElement All services in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * @param string $awsClusterNetworkingPodAddressCidrBlocksElement All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * @param string $awsClusterNetworkingServiceAddressCidrBlocksElement All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. * @param string $awsClusterAwsRegion The AWS region where the cluster runs. * * Each Google Cloud region supports a subset of nearby AWS regions. @@ -77,21 +80,27 @@ * A replica will be provisioned on each subnet and up to three values * can be provided. * Each subnet must be in a different AWS Availability Zone (AZ). - * @param string $awsClusterControlPlaneIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to each control - * plane replica. + * @param string $awsClusterControlPlaneIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. * @param string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt cluster secrets. - * @param string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API - * will assume when managing AWS resources on your account. + * @param string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. * @param string $awsClusterControlPlaneConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. * @param string $awsClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. - * @param string $awsClusterId A client provided ID the resource. Must be unique within the parent - * resource. + * @param string $awsClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + * @param string $awsClusterId A client provided ID the resource. Must be unique within the + * parent resource. * - * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource name formatted as + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as * `projects//locations//awsClusters/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. */ function create_aws_cluster_sample( string $formattedParent, @@ -106,6 +115,7 @@ function create_aws_cluster_sample( string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, string $awsClusterAuthorizationAdminUsersUsername, + string $awsClusterFleetProject, string $awsClusterId ): void { // Create a client. @@ -139,11 +149,14 @@ function create_aws_cluster_sample( $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; $awsClusterAuthorization = (new AwsAuthorization()) ->setAdminUsers($awsClusterAuthorizationAdminUsers); + $awsClusterFleet = (new Fleet()) + ->setProject($awsClusterFleetProject); $awsCluster = (new AwsCluster()) ->setNetworking($awsClusterNetworking) ->setAwsRegion($awsClusterAwsRegion) ->setControlPlane($awsClusterControlPlane) - ->setAuthorization($awsClusterAuthorization); + ->setAuthorization($awsClusterAuthorization) + ->setFleet($awsClusterFleet); // Call the API and handle any network failures. try { @@ -188,6 +201,7 @@ function callSample(): void $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $awsClusterFleetProject = '[PROJECT]'; $awsClusterId = '[AWS_CLUSTER_ID]'; create_aws_cluster_sample( @@ -203,6 +217,7 @@ function callSample(): void $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, $awsClusterControlPlaneConfigEncryptionKmsKeyArn, $awsClusterAuthorizationAdminUsersUsername, + $awsClusterFleetProject, $awsClusterId ); } diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/create_aws_node_pool.php b/GkeMultiCloud/samples/V1/AwsClustersClient/create_aws_node_pool.php index 19c648baa397..b97d31d03933 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/create_aws_node_pool.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/create_aws_node_pool.php @@ -34,13 +34,15 @@ use Google\Rpc\Status; /** - * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], + * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedParent The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created. + * @param string $formattedParent The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. * * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. @@ -48,27 +50,30 @@ * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. Please see * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - * @param string $awsNodePoolVersion The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`). + * @param string $awsNodePoolVersion The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). * * You can list all supported versions on a given Google Cloud region by * calling * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the pool. + * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the + * pool. * @param string $awsNodePoolConfigConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. - * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. - * @param int $awsNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @param int $awsNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * @param string $awsNodePoolSubnetId The subnet where the node pool node run. * @param int $awsNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. - * @param string $awsNodePoolId A client provided ID the resource. Must be unique within the parent - * resource. + * @param string $awsNodePoolId A client provided ID the resource. Must be unique within the + * parent resource. * - * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource name formatted as + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as * `projects//locations//awsClusters//awsNodePools/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. */ function create_aws_node_pool_sample( string $formattedParent, diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/delete_aws_cluster.php b/GkeMultiCloud/samples/V1/AwsClustersClient/delete_aws_cluster.php index 1816825cad13..90d9d3279498 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/delete_aws_cluster.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/delete_aws_cluster.php @@ -29,16 +29,18 @@ use Google\Rpc\Status; /** - * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. * - * Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources. + * Fails if the cluster has one or more associated + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedName The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * @param string $formattedName The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. * * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/delete_aws_node_pool.php b/GkeMultiCloud/samples/V1/AwsClustersClient/delete_aws_node_pool.php index 688dd46091c7..79fe862ddb01 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/delete_aws_node_pool.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/delete_aws_node_pool.php @@ -29,13 +29,15 @@ use Google\Rpc\Status; /** - * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedName The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * @param string $formattedName The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. * * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/generate_aws_access_token.php b/GkeMultiCloud/samples/V1/AwsClustersClient/generate_aws_access_token.php index a135ce3cb207..107c79ee7022 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/generate_aws_access_token.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/generate_aws_access_token.php @@ -31,7 +31,9 @@ * Generates a short-lived access token to authenticate to a given * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. * - * @param string $formattedAwsCluster The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to. + * @param string $formattedAwsCluster The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. * * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_cluster.php b/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_cluster.php index 116854a3354b..8da5624ce66e 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_cluster.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_cluster.php @@ -28,9 +28,12 @@ use Google\Cloud\GkeMultiCloud\V1\AwsClustersClient; /** - * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. * - * @param string $formattedName The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe. + * @param string $formattedName The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. * * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_node_pool.php b/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_node_pool.php index 621c324c835a..fb17d2ab126c 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_node_pool.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_node_pool.php @@ -28,9 +28,12 @@ use Google\Cloud\GkeMultiCloud\V1\AwsNodePool; /** - * Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * Describes a specific + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. * - * @param string $formattedName The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe. + * @param string $formattedName The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. * * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_server_config.php b/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_server_config.php index bbde91657180..9db146ac3794 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_server_config.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/get_aws_server_config.php @@ -31,7 +31,9 @@ * Returns information, such as supported AWS regions and Kubernetes * versions, on a given Google Cloud location. * - * @param string $formattedName The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe. + * @param string $formattedName The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. * * `AwsServerConfig` names are formatted as * `projects//locations//awsServerConfig`. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/list_aws_clusters.php b/GkeMultiCloud/samples/V1/AwsClustersClient/list_aws_clusters.php index e631ac243873..ee79000863e6 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/list_aws_clusters.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/list_aws_clusters.php @@ -29,8 +29,8 @@ use Google\Cloud\GkeMultiCloud\V1\AwsClustersClient; /** - * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and - * region. + * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * on a given Google Cloud project and region. * * @param string $formattedParent The parent location which owns this collection of * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/list_aws_node_pools.php b/GkeMultiCloud/samples/V1/AwsClustersClient/list_aws_node_pools.php index f2be3a1e8087..0da606e94859 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/list_aws_node_pools.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/list_aws_node_pools.php @@ -29,7 +29,9 @@ use Google\Cloud\GkeMultiCloud\V1\AwsNodePool; /** - * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources on a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * * @param string $formattedParent The parent `AwsCluster` which owns this collection of * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_cluster.php b/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_cluster.php index 344dfc284995..ee96b446dede 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_cluster.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_cluster.php @@ -34,6 +34,7 @@ use Google\Cloud\GkeMultiCloud\V1\AwsControlPlane; use Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption; use Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication; +use Google\Cloud\GkeMultiCloud\V1\Fleet; use Google\Protobuf\FieldMask; use Google\Rpc\Status; @@ -44,12 +45,12 @@ * (i.e. control plane and node pools) run on a single VPC. * * This field cannot be changed after creation. - * @param string $awsClusterNetworkingPodAddressCidrBlocksElement All pods in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. - * @param string $awsClusterNetworkingServiceAddressCidrBlocksElement All services in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * @param string $awsClusterNetworkingPodAddressCidrBlocksElement All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * @param string $awsClusterNetworkingServiceAddressCidrBlocksElement All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. * @param string $awsClusterAwsRegion The AWS region where the cluster runs. * * Each Google Cloud region supports a subset of nearby AWS regions. @@ -66,13 +67,18 @@ * A replica will be provisioned on each subnet and up to three values * can be provided. * Each subnet must be in a different AWS Availability Zone (AZ). - * @param string $awsClusterControlPlaneIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to each control - * plane replica. + * @param string $awsClusterControlPlaneIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. * @param string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt cluster secrets. - * @param string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API - * will assume when managing AWS resources on your account. + * @param string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. * @param string $awsClusterControlPlaneConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. * @param string $awsClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. + * @param string $awsClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. */ function update_aws_cluster_sample( string $awsClusterNetworkingVpcId, @@ -85,7 +91,8 @@ function update_aws_cluster_sample( string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - string $awsClusterAuthorizationAdminUsersUsername + string $awsClusterAuthorizationAdminUsersUsername, + string $awsClusterFleetProject ): void { // Create a client. $awsClustersClient = new AwsClustersClient(); @@ -118,11 +125,14 @@ function update_aws_cluster_sample( $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; $awsClusterAuthorization = (new AwsAuthorization()) ->setAdminUsers($awsClusterAuthorizationAdminUsers); + $awsClusterFleet = (new Fleet()) + ->setProject($awsClusterFleetProject); $awsCluster = (new AwsCluster()) ->setNetworking($awsClusterNetworking) ->setAwsRegion($awsClusterAwsRegion) ->setControlPlane($awsClusterControlPlane) - ->setAuthorization($awsClusterAuthorization); + ->setAuthorization($awsClusterAuthorization) + ->setFleet($awsClusterFleet); $updateMask = new FieldMask(); // Call the API and handle any network failures. @@ -167,6 +177,7 @@ function callSample(): void $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $awsClusterFleetProject = '[PROJECT]'; update_aws_cluster_sample( $awsClusterNetworkingVpcId, @@ -179,7 +190,8 @@ function callSample(): void $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - $awsClusterAuthorizationAdminUsersUsername + $awsClusterAuthorizationAdminUsersUsername, + $awsClusterFleetProject ); } // [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsCluster_sync] diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_node_pool.php b/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_node_pool.php index 8ef1f984fbb2..e17d2dfdf42c 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_node_pool.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_node_pool.php @@ -37,17 +37,19 @@ /** * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * - * @param string $awsNodePoolVersion The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`). + * @param string $awsNodePoolVersion The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). * * You can list all supported versions on a given Google Cloud region by * calling * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the pool. + * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the + * pool. * @param string $awsNodePoolConfigConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. - * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. - * @param int $awsNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @param int $awsNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * @param string $awsNodePoolSubnetId The subnet where the node pool node run. * @param int $awsNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. */ diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_client.php b/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_client.php index c1b6eb1ce029..b1add7f7bbdd 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_client.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_client.php @@ -30,8 +30,8 @@ use Google\Rpc\Status; /** - * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project - * and region. + * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource on a given Google Cloud project and region. * * `AzureClient` resources hold client authentication * information needed by the Anthos Multicloud API to manage Azure resources @@ -41,8 +41,9 @@ * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedParent The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource - * will be created. + * @param string $formattedParent The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. * * Location names are formatted as `projects//locations/`. * @@ -51,14 +52,15 @@ * {@see AzureClustersClient::locationName()} for help formatting this field. * @param string $azureClientTenantId The Azure Active Directory Tenant ID. * @param string $azureClientApplicationId The Azure Active Directory Application ID. - * @param string $azureClientId A client provided ID the resource. Must be unique within the parent - * resource. + * @param string $azureClientId A client provided ID the resource. Must be unique within the + * parent resource. * - * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource name formatted as + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as * `projects//locations//azureClients/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. */ function create_azure_client_sample( string $formattedParent, diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_cluster.php b/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_cluster.php index a3f01ada9e30..54d10e1350d5 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_cluster.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_cluster.php @@ -32,17 +32,20 @@ use Google\Cloud\GkeMultiCloud\V1\AzureClustersClient; use Google\Cloud\GkeMultiCloud\V1\AzureControlPlane; use Google\Cloud\GkeMultiCloud\V1\AzureSshConfig; +use Google\Cloud\GkeMultiCloud\V1\Fleet; use Google\Rpc\Status; /** - * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region. + * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource on a given GCP project and region. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedParent The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource - * will be created. + * @param string $formattedParent The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. * * Location names are formatted as `projects//locations/`. * @@ -55,11 +58,13 @@ * You can call * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] * to list all supported Azure regions within a given Google Cloud region. - * @param string $azureClusterResourceGroupId The ARM ID of the resource group where the cluster resources are deployed. - * For example: + * @param string $azureClusterResourceGroupId The ARM ID of the resource group where the cluster resources are + * deployed. For example: * `/subscriptions//resourceGroups/` - * @param string $azureClusterAzureClient Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for - * how the Anthos Multi-Cloud API connects to Azure APIs. + * @param string $azureClusterAzureClient Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. * * The `AzureClient` resource must reside on the same GCP project and region * as the `AzureCluster`. @@ -69,8 +74,8 @@ * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. - * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with your - * cluster. + * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. * * All components in the cluster (i.e. control plane and node pools) run on a * single VNet. @@ -99,18 +104,24 @@ * You can list all supported versions on a given Google Cloud region by * calling * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts the - * authorized_keys file format used in OpenSSH according to the sshd(8) manual - * page. + * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. - * @param string $azureClusterId A client provided ID the resource. Must be unique within the parent - * resource. + * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. * - * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource name formatted as + * Project names are formatted as + * `projects/`. + * @param string $azureClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as * `projects//locations//azureClusters/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. */ function create_azure_cluster_sample( string $formattedParent, @@ -123,6 +134,7 @@ function create_azure_cluster_sample( string $azureClusterControlPlaneVersion, string $azureClusterControlPlaneSshConfigAuthorizedKey, string $azureClusterAuthorizationAdminUsersUsername, + string $azureClusterFleetProject, string $azureClusterId ): void { // Create a client. @@ -149,13 +161,16 @@ function create_azure_cluster_sample( $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; $azureClusterAuthorization = (new AzureAuthorization()) ->setAdminUsers($azureClusterAuthorizationAdminUsers); + $azureClusterFleet = (new Fleet()) + ->setProject($azureClusterFleetProject); $azureCluster = (new AzureCluster()) ->setAzureRegion($azureClusterAzureRegion) ->setResourceGroupId($azureClusterResourceGroupId) ->setAzureClient($azureClusterAzureClient) ->setNetworking($azureClusterNetworking) ->setControlPlane($azureClusterControlPlane) - ->setAuthorization($azureClusterAuthorization); + ->setAuthorization($azureClusterAuthorization) + ->setFleet($azureClusterFleet); // Call the API and handle any network failures. try { @@ -202,6 +217,7 @@ function callSample(): void $azureClusterControlPlaneVersion = '[VERSION]'; $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $azureClusterFleetProject = '[PROJECT]'; $azureClusterId = '[AZURE_CLUSTER_ID]'; create_azure_cluster_sample( @@ -215,6 +231,7 @@ function callSample(): void $azureClusterControlPlaneVersion, $azureClusterControlPlaneSshConfigAuthorizedKey, $azureClusterAuthorizationAdminUsersUsername, + $azureClusterFleetProject, $azureClusterId ); } diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_node_pool.php b/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_node_pool.php index b2e33bb746d3..037860627c4f 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_node_pool.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/create_azure_node_pool.php @@ -34,38 +34,43 @@ use Google\Rpc\Status; /** - * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], + * attached to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedParent The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created. + * @param string $formattedParent The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. * * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. Please see * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - * @param string $azureNodePoolVersion The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool. - * @param string $azureNodePoolConfigSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts the - * authorized_keys file format used in OpenSSH according to the sshd(8) manual - * page. - * @param string $azureNodePoolSubnetId The ARM ID of the subnet where the node pool VMs run. Make sure it's a - * subnet under the virtual network in the cluster configuration. - * @param int $azureNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. - * @param int $azureNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * @param string $azureNodePoolVersion The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * @param string $azureNodePoolConfigSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * @param string $azureNodePoolSubnetId The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * @param int $azureNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @param int $azureNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * @param int $azureNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. - * @param string $azureNodePoolId A client provided ID the resource. Must be unique within the parent - * resource. + * @param string $azureNodePoolId A client provided ID the resource. Must be unique within the + * parent resource. * - * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource name formatted as + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as * `projects//locations//azureClusters//azureNodePools/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. */ function create_azure_node_pool_sample( string $formattedParent, diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_client.php b/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_client.php index 4b3bc2393394..03dc723aaa18 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_client.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_client.php @@ -29,7 +29,8 @@ use Google\Rpc\Status; /** - * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource. * * If the client is used by one or more clusters, deletion will * fail and a `FAILED_PRECONDITION` error will be returned. @@ -38,9 +39,11 @@ * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedName The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * @param string $formattedName The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. * - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_cluster.php b/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_cluster.php index a750d4e1f0fc..4ecd65b8fa56 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_cluster.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_cluster.php @@ -29,16 +29,18 @@ use Google\Rpc\Status; /** - * Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * Deletes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * - * Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources. + * Fails if the cluster has one or more associated + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedName The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * @param string $formattedName The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. * * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_node_pool.php b/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_node_pool.php index 4af716946bb5..aff62d100ed7 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_node_pool.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/delete_azure_node_pool.php @@ -29,13 +29,15 @@ use Google\Rpc\Status; /** - * Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * Deletes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be * described to track the status of the operation. * - * @param string $formattedName The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * @param string $formattedName The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. * * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/generate_azure_access_token.php b/GkeMultiCloud/samples/V1/AzureClustersClient/generate_azure_access_token.php index 5665c9481e49..cfaf60fe58c9 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/generate_azure_access_token.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/generate_azure_access_token.php @@ -31,7 +31,9 @@ * Generates a short-lived access token to authenticate to a given * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * - * @param string $formattedAzureCluster The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to. + * @param string $formattedAzureCluster The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. * * `AzureCluster` names are formatted as * `projects//locations//AzureClusters/`. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_client.php b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_client.php index 7145b362a534..23be24df6692 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_client.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_client.php @@ -28,11 +28,15 @@ use Google\Cloud\GkeMultiCloud\V1\AzureClustersClient; /** - * Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * Describes a specific + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. * - * @param string $formattedName The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe. + * @param string $formattedName The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. * - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_cluster.php b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_cluster.php index e9e222a585f4..f56f988022c0 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_cluster.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_cluster.php @@ -28,9 +28,12 @@ use Google\Cloud\GkeMultiCloud\V1\AzureClustersClient; /** - * Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * Describes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * - * @param string $formattedName The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe. + * @param string $formattedName The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. * * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_node_pool.php b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_node_pool.php index dc16a6c50880..cf546ffefc9d 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_node_pool.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_node_pool.php @@ -28,9 +28,12 @@ use Google\Cloud\GkeMultiCloud\V1\AzureNodePool; /** - * Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * Describes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * - * @param string $formattedName The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe. + * @param string $formattedName The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. * * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_server_config.php b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_server_config.php index 32ae5881d65b..1062f5f5739c 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_server_config.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_server_config.php @@ -31,7 +31,9 @@ * Returns information, such as supported Azure regions and Kubernetes * versions, on a given Google Cloud location. * - * @param string $formattedName The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe. + * @param string $formattedName The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. * * `AzureServerConfig` names are formatted as * `projects//locations//azureServerConfig`. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_clients.php b/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_clients.php index c1202b81b9e6..3323eb37deb6 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_clients.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_clients.php @@ -29,8 +29,8 @@ use Google\Cloud\GkeMultiCloud\V1\AzureClustersClient; /** - * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and - * region. + * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources on a given Google Cloud project and region. * * @param string $formattedParent The parent location which owns this collection of * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_clusters.php b/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_clusters.php index d1e6e368f526..51a3e3c98abd 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_clusters.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_clusters.php @@ -29,8 +29,8 @@ use Google\Cloud\GkeMultiCloud\V1\AzureClustersClient; /** - * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and - * region. + * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources on a given Google Cloud project and region. * * @param string $formattedParent The parent location which owns this collection of * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_node_pools.php b/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_node_pools.php index 7f0d7b2dc783..2c81ebfa2bfa 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_node_pools.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/list_azure_node_pools.php @@ -29,7 +29,9 @@ use Google\Cloud\GkeMultiCloud\V1\AzureNodePool; /** - * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources on a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * * @param string $formattedParent The parent `AzureCluster` which owns this collection of * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/update_azure_cluster.php b/GkeMultiCloud/samples/V1/AzureClustersClient/update_azure_cluster.php index 75c3303a64ce..04ae46f44b2b 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/update_azure_cluster.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/update_azure_cluster.php @@ -32,6 +32,7 @@ use Google\Cloud\GkeMultiCloud\V1\AzureClustersClient; use Google\Cloud\GkeMultiCloud\V1\AzureControlPlane; use Google\Cloud\GkeMultiCloud\V1\AzureSshConfig; +use Google\Cloud\GkeMultiCloud\V1\Fleet; use Google\Protobuf\FieldMask; use Google\Rpc\Status; @@ -44,11 +45,13 @@ * You can call * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] * to list all supported Azure regions within a given Google Cloud region. - * @param string $azureClusterResourceGroupId The ARM ID of the resource group where the cluster resources are deployed. - * For example: + * @param string $azureClusterResourceGroupId The ARM ID of the resource group where the cluster resources are + * deployed. For example: * `/subscriptions//resourceGroups/` - * @param string $azureClusterAzureClient Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for - * how the Anthos Multi-Cloud API connects to Azure APIs. + * @param string $azureClusterAzureClient Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. * * The `AzureClient` resource must reside on the same GCP project and region * as the `AzureCluster`. @@ -58,8 +61,8 @@ * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. - * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with your - * cluster. + * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. * * All components in the cluster (i.e. control plane and node pools) run on a * single VNet. @@ -88,10 +91,15 @@ * You can list all supported versions on a given Google Cloud region by * calling * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts the - * authorized_keys file format used in OpenSSH according to the sshd(8) manual - * page. + * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. + * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. */ function update_azure_cluster_sample( string $azureClusterAzureRegion, @@ -102,7 +110,8 @@ function update_azure_cluster_sample( string $azureClusterNetworkingServiceAddressCidrBlocksElement, string $azureClusterControlPlaneVersion, string $azureClusterControlPlaneSshConfigAuthorizedKey, - string $azureClusterAuthorizationAdminUsersUsername + string $azureClusterAuthorizationAdminUsersUsername, + string $azureClusterFleetProject ): void { // Create a client. $azureClustersClient = new AzureClustersClient(); @@ -128,13 +137,16 @@ function update_azure_cluster_sample( $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; $azureClusterAuthorization = (new AzureAuthorization()) ->setAdminUsers($azureClusterAuthorizationAdminUsers); + $azureClusterFleet = (new Fleet()) + ->setProject($azureClusterFleetProject); $azureCluster = (new AzureCluster()) ->setAzureRegion($azureClusterAzureRegion) ->setResourceGroupId($azureClusterResourceGroupId) ->setAzureClient($azureClusterAzureClient) ->setNetworking($azureClusterNetworking) ->setControlPlane($azureClusterControlPlane) - ->setAuthorization($azureClusterAuthorization); + ->setAuthorization($azureClusterAuthorization) + ->setFleet($azureClusterFleet); $updateMask = new FieldMask(); // Call the API and handle any network failures. @@ -177,6 +189,7 @@ function callSample(): void $azureClusterControlPlaneVersion = '[VERSION]'; $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $azureClusterFleetProject = '[PROJECT]'; update_azure_cluster_sample( $azureClusterAzureRegion, @@ -187,7 +200,8 @@ function callSample(): void $azureClusterNetworkingServiceAddressCidrBlocksElement, $azureClusterControlPlaneVersion, $azureClusterControlPlaneSshConfigAuthorizedKey, - $azureClusterAuthorizationAdminUsersUsername + $azureClusterAuthorizationAdminUsersUsername, + $azureClusterFleetProject ); } // [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureCluster_sync] diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/update_azure_node_pool.php b/GkeMultiCloud/samples/V1/AzureClustersClient/update_azure_node_pool.php index a0e85c6c3cc1..f3ec43e2c263 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/update_azure_node_pool.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/update_azure_node_pool.php @@ -37,16 +37,17 @@ /** * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * - * @param string $azureNodePoolVersion The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool. - * @param string $azureNodePoolConfigSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts the - * authorized_keys file format used in OpenSSH according to the sshd(8) manual - * page. - * @param string $azureNodePoolSubnetId The ARM ID of the subnet where the node pool VMs run. Make sure it's a - * subnet under the virtual network in the cluster configuration. - * @param int $azureNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. - * @param int $azureNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * @param string $azureNodePoolVersion The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * @param string $azureNodePoolConfigSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * @param string $azureNodePoolSubnetId The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * @param int $azureNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @param int $azureNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * @param int $azureNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. */ function update_azure_node_pool_sample( diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php b/GkeMultiCloud/src/V1/AttachedCluster.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php rename to GkeMultiCloud/src/V1/AttachedCluster.php index 9f956818f542..aa496bfdc2ca 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php +++ b/GkeMultiCloud/src/V1/AttachedCluster.php @@ -24,20 +24,20 @@ class AttachedCluster extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1; */ - protected $name = ''; + private $name = ''; /** * Optional. A human readable description of this cluster. * Cannot be longer than 255 UTF-8 encoded bytes. * * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $description = ''; + private $description = ''; /** * Required. OpenID Connect (OIDC) configuration for the cluster. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - protected $oidc_config = null; + private $oidc_config = null; /** * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). * You can list all supported versions on a given Google Cloud region by @@ -46,14 +46,14 @@ class AttachedCluster extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; */ - protected $platform_version = ''; + private $platform_version = ''; /** * Required. The Kubernetes distribution of the underlying attached cluster. * Supported values: ["eks", "aks"]. * * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; */ - protected $distribution = ''; + private $distribution = ''; /** * Output only. The region where this cluster runs. * For EKS clusters, this is a AWS region. For AKS clusters, @@ -61,43 +61,43 @@ class AttachedCluster extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $cluster_region = ''; + private $cluster_region = ''; /** * Required. Fleet configuration. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; */ - protected $fleet = null; + private $fleet = null; /** * Output only. The current state of the cluster. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $state = 0; + private $state = 0; /** * Output only. A globally unique identifier for the cluster. * * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $uid = ''; + private $uid = ''; /** * Output only. If set, there are currently changes in flight to the cluster. * * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $reconciling = false; + private $reconciling = false; /** * Output only. The time at which this cluster was registered. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $create_time = null; + private $create_time = null; /** * Output only. The time at which this cluster was last updated. * * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $update_time = null; + private $update_time = null; /** * Allows clients to perform consistent read-modify-writes * through optimistic concurrency control. @@ -106,13 +106,13 @@ class AttachedCluster extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string etag = 11; */ - protected $etag = ''; + private $etag = ''; /** * Output only. The Kubernetes version of the cluster. * * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $kubernetes_version = ''; + private $kubernetes_version = ''; /** * Optional. Annotations on the cluster. * This field has the same restrictions as Kubernetes annotations. @@ -131,13 +131,13 @@ class AttachedCluster extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $workload_identity_config = null; + private $workload_identity_config = null; /** * Optional. Logging configuration for this cluster. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $logging_config = null; + private $logging_config = null; /** * Output only. A set of errors found in the cluster. * @@ -149,13 +149,13 @@ class AttachedCluster extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $authorization = null; + private $authorization = null; /** * Optional. Monitoring configuration for this cluster. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $monitoring_config = null; + private $monitoring_config = null; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php b/GkeMultiCloud/src/V1/AttachedCluster/State.php similarity index 94% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php rename to GkeMultiCloud/src/V1/AttachedCluster/State.php index 51a928e34a8a..f76d6155007b 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php +++ b/GkeMultiCloud/src/V1/AttachedCluster/State.php @@ -91,6 +91,4 @@ public static function value($name) } } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster_State::class); diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php b/GkeMultiCloud/src/V1/AttachedClusterError.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php rename to GkeMultiCloud/src/V1/AttachedClusterError.php index 7e2ea588596e..daaf28d2aad1 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php +++ b/GkeMultiCloud/src/V1/AttachedClusterError.php @@ -20,7 +20,7 @@ class AttachedClusterError extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string message = 1; */ - protected $message = ''; + private $message = ''; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php b/GkeMultiCloud/src/V1/AttachedClusterUser.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php rename to GkeMultiCloud/src/V1/AttachedClusterUser.php index f020f59ff48b..3e2d4a9c758d 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php +++ b/GkeMultiCloud/src/V1/AttachedClusterUser.php @@ -20,7 +20,7 @@ class AttachedClusterUser extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $username = ''; + private $username = ''; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersAuthorization.php b/GkeMultiCloud/src/V1/AttachedClustersAuthorization.php similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersAuthorization.php rename to GkeMultiCloud/src/V1/AttachedClustersAuthorization.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php b/GkeMultiCloud/src/V1/AttachedClustersClient.php similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php rename to GkeMultiCloud/src/V1/AttachedClustersClient.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php b/GkeMultiCloud/src/V1/AttachedClustersGrpcClient.php similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php rename to GkeMultiCloud/src/V1/AttachedClustersGrpcClient.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php b/GkeMultiCloud/src/V1/AttachedOidcConfig.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php rename to GkeMultiCloud/src/V1/AttachedOidcConfig.php index 82a830dd5f33..d6cfc65412e2 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php +++ b/GkeMultiCloud/src/V1/AttachedOidcConfig.php @@ -28,7 +28,7 @@ class AttachedOidcConfig extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string issuer_url = 1; */ - protected $issuer_url = ''; + private $issuer_url = ''; /** * Optional. OIDC verification keys in JWKS format (RFC 7517). * It contains a list of OIDC verification keys that can be used to verify @@ -39,7 +39,7 @@ class AttachedOidcConfig extends \Google\Protobuf\Internal\Message * * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $jwks = ''; + private $jwks = ''; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php b/GkeMultiCloud/src/V1/AttachedPlatformVersionInfo.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php rename to GkeMultiCloud/src/V1/AttachedPlatformVersionInfo.php index a81ade67a335..bcdbed40704c 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php +++ b/GkeMultiCloud/src/V1/AttachedPlatformVersionInfo.php @@ -20,7 +20,7 @@ class AttachedPlatformVersionInfo extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string version = 1; */ - protected $version = ''; + private $version = ''; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php b/GkeMultiCloud/src/V1/AttachedServerConfig.php similarity index 99% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php rename to GkeMultiCloud/src/V1/AttachedServerConfig.php index 3257fd12cab9..129c19cbc32f 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php +++ b/GkeMultiCloud/src/V1/AttachedServerConfig.php @@ -21,7 +21,7 @@ class AttachedServerConfig extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1; */ - protected $name = ''; + private $name = ''; /** * List of valid platform versions. * diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php b/GkeMultiCloud/src/V1/AwsAutoscalingGroupMetricsCollection.php similarity index 99% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php rename to GkeMultiCloud/src/V1/AwsAutoscalingGroupMetricsCollection.php index dddb1fd5dc97..f50f8485b50c 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php +++ b/GkeMultiCloud/src/V1/AwsAutoscalingGroupMetricsCollection.php @@ -22,7 +22,7 @@ class AwsAutoscalingGroupMetricsCollection extends \Google\Protobuf\Internal\Mes * * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $granularity = ''; + private $granularity = ''; /** * Optional. The metrics to enable. For a list of valid metrics, see * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. diff --git a/GkeMultiCloud/src/V1/AwsCluster.php b/GkeMultiCloud/src/V1/AwsCluster.php index d19c6c7aa474..9e6c0e2b91c9 100644 --- a/GkeMultiCloud/src/V1/AwsCluster.php +++ b/GkeMultiCloud/src/V1/AwsCluster.php @@ -131,9 +131,9 @@ class AwsCluster extends \Google\Protobuf\Internal\Message */ private $cluster_ca_certificate = ''; /** - * Optional. Fleet configuration. + * Required. Fleet configuration. * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; */ private $fleet = null; /** @@ -142,6 +142,18 @@ class AwsCluster extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ private $logging_config = null; + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $monitoring_config = null; /** * Constructor. @@ -201,9 +213,13 @@ class AwsCluster extends \Google\Protobuf\Internal\Message * @type string $cluster_ca_certificate * Output only. PEM encoded x509 certificate of the cluster root of trust. * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet - * Optional. Fleet configuration. + * Required. Fleet configuration. * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config * Optional. Logging configuration for this cluster. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config + * Optional. Monitoring configuration for this cluster. * } */ public function __construct($data = NULL) { @@ -726,9 +742,9 @@ public function setClusterCaCertificate($var) } /** - * Optional. Fleet configuration. + * Required. Fleet configuration. * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null */ public function getFleet() @@ -747,9 +763,9 @@ public function clearFleet() } /** - * Optional. Fleet configuration. + * Required. Fleet configuration. * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var * @return $this */ @@ -797,5 +813,67 @@ public function setLoggingConfig($var) return $this; } + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterError::class); + $this->errors = $arr; + + return $this; + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + } diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php b/GkeMultiCloud/src/V1/AwsClusterError.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php rename to GkeMultiCloud/src/V1/AwsClusterError.php index f40a291a78f8..3f755a6ca159 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php +++ b/GkeMultiCloud/src/V1/AwsClusterError.php @@ -20,7 +20,7 @@ class AwsClusterError extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string message = 1; */ - protected $message = ''; + private $message = ''; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/AwsClusterNetworking.php b/GkeMultiCloud/src/V1/AwsClusterNetworking.php index 325f4e89c76a..21775bac7845 100644 --- a/GkeMultiCloud/src/V1/AwsClusterNetworking.php +++ b/GkeMultiCloud/src/V1/AwsClusterNetworking.php @@ -26,17 +26,17 @@ class AwsClusterNetworking extends \Google\Protobuf\Internal\Message */ private $vpc_id = ''; /** - * Required. All pods in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. * * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $pod_address_cidr_blocks; /** - * Required. All services in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. * * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; */ @@ -53,13 +53,13 @@ class AwsClusterNetworking extends \Google\Protobuf\Internal\Message * (i.e. control plane and node pools) run on a single VPC. * This field cannot be changed after creation. * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks - * Required. All pods in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks - * Required. All services in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. * } */ public function __construct($data = NULL) { @@ -98,9 +98,9 @@ public function setVpcId($var) } /** - * Required. All pods in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. * * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField @@ -111,9 +111,9 @@ public function getPodAddressCidrBlocks() } /** - * Required. All pods in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. * * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -128,9 +128,9 @@ public function setPodAddressCidrBlocks($var) } /** - * Required. All services in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. * * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField @@ -141,9 +141,9 @@ public function getServiceAddressCidrBlocks() } /** - * Required. All services in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. * * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; * @param array|\Google\Protobuf\Internal\RepeatedField $var diff --git a/GkeMultiCloud/src/V1/AwsClustersGrpcClient.php b/GkeMultiCloud/src/V1/AwsClustersGrpcClient.php index 13b5afbbe434..4d1ffaf42616 100644 --- a/GkeMultiCloud/src/V1/AwsClustersGrpcClient.php +++ b/GkeMultiCloud/src/V1/AwsClustersGrpcClient.php @@ -34,7 +34,8 @@ public function __construct($hostname, $opts, $channel = null) { } /** - * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region. + * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource on a given GCP project and region. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -68,7 +69,8 @@ public function UpdateAwsCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsCluster } /** - * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -83,8 +85,8 @@ public function GetAwsCluster(\Google\Cloud\GkeMultiCloud\V1\GetAwsClusterReques } /** - * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and - * region. + * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * on a given Google Cloud project and region. * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -99,10 +101,11 @@ public function ListAwsClusters(\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRe } /** - * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. * - * Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources. + * Fails if the cluster has one or more associated + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -137,7 +140,8 @@ public function GenerateAwsAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAw } /** - * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], + * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -171,7 +175,8 @@ public function UpdateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePo } /** - * Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * Describes a specific + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -186,7 +191,9 @@ public function GetAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequ } /** - * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources on a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -201,7 +208,8 @@ public function ListAwsNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePools } /** - * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be diff --git a/GkeMultiCloud/src/V1/AwsControlPlane.php b/GkeMultiCloud/src/V1/AwsControlPlane.php index ff78737ffce2..64f3fbf2be12 100644 --- a/GkeMultiCloud/src/V1/AwsControlPlane.php +++ b/GkeMultiCloud/src/V1/AwsControlPlane.php @@ -57,8 +57,8 @@ class AwsControlPlane extends \Google\Protobuf\Internal\Message */ private $security_group_ids; /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each control - * plane replica. + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. * * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; */ @@ -91,8 +91,8 @@ class AwsControlPlane extends \Google\Protobuf\Internal\Message */ private $database_encryption = null; /** - * Optional. A set of AWS resource tags to propagate to all underlying managed AWS - * resources. + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. * Specify at most 50 pairs containing alphanumerics, spaces, and symbols * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. @@ -154,8 +154,8 @@ class AwsControlPlane extends \Google\Protobuf\Internal\Message * replicas. The Anthos Multi-Cloud API will automatically create and manage * security groups with the minimum rules needed for a functioning cluster. * @type string $iam_instance_profile - * Required. The name or ARN of the AWS IAM instance profile to assign to each control - * plane replica. + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume * Optional. Configuration related to the root volume provisioned for each * control plane replica. @@ -172,8 +172,8 @@ class AwsControlPlane extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $database_encryption * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of AWS resource tags to propagate to all underlying managed AWS - * resources. + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. * Specify at most 50 pairs containing alphanumerics, spaces, and symbols * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. @@ -356,8 +356,8 @@ public function setSecurityGroupIds($var) } /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each control - * plane replica. + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. * * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -368,8 +368,8 @@ public function getIamInstanceProfile() } /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each control - * plane replica. + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. * * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; * @param string $var @@ -510,8 +510,8 @@ public function setDatabaseEncryption($var) } /** - * Optional. A set of AWS resource tags to propagate to all underlying managed AWS - * resources. + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. * Specify at most 50 pairs containing alphanumerics, spaces, and symbols * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. @@ -525,8 +525,8 @@ public function getTags() } /** - * Optional. A set of AWS resource tags to propagate to all underlying managed AWS - * resources. + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. * Specify at most 50 pairs containing alphanumerics, spaces, and symbols * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. diff --git a/GkeMultiCloud/src/V1/AwsNodeConfig.php b/GkeMultiCloud/src/V1/AwsNodeConfig.php index d57f983944f4..8c474cb3b400 100644 --- a/GkeMultiCloud/src/V1/AwsNodeConfig.php +++ b/GkeMultiCloud/src/V1/AwsNodeConfig.php @@ -46,16 +46,17 @@ class AwsNodeConfig extends \Google\Protobuf\Internal\Message */ private $labels; /** - * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at - * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). - * Keys can be up to 127 Unicode characters. - * Values can be up to 255 Unicode characters. + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. * * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private $tags; /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool. + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. * * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; */ @@ -76,9 +77,9 @@ class AwsNodeConfig extends \Google\Protobuf\Internal\Message */ private $ssh_config = null; /** - * Optional. The IDs of additional security groups to add to nodes in this pool. The - * manager will automatically create security groups with minimum rules - * needed for a functioning cluster. + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. * * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -102,6 +103,14 @@ class AwsNodeConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private $instance_placement = null; + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $autoscaling_metrics_collection = null; /** * Constructor. @@ -124,12 +133,13 @@ class AwsNodeConfig extends \Google\Protobuf\Internal\Message * containing a list of "key": value pairs. Example: { "name": "wrench", * "mass": "1.3kg", "count": "3" }. * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at - * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). - * Keys can be up to 127 Unicode characters. - * Values can be up to 255 Unicode characters. + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. * @type string $iam_instance_profile - * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool. + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. * @type string $image_type * Optional. The OS image type to use on node pool instances. * Can have a value of `ubuntu`, or `windows` if the cluster enables @@ -138,9 +148,9 @@ class AwsNodeConfig extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config * Optional. The SSH configuration. * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids - * Optional. The IDs of additional security groups to add to nodes in this pool. The - * manager will automatically create security groups with minimum rules - * needed for a functioning cluster. + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config * Optional. Proxy configuration for outbound HTTP(S) traffic. * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption @@ -148,6 +158,10 @@ class AwsNodeConfig extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement * Optional. Placement related info for this node. * When unspecified, the VPC's default tenancy will be used. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $autoscaling_metrics_collection + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. * } */ public function __construct($data = NULL) { @@ -282,10 +296,10 @@ public function setLabels($var) } /** - * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at - * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). - * Keys can be up to 127 Unicode characters. - * Values can be up to 255 Unicode characters. + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. * * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\MapField @@ -296,10 +310,10 @@ public function getTags() } /** - * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at - * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). - * Keys can be up to 127 Unicode characters. - * Values can be up to 255 Unicode characters. + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. * * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param array|\Google\Protobuf\Internal\MapField $var @@ -314,7 +328,8 @@ public function setTags($var) } /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool. + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. * * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -325,7 +340,8 @@ public function getIamInstanceProfile() } /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool. + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. * * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; * @param string $var @@ -408,9 +424,9 @@ public function setSshConfig($var) } /** - * Optional. The IDs of additional security groups to add to nodes in this pool. The - * manager will automatically create security groups with minimum rules - * needed for a functioning cluster. + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. * * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField @@ -421,9 +437,9 @@ public function getSecurityGroupIds() } /** - * Optional. The IDs of additional security groups to add to nodes in this pool. The - * manager will automatically create security groups with minimum rules - * needed for a functioning cluster. + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. * * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param array|\Google\Protobuf\Internal\RepeatedField $var @@ -547,5 +563,45 @@ public function setInstancePlacement($var) return $this; } + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection|null + */ + public function getAutoscalingMetricsCollection() + { + return $this->autoscaling_metrics_collection; + } + + public function hasAutoscalingMetricsCollection() + { + return isset($this->autoscaling_metrics_collection); + } + + public function clearAutoscalingMetricsCollection() + { + unset($this->autoscaling_metrics_collection); + } + + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $var + * @return $this + */ + public function setAutoscalingMetricsCollection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection::class); + $this->autoscaling_metrics_collection = $var; + + return $this; + } + } diff --git a/GkeMultiCloud/src/V1/AwsNodePool.php b/GkeMultiCloud/src/V1/AwsNodePool.php index 367fec552e65..f4c87301b3f9 100644 --- a/GkeMultiCloud/src/V1/AwsNodePool.php +++ b/GkeMultiCloud/src/V1/AwsNodePool.php @@ -26,7 +26,8 @@ class AwsNodePool extends \Google\Protobuf\Internal\Message */ private $name = ''; /** - * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`). + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). * You can list all supported versions on a given Google Cloud region by * calling * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. @@ -112,6 +113,12 @@ class AwsNodePool extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; */ private $max_pods_constraint = null; + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; /** * Constructor. @@ -126,7 +133,8 @@ class AwsNodePool extends \Google\Protobuf\Internal\Message * For more details on Google Cloud resource names, * see [Resource Names](https://cloud.google.com/apis/design/resource_names) * @type string $version - * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`). + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). * You can list all supported versions on a given Google Cloud region by * calling * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. @@ -164,6 +172,8 @@ class AwsNodePool extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint * Required. The constraint on the maximum number of pods that can be run * simultaneously on a node in the node pool. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the node pool. * } */ public function __construct($data = NULL) { @@ -206,7 +216,8 @@ public function setName($var) } /** - * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`). + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). * You can list all supported versions on a given Google Cloud region by * calling * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. @@ -220,7 +231,8 @@ public function getVersion() } /** - * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`). + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). * You can list all supported versions on a given Google Cloud region by * calling * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. @@ -597,5 +609,31 @@ public function setMaxPodsConstraint($var) return $this; } + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError::class); + $this->errors = $arr; + + return $this; + } + } diff --git a/GkeMultiCloud/src/V1/AwsNodePoolAutoscaling.php b/GkeMultiCloud/src/V1/AwsNodePoolAutoscaling.php index 894058a7d7cf..ecb27ce21a77 100644 --- a/GkeMultiCloud/src/V1/AwsNodePoolAutoscaling.php +++ b/GkeMultiCloud/src/V1/AwsNodePoolAutoscaling.php @@ -17,15 +17,15 @@ class AwsNodePoolAutoscaling extends \Google\Protobuf\Internal\Message { /** - * Required. Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. * * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $min_node_count = 0; /** - * Required. Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -38,11 +38,11 @@ class AwsNodePoolAutoscaling extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type int $min_node_count - * Required. Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. * @type int $max_node_count - * Required. Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * } */ public function __construct($data = NULL) { @@ -51,8 +51,8 @@ public function __construct($data = NULL) { } /** - * Required. Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. * * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; * @return int @@ -63,8 +63,8 @@ public function getMinNodeCount() } /** - * Required. Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. * * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; * @param int $var @@ -79,8 +79,8 @@ public function setMinNodeCount($var) } /** - * Required. Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; * @return int @@ -91,8 +91,8 @@ public function getMaxNodeCount() } /** - * Required. Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; * @param int $var diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php b/GkeMultiCloud/src/V1/AwsNodePoolError.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php rename to GkeMultiCloud/src/V1/AwsNodePoolError.php index c5a04b7d3934..9c30d9a13051 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php +++ b/GkeMultiCloud/src/V1/AwsNodePoolError.php @@ -20,7 +20,7 @@ class AwsNodePoolError extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string message = 1; */ - protected $message = ''; + private $message = ''; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/AwsProxyConfig.php b/GkeMultiCloud/src/V1/AwsProxyConfig.php index 8584b61000ed..0d5ac3f2fd57 100644 --- a/GkeMultiCloud/src/V1/AwsProxyConfig.php +++ b/GkeMultiCloud/src/V1/AwsProxyConfig.php @@ -18,6 +18,9 @@ class AwsProxyConfig extends \Google\Protobuf\Internal\Message /** * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file * * Generated from protobuf field string secret_arn = 1; */ @@ -39,6 +42,9 @@ class AwsProxyConfig extends \Google\Protobuf\Internal\Message * @type string $secret_arn * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file * @type string $secret_version * The version string of the AWS Secret Manager secret that contains the * HTTP(S) proxy configuration. @@ -52,6 +58,9 @@ public function __construct($data = NULL) { /** * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file * * Generated from protobuf field string secret_arn = 1; * @return string @@ -64,6 +73,9 @@ public function getSecretArn() /** * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file * * Generated from protobuf field string secret_arn = 1; * @param string $var diff --git a/GkeMultiCloud/src/V1/AwsServicesAuthentication.php b/GkeMultiCloud/src/V1/AwsServicesAuthentication.php index 8cacd9e2d075..b93a3f19431e 100644 --- a/GkeMultiCloud/src/V1/AwsServicesAuthentication.php +++ b/GkeMultiCloud/src/V1/AwsServicesAuthentication.php @@ -16,8 +16,8 @@ class AwsServicesAuthentication extends \Google\Protobuf\Internal\Message { /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API - * will assume when managing AWS resources on your account. + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. * * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; */ @@ -37,8 +37,8 @@ class AwsServicesAuthentication extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $role_arn - * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API - * will assume when managing AWS resources on your account. + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. * @type string $role_session_name * Optional. An identifier for the assumed role session. * When unspecified, it defaults to `multicloud-service-agent`. @@ -50,8 +50,8 @@ public function __construct($data = NULL) { } /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API - * will assume when managing AWS resources on your account. + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. * * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -62,8 +62,8 @@ public function getRoleArn() } /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API - * will assume when managing AWS resources on your account. + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. * * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/GkeMultiCloud/src/V1/AwsVolumeTemplate.php b/GkeMultiCloud/src/V1/AwsVolumeTemplate.php index 459f29e76014..357227a37aec 100644 --- a/GkeMultiCloud/src/V1/AwsVolumeTemplate.php +++ b/GkeMultiCloud/src/V1/AwsVolumeTemplate.php @@ -31,14 +31,15 @@ class AwsVolumeTemplate extends \Google\Protobuf\Internal\Message */ private $volume_type = 0; /** - * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume. + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. * * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $iops = 0; /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to - * encrypt AWS EBS volumes. + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. * If not specified, the default Amazon managed key associated to * the AWS region where this cluster runs will be used. * @@ -60,10 +61,11 @@ class AwsVolumeTemplate extends \Google\Protobuf\Internal\Message * Optional. Type of the EBS volume. * When unspecified, it defaults to GP2 volume. * @type int $iops - * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume. + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. * @type string $kms_key_arn - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to - * encrypt AWS EBS volumes. + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. * If not specified, the default Amazon managed key associated to * the AWS region where this cluster runs will be used. * } @@ -132,7 +134,8 @@ public function setVolumeType($var) } /** - * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume. + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. * * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -143,7 +146,8 @@ public function getIops() } /** - * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume. + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. * * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var @@ -158,8 +162,8 @@ public function setIops($var) } /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to - * encrypt AWS EBS volumes. + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. * If not specified, the default Amazon managed key associated to * the AWS region where this cluster runs will be used. * @@ -172,8 +176,8 @@ public function getKmsKeyArn() } /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to - * encrypt AWS EBS volumes. + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. * If not specified, the default Amazon managed key associated to * the AWS region where this cluster runs will be used. * diff --git a/GkeMultiCloud/src/V1/AzureClient.php b/GkeMultiCloud/src/V1/AzureClient.php index dd58f8f961f1..8e99c6971e22 100644 --- a/GkeMultiCloud/src/V1/AzureClient.php +++ b/GkeMultiCloud/src/V1/AzureClient.php @@ -11,9 +11,10 @@ /** * `AzureClient` resources hold client authentication information needed by the * Anthos Multi-Cloud API to manage Azure resources on your Azure subscription. - * When an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] is created, an `AzureClient` resource needs to be - * provided and all operations on Azure resources associated to that cluster - * will authenticate to Azure services using the given client. + * When an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] is + * created, an `AzureClient` resource needs to be provided and all operations on + * Azure resources associated to that cluster will authenticate to Azure + * services using the given client. * `AzureClient` resources are immutable and cannot be modified upon creation. * Each `AzureClient` resource is bound to a single Azure Active Directory * Application and tenant. diff --git a/GkeMultiCloud/src/V1/AzureCluster.php b/GkeMultiCloud/src/V1/AzureCluster.php index 8686a6d9c0c5..c2cb38f407ef 100644 --- a/GkeMultiCloud/src/V1/AzureCluster.php +++ b/GkeMultiCloud/src/V1/AzureCluster.php @@ -43,16 +43,18 @@ class AzureCluster extends \Google\Protobuf\Internal\Message */ private $azure_region = ''; /** - * Required. The ARM ID of the resource group where the cluster resources are deployed. - * For example: + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: * `/subscriptions//resourceGroups/` * * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; */ private $resource_group_id = ''; /** - * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for - * how the Anthos Multi-Cloud API connects to Azure APIs. + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. * The `AzureClient` resource must reside on the same GCP project and region * as the `AzureCluster`. * `AzureClient` names are formatted as @@ -152,13 +154,13 @@ class AzureCluster extends \Google\Protobuf\Internal\Message */ private $cluster_ca_certificate = ''; /** - * Optional. Fleet configuration. + * Required. Fleet configuration. * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; */ private $fleet = null; /** - * Output only. Mananged Azure resources for this cluster. + * Output only. Managed Azure resources for this cluster. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -169,6 +171,18 @@ class AzureCluster extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ private $logging_config = null; + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $monitoring_config = null; /** * Constructor. @@ -192,12 +206,14 @@ class AzureCluster extends \Google\Protobuf\Internal\Message * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] * to list all supported Azure regions within a given Google Cloud region. * @type string $resource_group_id - * Required. The ARM ID of the resource group where the cluster resources are deployed. - * For example: + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: * `/subscriptions//resourceGroups/` * @type string $azure_client - * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for - * how the Anthos Multi-Cloud API connects to Azure APIs. + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. * The `AzureClient` resource must reside on the same GCP project and region * as the `AzureCluster`. * `AzureClient` names are formatted as @@ -241,11 +257,15 @@ class AzureCluster extends \Google\Protobuf\Internal\Message * @type string $cluster_ca_certificate * Output only. PEM encoded x509 certificate of the cluster root of trust. * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet - * Optional. Fleet configuration. + * Required. Fleet configuration. * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $managed_resources - * Output only. Mananged Azure resources for this cluster. + * Output only. Managed Azure resources for this cluster. * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config * Optional. Logging configuration for this cluster. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config + * Optional. Monitoring configuration for this cluster. * } */ public function __construct($data = NULL) { @@ -350,8 +370,8 @@ public function setAzureRegion($var) } /** - * Required. The ARM ID of the resource group where the cluster resources are deployed. - * For example: + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: * `/subscriptions//resourceGroups/` * * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; @@ -363,8 +383,8 @@ public function getResourceGroupId() } /** - * Required. The ARM ID of the resource group where the cluster resources are deployed. - * For example: + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: * `/subscriptions//resourceGroups/` * * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; @@ -380,8 +400,10 @@ public function setResourceGroupId($var) } /** - * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for - * how the Anthos Multi-Cloud API connects to Azure APIs. + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. * The `AzureClient` resource must reside on the same GCP project and region * as the `AzureCluster`. * `AzureClient` names are formatted as @@ -398,8 +420,10 @@ public function getAzureClient() } /** - * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for - * how the Anthos Multi-Cloud API connects to Azure APIs. + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. * The `AzureClient` resource must reside on the same GCP project and region * as the `AzureCluster`. * `AzureClient` names are formatted as @@ -838,9 +862,9 @@ public function setClusterCaCertificate($var) } /** - * Optional. Fleet configuration. + * Required. Fleet configuration. * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null */ public function getFleet() @@ -859,9 +883,9 @@ public function clearFleet() } /** - * Optional. Fleet configuration. + * Required. Fleet configuration. * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var * @return $this */ @@ -874,7 +898,7 @@ public function setFleet($var) } /** - * Output only. Mananged Azure resources for this cluster. + * Output only. Managed Azure resources for this cluster. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources|null @@ -895,7 +919,7 @@ public function clearManagedResources() } /** - * Output only. Mananged Azure resources for this cluster. + * Output only. Managed Azure resources for this cluster. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $var @@ -945,5 +969,67 @@ public function setLoggingConfig($var) return $this; } + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterError::class); + $this->errors = $arr; + + return $this; + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + } diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php b/GkeMultiCloud/src/V1/AzureClusterError.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php rename to GkeMultiCloud/src/V1/AzureClusterError.php index cf9a9b6b2e5d..87a4e11c7cb3 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php +++ b/GkeMultiCloud/src/V1/AzureClusterError.php @@ -20,7 +20,7 @@ class AzureClusterError extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string message = 1; */ - protected $message = ''; + private $message = ''; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/AzureClusterNetworking.php b/GkeMultiCloud/src/V1/AzureClusterNetworking.php index bae91dfee844..f083c4513f0b 100644 --- a/GkeMultiCloud/src/V1/AzureClusterNetworking.php +++ b/GkeMultiCloud/src/V1/AzureClusterNetworking.php @@ -16,8 +16,8 @@ class AzureClusterNetworking extends \Google\Protobuf\Internal\Message { /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your - * cluster. + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. * All components in the cluster (i.e. control plane and node pools) run on a * single VNet. * Example: @@ -48,8 +48,8 @@ class AzureClusterNetworking extends \Google\Protobuf\Internal\Message */ private $service_address_cidr_blocks; /** - * Optional. The ARM ID of the subnet where Kubernetes private service type load - * balancers are deployed. When unspecified, it defaults to + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to * AzureControlPlane.subnet_id. * Example: * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" @@ -65,8 +65,8 @@ class AzureClusterNetworking extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $virtual_network_id - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your - * cluster. + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. * All components in the cluster (i.e. control plane and node pools) run on a * single VNet. * Example: @@ -85,8 +85,8 @@ class AzureClusterNetworking extends \Google\Protobuf\Internal\Message * ranges. Only a single range is supported. * This field cannot be changed after creating a cluster. * @type string $service_load_balancer_subnet_id - * Optional. The ARM ID of the subnet where Kubernetes private service type load - * balancers are deployed. When unspecified, it defaults to + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to * AzureControlPlane.subnet_id. * Example: * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" @@ -98,8 +98,8 @@ public function __construct($data = NULL) { } /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your - * cluster. + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. * All components in the cluster (i.e. control plane and node pools) run on a * single VNet. * Example: @@ -115,8 +115,8 @@ public function getVirtualNetworkId() } /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your - * cluster. + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. * All components in the cluster (i.e. control plane and node pools) run on a * single VNet. * Example: @@ -204,8 +204,8 @@ public function setServiceAddressCidrBlocks($var) } /** - * Optional. The ARM ID of the subnet where Kubernetes private service type load - * balancers are deployed. When unspecified, it defaults to + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to * AzureControlPlane.subnet_id. * Example: * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" @@ -219,8 +219,8 @@ public function getServiceLoadBalancerSubnetId() } /** - * Optional. The ARM ID of the subnet where Kubernetes private service type load - * balancers are deployed. When unspecified, it defaults to + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to * AzureControlPlane.subnet_id. * Example: * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" diff --git a/GkeMultiCloud/src/V1/AzureClustersGrpcClient.php b/GkeMultiCloud/src/V1/AzureClustersGrpcClient.php index 31651b4ac602..07d8783d1087 100644 --- a/GkeMultiCloud/src/V1/AzureClustersGrpcClient.php +++ b/GkeMultiCloud/src/V1/AzureClustersGrpcClient.php @@ -34,8 +34,8 @@ public function __construct($hostname, $opts, $channel = null) { } /** - * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project - * and region. + * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource on a given Google Cloud project and region. * * `AzureClient` resources hold client authentication * information needed by the Anthos Multicloud API to manage Azure resources @@ -58,7 +58,8 @@ public function CreateAzureClient(\Google\Cloud\GkeMultiCloud\V1\CreateAzureClie } /** - * Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * Describes a specific + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -73,8 +74,8 @@ public function GetAzureClient(\Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequ } /** - * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and - * region. + * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources on a given Google Cloud project and region. * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -89,7 +90,8 @@ public function ListAzureClients(\Google\Cloud\GkeMultiCloud\V1\ListAzureClients } /** - * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource. * * If the client is used by one or more clusters, deletion will * fail and a `FAILED_PRECONDITION` error will be returned. @@ -111,7 +113,8 @@ public function DeleteAzureClient(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClie } /** - * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region. + * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource on a given GCP project and region. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -145,7 +148,8 @@ public function UpdateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureClu } /** - * Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * Describes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -160,8 +164,8 @@ public function GetAzureCluster(\Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRe } /** - * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and - * region. + * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources on a given Google Cloud project and region. * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -176,10 +180,11 @@ public function ListAzureClusters(\Google\Cloud\GkeMultiCloud\V1\ListAzureCluste } /** - * Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * Deletes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * - * Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources. + * Fails if the cluster has one or more associated + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -214,7 +219,9 @@ public function GenerateAzureAccessToken(\Google\Cloud\GkeMultiCloud\V1\Generate } /** - * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], + * attached to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -248,7 +255,8 @@ public function UpdateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureNo } /** - * Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * Describes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -263,7 +271,9 @@ public function GetAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAzureNodePool } /** - * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources on a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument input argument * @param array $metadata metadata * @param array $options call options @@ -278,7 +288,8 @@ public function ListAzureNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAzureNodeP } /** - * Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * Deletes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be diff --git a/GkeMultiCloud/src/V1/AzureConfigEncryption.php b/GkeMultiCloud/src/V1/AzureConfigEncryption.php index da9a81a9eb08..c9c99c3518ae 100644 --- a/GkeMultiCloud/src/V1/AzureConfigEncryption.php +++ b/GkeMultiCloud/src/V1/AzureConfigEncryption.php @@ -18,7 +18,8 @@ class AzureConfigEncryption extends \Google\Protobuf\Internal\Message { /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data. + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. * For example: * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` * @@ -26,7 +27,8 @@ class AzureConfigEncryption extends \Google\Protobuf\Internal\Message */ private $key_id = ''; /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data. + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) * in ASN.1 DER form. The string must be comprised of a single PEM block of * type "PUBLIC KEY". @@ -42,11 +44,13 @@ class AzureConfigEncryption extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $key_id - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data. + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. * For example: * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` * @type string $public_key - * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data. + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) * in ASN.1 DER form. The string must be comprised of a single PEM block of * type "PUBLIC KEY". @@ -58,7 +62,8 @@ public function __construct($data = NULL) { } /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data. + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. * For example: * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` * @@ -71,7 +76,8 @@ public function getKeyId() } /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data. + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. * For example: * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` * @@ -88,7 +94,8 @@ public function setKeyId($var) } /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data. + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) * in ASN.1 DER form. The string must be comprised of a single PEM block of * type "PUBLIC KEY". @@ -102,7 +109,8 @@ public function getPublicKey() } /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data. + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) * in ASN.1 DER form. The string must be comprised of a single PEM block of * type "PUBLIC KEY". diff --git a/GkeMultiCloud/src/V1/AzureControlPlane.php b/GkeMultiCloud/src/V1/AzureControlPlane.php index 2a2ae569fa60..0e4b51b12846 100644 --- a/GkeMultiCloud/src/V1/AzureControlPlane.php +++ b/GkeMultiCloud/src/V1/AzureControlPlane.php @@ -26,8 +26,8 @@ class AzureControlPlane extends \Google\Protobuf\Internal\Message */ private $version = ''; /** - * Optional. The ARM ID of the default subnet for the control plane. The control plane - * VMs are deployed in this subnet, unless + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless * `AzureControlPlane.replica_placements` is specified. This subnet will also * be used as default for `AzureControlPlane.endpoint_subnet_id` if * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will @@ -91,7 +91,8 @@ class AzureControlPlane extends \Google\Protobuf\Internal\Message */ private $config_encryption = null; /** - * Optional. A set of tags to apply to all underlying control plane Azure resources. + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. * * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -106,8 +107,8 @@ class AzureControlPlane extends \Google\Protobuf\Internal\Message */ private $replica_placements; /** - * Optional. The ARM ID of the subnet where the control plane load balancer is deployed. - * When unspecified, it defaults to AzureControlPlane.subnet_id. + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. * Example: * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" * @@ -128,8 +129,8 @@ class AzureControlPlane extends \Google\Protobuf\Internal\Message * calling * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. * @type string $subnet_id - * Optional. The ARM ID of the default subnet for the control plane. The control plane - * VMs are deployed in this subnet, unless + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless * `AzureControlPlane.replica_placements` is specified. This subnet will also * be used as default for `AzureControlPlane.endpoint_subnet_id` if * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will @@ -161,15 +162,16 @@ class AzureControlPlane extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption * Optional. Configuration related to vm config encryption. * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of tags to apply to all underlying control plane Azure resources. + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. * @type array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $replica_placements * Optional. Configuration for where to place the control plane replicas. * Up to three replica placement instances can be specified. If * replica_placements is set, the replica placement instances will be applied * to the three control plane replicas as evenly as possible. * @type string $endpoint_subnet_id - * Optional. The ARM ID of the subnet where the control plane load balancer is deployed. - * When unspecified, it defaults to AzureControlPlane.subnet_id. + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. * Example: * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" * } @@ -214,8 +216,8 @@ public function setVersion($var) } /** - * Optional. The ARM ID of the default subnet for the control plane. The control plane - * VMs are deployed in this subnet, unless + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless * `AzureControlPlane.replica_placements` is specified. This subnet will also * be used as default for `AzureControlPlane.endpoint_subnet_id` if * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will @@ -233,8 +235,8 @@ public function getSubnetId() } /** - * Optional. The ARM ID of the default subnet for the control plane. The control plane - * VMs are deployed in this subnet, unless + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless * `AzureControlPlane.replica_placements` is specified. This subnet will also * be used as default for `AzureControlPlane.endpoint_subnet_id` if * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will @@ -516,7 +518,8 @@ public function setConfigEncryption($var) } /** - * Optional. A set of tags to apply to all underlying control plane Azure resources. + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. * * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\MapField @@ -527,7 +530,8 @@ public function getTags() } /** - * Optional. A set of tags to apply to all underlying control plane Azure resources. + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. * * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param array|\Google\Protobuf\Internal\MapField $var @@ -574,8 +578,8 @@ public function setReplicaPlacements($var) } /** - * Optional. The ARM ID of the subnet where the control plane load balancer is deployed. - * When unspecified, it defaults to AzureControlPlane.subnet_id. + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. * Example: * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" * @@ -588,8 +592,8 @@ public function getEndpointSubnetId() } /** - * Optional. The ARM ID of the subnet where the control plane load balancer is deployed. - * When unspecified, it defaults to AzureControlPlane.subnet_id. + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. * Example: * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" * diff --git a/GkeMultiCloud/src/V1/AzureNodeConfig.php b/GkeMultiCloud/src/V1/AzureNodeConfig.php index 53a147a47792..59f617643528 100644 --- a/GkeMultiCloud/src/V1/AzureNodeConfig.php +++ b/GkeMultiCloud/src/V1/AzureNodeConfig.php @@ -34,8 +34,8 @@ class AzureNodeConfig extends \Google\Protobuf\Internal\Message */ private $root_volume = null; /** - * Optional. A set of tags to apply to all underlying Azure resources for this node - * pool. This currently only includes Virtual Machine Scale Sets. + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. * Specify at most 50 pairs containing alphanumerics, spaces, and symbols * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. @@ -101,8 +101,8 @@ class AzureNodeConfig extends \Google\Protobuf\Internal\Message * node pool machine. * When unspecified, it defaults to a 32-GiB Azure Disk. * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of tags to apply to all underlying Azure resources for this node - * pool. This currently only includes Virtual Machine Scale Sets. + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. * Specify at most 50 pairs containing alphanumerics, spaces, and symbols * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. @@ -203,8 +203,8 @@ public function setRootVolume($var) } /** - * Optional. A set of tags to apply to all underlying Azure resources for this node - * pool. This currently only includes Virtual Machine Scale Sets. + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. * Specify at most 50 pairs containing alphanumerics, spaces, and symbols * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. @@ -218,8 +218,8 @@ public function getTags() } /** - * Optional. A set of tags to apply to all underlying Azure resources for this node - * pool. This currently only includes Virtual Machine Scale Sets. + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. * Specify at most 50 pairs containing alphanumerics, spaces, and symbols * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. diff --git a/GkeMultiCloud/src/V1/AzureNodePool.php b/GkeMultiCloud/src/V1/AzureNodePool.php index 7bac98c04227..22c4c34f4c11 100644 --- a/GkeMultiCloud/src/V1/AzureNodePool.php +++ b/GkeMultiCloud/src/V1/AzureNodePool.php @@ -26,7 +26,8 @@ class AzureNodePool extends \Google\Protobuf\Internal\Message */ private $name = ''; /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool. + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. * * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -38,8 +39,8 @@ class AzureNodePool extends \Google\Protobuf\Internal\Message */ private $config = null; /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a - * subnet under the virtual network in the cluster configuration. + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. * * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; */ @@ -117,6 +118,12 @@ class AzureNodePool extends \Google\Protobuf\Internal\Message * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; */ private $azure_availability_zone = ''; + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; /** * Constructor. @@ -131,12 +138,13 @@ class AzureNodePool extends \Google\Protobuf\Internal\Message * For more details on Google Cloud resource names, * see [Resource Names](https://cloud.google.com/apis/design/resource_names) * @type string $version - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool. + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $config * Required. The node configuration of the node pool. * @type string $subnet_id - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a - * subnet under the virtual network in the cluster configuration. + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $autoscaling * Required. Autoscaler configuration for this node pool. * @type int $state @@ -170,6 +178,8 @@ class AzureNodePool extends \Google\Protobuf\Internal\Message * @type string $azure_availability_zone * Optional. The Azure availability zone of the nodes in this nodepool. * When unspecified, it defaults to `1`. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the node pool. * } */ public function __construct($data = NULL) { @@ -212,7 +222,8 @@ public function setName($var) } /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool. + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. * * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -223,7 +234,8 @@ public function getVersion() } /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool. + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. * * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var @@ -274,8 +286,8 @@ public function setConfig($var) } /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a - * subnet under the virtual network in the cluster configuration. + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. * * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -286,8 +298,8 @@ public function getSubnetId() } /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a - * subnet under the virtual network in the cluster configuration. + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. * * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @param string $var @@ -627,5 +639,31 @@ public function setAzureAvailabilityZone($var) return $this; } + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError::class); + $this->errors = $arr; + + return $this; + } + } diff --git a/GkeMultiCloud/src/V1/AzureNodePoolAutoscaling.php b/GkeMultiCloud/src/V1/AzureNodePoolAutoscaling.php index 56b03897d335..beb9d081090f 100644 --- a/GkeMultiCloud/src/V1/AzureNodePoolAutoscaling.php +++ b/GkeMultiCloud/src/V1/AzureNodePoolAutoscaling.php @@ -18,15 +18,15 @@ class AzureNodePoolAutoscaling extends \Google\Protobuf\Internal\Message { /** - * Required. Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. * * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $min_node_count = 0; /** - * Required. Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -39,11 +39,11 @@ class AzureNodePoolAutoscaling extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type int $min_node_count - * Required. Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. * @type int $max_node_count - * Required. Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * } */ public function __construct($data = NULL) { @@ -52,8 +52,8 @@ public function __construct($data = NULL) { } /** - * Required. Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. * * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; * @return int @@ -64,8 +64,8 @@ public function getMinNodeCount() } /** - * Required. Minimum number of nodes in the node pool. Must be greater than or equal to - * 1 and less than or equal to max_node_count. + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. * * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; * @param int $var @@ -80,8 +80,8 @@ public function setMinNodeCount($var) } /** - * Required. Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; * @return int @@ -92,8 +92,8 @@ public function getMaxNodeCount() } /** - * Required. Maximum number of nodes in the node pool. Must be greater than or equal to - * min_node_count and less than or equal to 50. + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. * * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; * @param int $var diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php b/GkeMultiCloud/src/V1/AzureNodePoolError.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php rename to GkeMultiCloud/src/V1/AzureNodePoolError.php index 854ce75b671a..81a43321f84e 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php +++ b/GkeMultiCloud/src/V1/AzureNodePoolError.php @@ -20,7 +20,7 @@ class AzureNodePoolError extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string message = 1; */ - protected $message = ''; + private $message = ''; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/AzureProxyConfig.php b/GkeMultiCloud/src/V1/AzureProxyConfig.php index f3f29552cefc..e4343728def7 100644 --- a/GkeMultiCloud/src/V1/AzureProxyConfig.php +++ b/GkeMultiCloud/src/V1/AzureProxyConfig.php @@ -25,6 +25,9 @@ class AzureProxyConfig extends \Google\Protobuf\Internal\Message private $resource_group_id = ''; /** * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file * Secret ids are formatted as * `https://.vault.azure.net/secrets//`. * @@ -44,6 +47,9 @@ class AzureProxyConfig extends \Google\Protobuf\Internal\Message * `/subscriptions//resourceGroups/`. * @type string $secret_id * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file * Secret ids are formatted as * `https://.vault.azure.net/secrets//`. * } @@ -85,6 +91,9 @@ public function setResourceGroupId($var) /** * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file * Secret ids are formatted as * `https://.vault.azure.net/secrets//`. * @@ -98,6 +107,9 @@ public function getSecretId() /** * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file * Secret ids are formatted as * `https://.vault.azure.net/secrets//`. * diff --git a/GkeMultiCloud/src/V1/AzureSshConfig.php b/GkeMultiCloud/src/V1/AzureSshConfig.php index ec17daeb939e..f37d5cfd3438 100644 --- a/GkeMultiCloud/src/V1/AzureSshConfig.php +++ b/GkeMultiCloud/src/V1/AzureSshConfig.php @@ -16,9 +16,9 @@ class AzureSshConfig extends \Google\Protobuf\Internal\Message { /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts the - * authorized_keys file format used in OpenSSH according to the sshd(8) manual - * page. + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. * * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ @@ -31,9 +31,9 @@ class AzureSshConfig extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $authorized_key - * Required. The SSH public key data for VMs managed by Anthos. This accepts the - * authorized_keys file format used in OpenSSH according to the sshd(8) manual - * page. + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. * } */ public function __construct($data = NULL) { @@ -42,9 +42,9 @@ public function __construct($data = NULL) { } /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts the - * authorized_keys file format used in OpenSSH according to the sshd(8) manual - * page. + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. * * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -55,9 +55,9 @@ public function getAuthorizedKey() } /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts the - * authorized_keys file format used in OpenSSH according to the sshd(8) manual - * page. + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. * * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php b/GkeMultiCloud/src/V1/CreateAttachedClusterRequest.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php rename to GkeMultiCloud/src/V1/CreateAttachedClusterRequest.php index 2e04dc9e7bd6..9a3b0fc560e7 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php +++ b/GkeMultiCloud/src/V1/CreateAttachedClusterRequest.php @@ -25,14 +25,14 @@ class CreateAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * Required. The specification of the * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $attached_cluster = null; + private $attached_cluster = null; /** * Required. A client provided ID the resource. Must be unique within the * parent resource. @@ -44,13 +44,13 @@ class CreateAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; */ - protected $attached_cluster_id = ''; + private $attached_cluster_id = ''; /** * If set, only validate the request, but do not actually create the cluster. * * Generated from protobuf field bool validate_only = 4; */ - protected $validate_only = false; + private $validate_only = false; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/CreateAwsClusterRequest.php b/GkeMultiCloud/src/V1/CreateAwsClusterRequest.php index 85e145dc09de..878fe63fff74 100644 --- a/GkeMultiCloud/src/V1/CreateAwsClusterRequest.php +++ b/GkeMultiCloud/src/V1/CreateAwsClusterRequest.php @@ -16,8 +16,9 @@ class CreateAwsClusterRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource - * will be created. + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -26,18 +27,20 @@ class CreateAwsClusterRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $aws_cluster = null; /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; */ @@ -56,20 +59,23 @@ class CreateAwsClusterRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource - * will be created. + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster - * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. * @type string $aws_cluster_id - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @type bool $validate_only * If set, only validate the request, but do not actually create the cluster. * } @@ -80,8 +86,9 @@ public function __construct($data = NULL) { } /** - * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource - * will be created. + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -95,8 +102,9 @@ public function getParent() } /** - * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource - * will be created. + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -114,7 +122,8 @@ public function setParent($var) } /** - * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null @@ -135,7 +144,8 @@ public function clearAwsCluster() } /** - * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var @@ -150,12 +160,13 @@ public function setAwsCluster($var) } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -166,12 +177,13 @@ public function getAwsClusterId() } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/GkeMultiCloud/src/V1/CreateAwsNodePoolRequest.php b/GkeMultiCloud/src/V1/CreateAwsNodePoolRequest.php index 8fee3ed12584..7ae3b9fef711 100644 --- a/GkeMultiCloud/src/V1/CreateAwsNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/CreateAwsNodePoolRequest.php @@ -16,7 +16,8 @@ class CreateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created. + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -26,18 +27,20 @@ class CreateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $aws_node_pool = null; /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; */ @@ -57,20 +60,23 @@ class CreateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created. + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool - * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. * @type string $aws_node_pool_id - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @type bool $validate_only * If set, only validate the request, but do not actually create the node * pool. @@ -82,7 +88,8 @@ public function __construct($data = NULL) { } /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created. + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -97,7 +104,8 @@ public function getParent() } /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created. + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -116,7 +124,8 @@ public function setParent($var) } /** - * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null @@ -137,7 +146,8 @@ public function clearAwsNodePool() } /** - * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var @@ -152,12 +162,13 @@ public function setAwsNodePool($var) } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -168,12 +179,13 @@ public function getAwsNodePoolId() } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/GkeMultiCloud/src/V1/CreateAzureClientRequest.php b/GkeMultiCloud/src/V1/CreateAzureClientRequest.php index 45dc9de0d09c..37a7934caa9e 100644 --- a/GkeMultiCloud/src/V1/CreateAzureClientRequest.php +++ b/GkeMultiCloud/src/V1/CreateAzureClientRequest.php @@ -16,8 +16,9 @@ class CreateAzureClientRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource - * will be created. + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -26,18 +27,20 @@ class CreateAzureClientRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $azure_client = null; /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; */ @@ -56,20 +59,23 @@ class CreateAzureClientRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource - * will be created. + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. * @type \Google\Cloud\GkeMultiCloud\V1\AzureClient $azure_client - * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. * @type string $azure_client_id - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @type bool $validate_only * If set, only validate the request, but do not actually create the client. * } @@ -80,8 +86,9 @@ public function __construct($data = NULL) { } /** - * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource - * will be created. + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -95,8 +102,9 @@ public function getParent() } /** - * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource - * will be created. + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -114,7 +122,8 @@ public function setParent($var) } /** - * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AzureClient|null @@ -135,7 +144,8 @@ public function clearAzureClient() } /** - * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AzureClient $var @@ -150,12 +160,13 @@ public function setAzureClient($var) } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -166,12 +177,13 @@ public function getAzureClientId() } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/GkeMultiCloud/src/V1/CreateAzureClusterRequest.php b/GkeMultiCloud/src/V1/CreateAzureClusterRequest.php index e5b29d873b9e..a7ad4c813d2c 100644 --- a/GkeMultiCloud/src/V1/CreateAzureClusterRequest.php +++ b/GkeMultiCloud/src/V1/CreateAzureClusterRequest.php @@ -16,8 +16,9 @@ class CreateAzureClusterRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource - * will be created. + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -26,18 +27,20 @@ class CreateAzureClusterRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $azure_cluster = null; /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; */ @@ -56,20 +59,23 @@ class CreateAzureClusterRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource - * will be created. + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster - * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. * @type string $azure_cluster_id - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @type bool $validate_only * If set, only validate the request, but do not actually create the cluster. * } @@ -80,8 +86,9 @@ public function __construct($data = NULL) { } /** - * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource - * will be created. + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -95,8 +102,9 @@ public function getParent() } /** - * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource - * will be created. + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -114,7 +122,8 @@ public function setParent($var) } /** - * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null @@ -135,7 +144,8 @@ public function clearAzureCluster() } /** - * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var @@ -150,12 +160,13 @@ public function setAzureCluster($var) } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -166,12 +177,13 @@ public function getAzureClusterId() } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/GkeMultiCloud/src/V1/CreateAzureNodePoolRequest.php b/GkeMultiCloud/src/V1/CreateAzureNodePoolRequest.php index 7989cd5f6bfe..7b09bd663f9c 100644 --- a/GkeMultiCloud/src/V1/CreateAzureNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/CreateAzureNodePoolRequest.php @@ -16,7 +16,8 @@ class CreateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created. + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -25,18 +26,20 @@ class CreateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $azure_node_pool = null; /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; */ @@ -56,19 +59,22 @@ class CreateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created. + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool - * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. * @type string $azure_node_pool_id - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @type bool $validate_only * If set, only validate the request, but do not actually create the node * pool. @@ -80,7 +86,8 @@ public function __construct($data = NULL) { } /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created. + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -94,7 +101,8 @@ public function getParent() } /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created. + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. * Location names are formatted as `projects//locations/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -112,7 +120,8 @@ public function setParent($var) } /** - * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null @@ -133,7 +142,8 @@ public function clearAzureNodePool() } /** - * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var @@ -148,12 +158,13 @@ public function setAzureNodePool($var) } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -164,12 +175,13 @@ public function getAzureNodePoolId() } /** - * Required. A client provided ID the resource. Must be unique within the parent - * resource. - * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource name formatted as + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php b/GkeMultiCloud/src/V1/DeleteAttachedClusterRequest.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php rename to GkeMultiCloud/src/V1/DeleteAttachedClusterRequest.php index 5203109f005f..418f6a3290d8 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php +++ b/GkeMultiCloud/src/V1/DeleteAttachedClusterRequest.php @@ -25,13 +25,13 @@ class DeleteAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $name = ''; + private $name = ''; /** * If set, only validate the request, but do not actually delete the resource. * * Generated from protobuf field bool validate_only = 2; */ - protected $validate_only = false; + private $validate_only = false; /** * If set to true, and the * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource @@ -42,7 +42,7 @@ class DeleteAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field bool allow_missing = 3; */ - protected $allow_missing = false; + private $allow_missing = false; /** * If set to true, the deletion of * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource @@ -51,7 +51,7 @@ class DeleteAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field bool ignore_errors = 5; */ - protected $ignore_errors = false; + private $ignore_errors = false; /** * The current etag of the * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. @@ -61,7 +61,7 @@ class DeleteAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string etag = 4; */ - protected $etag = ''; + private $etag = ''; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/DeleteAwsClusterRequest.php b/GkeMultiCloud/src/V1/DeleteAwsClusterRequest.php index c46f305d11de..0f54a7e5fff0 100644 --- a/GkeMultiCloud/src/V1/DeleteAwsClusterRequest.php +++ b/GkeMultiCloud/src/V1/DeleteAwsClusterRequest.php @@ -16,7 +16,8 @@ class DeleteAwsClusterRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -32,16 +33,18 @@ class DeleteAwsClusterRequest extends \Google\Protobuf\Internal\Message */ private $validate_only = false; /** - * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; */ private $allow_missing = false; /** - * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. @@ -57,7 +60,8 @@ class DeleteAwsClusterRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -65,12 +69,14 @@ class DeleteAwsClusterRequest extends \Google\Protobuf\Internal\Message * @type bool $validate_only * If set, only validate the request, but do not actually delete the resource. * @type bool $allow_missing - * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * @type string $etag - * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. @@ -82,7 +88,8 @@ public function __construct($data = NULL) { } /** - * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -97,7 +104,8 @@ public function getName() } /** - * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -142,9 +150,10 @@ public function setValidateOnly($var) } /** - * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; @@ -156,9 +165,10 @@ public function getAllowMissing() } /** - * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; @@ -174,7 +184,8 @@ public function setAllowMissing($var) } /** - * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. @@ -188,7 +199,8 @@ public function getEtag() } /** - * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. diff --git a/GkeMultiCloud/src/V1/DeleteAwsNodePoolRequest.php b/GkeMultiCloud/src/V1/DeleteAwsNodePoolRequest.php index 032b2ce0a0ce..279e41bdb7c3 100644 --- a/GkeMultiCloud/src/V1/DeleteAwsNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/DeleteAwsNodePoolRequest.php @@ -9,14 +9,15 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for `AwsClusters.DeleteNodePool` method. + * Request message for `AwsClusters.DeleteAwsNodePool` method. * * Generated from protobuf message google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest */ class DeleteAwsNodePoolRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,16 +34,18 @@ class DeleteAwsNodePoolRequest extends \Google\Protobuf\Internal\Message */ private $validate_only = false; /** - * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; */ private $allow_missing = false; /** - * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. @@ -58,7 +61,8 @@ class DeleteAwsNodePoolRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -67,12 +71,14 @@ class DeleteAwsNodePoolRequest extends \Google\Protobuf\Internal\Message * If set, only validate the request, but do not actually delete the node * pool. * @type bool $allow_missing - * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * @type string $etag - * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. @@ -84,7 +90,8 @@ public function __construct($data = NULL) { } /** - * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -99,7 +106,8 @@ public function getName() } /** - * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -146,9 +154,10 @@ public function setValidateOnly($var) } /** - * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; @@ -160,9 +169,10 @@ public function getAllowMissing() } /** - * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; @@ -178,7 +188,8 @@ public function setAllowMissing($var) } /** - * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. @@ -192,7 +203,8 @@ public function getEtag() } /** - * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. diff --git a/GkeMultiCloud/src/V1/DeleteAzureClientRequest.php b/GkeMultiCloud/src/V1/DeleteAzureClientRequest.php index 646f84e80bbd..b08c03ee705d 100644 --- a/GkeMultiCloud/src/V1/DeleteAzureClientRequest.php +++ b/GkeMultiCloud/src/V1/DeleteAzureClientRequest.php @@ -16,8 +16,10 @@ class DeleteAzureClientRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -26,9 +28,10 @@ class DeleteAzureClientRequest extends \Google\Protobuf\Internal\Message */ private $name = ''; /** - * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 2; @@ -48,15 +51,18 @@ class DeleteAzureClientRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. * @type bool $allow_missing - * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * @type bool $validate_only * If set, only validate the request, but do not actually delete the resource. @@ -68,8 +74,10 @@ public function __construct($data = NULL) { } /** - * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -83,8 +91,10 @@ public function getName() } /** - * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -102,9 +112,10 @@ public function setName($var) } /** - * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 2; @@ -116,9 +127,10 @@ public function getAllowMissing() } /** - * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 2; diff --git a/GkeMultiCloud/src/V1/DeleteAzureClusterRequest.php b/GkeMultiCloud/src/V1/DeleteAzureClusterRequest.php index c29d480aa126..095624bbec7e 100644 --- a/GkeMultiCloud/src/V1/DeleteAzureClusterRequest.php +++ b/GkeMultiCloud/src/V1/DeleteAzureClusterRequest.php @@ -16,7 +16,8 @@ class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -26,9 +27,10 @@ class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message */ private $name = ''; /** - * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 2; @@ -41,7 +43,8 @@ class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message */ private $validate_only = false; /** - * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. @@ -57,20 +60,23 @@ class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on GCP resource names. * @type bool $allow_missing - * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * @type bool $validate_only * If set, only validate the request, but do not actually delete the resource. * @type string $etag - * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. @@ -82,7 +88,8 @@ public function __construct($data = NULL) { } /** - * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -97,7 +104,8 @@ public function getName() } /** - * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -116,9 +124,10 @@ public function setName($var) } /** - * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 2; @@ -130,9 +139,10 @@ public function getAllowMissing() } /** - * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 2; @@ -174,7 +184,8 @@ public function setValidateOnly($var) } /** - * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. @@ -188,7 +199,8 @@ public function getEtag() } /** - * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. diff --git a/GkeMultiCloud/src/V1/DeleteAzureNodePoolRequest.php b/GkeMultiCloud/src/V1/DeleteAzureNodePoolRequest.php index 00befc215be1..118b23f993c4 100644 --- a/GkeMultiCloud/src/V1/DeleteAzureNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/DeleteAzureNodePoolRequest.php @@ -9,14 +9,15 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Delete message for `AzureClusters.DeleteNodePool` method. + * Delete message for `AzureClusters.DeleteAzureNodePool` method. * * Generated from protobuf message google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest */ class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,16 +34,19 @@ class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message */ private $validate_only = false; /** - * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; */ private $allow_missing = false; /** - * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. @@ -58,7 +62,8 @@ class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -67,12 +72,15 @@ class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message * If set, only validate the request, but do not actually delete the node * pool. * @type bool $allow_missing - * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. * Useful for idempotent deletion. * @type string $etag - * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. @@ -84,7 +92,8 @@ public function __construct($data = NULL) { } /** - * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -99,7 +108,8 @@ public function getName() } /** - * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -146,9 +156,11 @@ public function setValidateOnly($var) } /** - * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; @@ -160,9 +172,11 @@ public function getAllowMissing() } /** - * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. * Useful for idempotent deletion. * * Generated from protobuf field bool allow_missing = 3; @@ -178,7 +192,8 @@ public function setAllowMissing($var) } /** - * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. @@ -192,7 +207,8 @@ public function getEtag() } /** - * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. diff --git a/GkeMultiCloud/src/V1/Fleet.php b/GkeMultiCloud/src/V1/Fleet.php index 61997f7332ee..860ebe49c0a4 100644 --- a/GkeMultiCloud/src/V1/Fleet.php +++ b/GkeMultiCloud/src/V1/Fleet.php @@ -22,7 +22,8 @@ class Fleet extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the Fleet host project where this cluster will be registered. + * Required. The name of the Fleet host project where this cluster will be + * registered. * Project names are formatted as * `projects/`. * @@ -30,7 +31,8 @@ class Fleet extends \Google\Protobuf\Internal\Message */ private $project = ''; /** - * Output only. The name of the managed Hub Membership resource associated to this cluster. + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. * Membership names are formatted as * `projects//locations/global/membership/`. * @@ -45,11 +47,13 @@ class Fleet extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $project - * Required. The name of the Fleet host project where this cluster will be registered. + * Required. The name of the Fleet host project where this cluster will be + * registered. * Project names are formatted as * `projects/`. * @type string $membership - * Output only. The name of the managed Hub Membership resource associated to this cluster. + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. * Membership names are formatted as * `projects//locations/global/membership/`. * } @@ -60,7 +64,8 @@ public function __construct($data = NULL) { } /** - * Required. The name of the Fleet host project where this cluster will be registered. + * Required. The name of the Fleet host project where this cluster will be + * registered. * Project names are formatted as * `projects/`. * @@ -73,7 +78,8 @@ public function getProject() } /** - * Required. The name of the Fleet host project where this cluster will be registered. + * Required. The name of the Fleet host project where this cluster will be + * registered. * Project names are formatted as * `projects/`. * @@ -90,7 +96,8 @@ public function setProject($var) } /** - * Output only. The name of the managed Hub Membership resource associated to this cluster. + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. * Membership names are formatted as * `projects//locations/global/membership/`. * @@ -103,7 +110,8 @@ public function getMembership() } /** - * Output only. The name of the managed Hub Membership resource associated to this cluster. + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. * Membership names are formatted as * `projects//locations/global/membership/`. * diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AttachedClustersGapicClient.php b/GkeMultiCloud/src/V1/Gapic/AttachedClustersGapicClient.php similarity index 88% rename from owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AttachedClustersGapicClient.php rename to GkeMultiCloud/src/V1/Gapic/AttachedClustersGapicClient.php index 9ecf0cf22bf2..96668436714f 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AttachedClustersGapicClient.php +++ b/GkeMultiCloud/src/V1/Gapic/AttachedClustersGapicClient.php @@ -135,16 +135,23 @@ private static function getClientDefaults() { return [ 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/attached_clusters_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/attached_clusters_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/attached_clusters_grpc_config.json', + 'apiEndpoint' => + self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => + __DIR__ . '/../resources/attached_clusters_client_config.json', + 'descriptorsConfigPath' => + __DIR__ . + '/../resources/attached_clusters_descriptor_config.php', + 'gcpApiConfigPath' => + __DIR__ . '/../resources/attached_clusters_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/attached_clusters_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . + '/../resources/attached_clusters_rest_client_config.php', ], ], ]; @@ -153,7 +160,9 @@ private static function getClientDefaults() private static function getAttachedClusterNameTemplate() { if (self::$attachedClusterNameTemplate == null) { - self::$attachedClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/attachedClusters/{attached_cluster}'); + self::$attachedClusterNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/attachedClusters/{attached_cluster}' + ); } return self::$attachedClusterNameTemplate; @@ -162,7 +171,9 @@ private static function getAttachedClusterNameTemplate() private static function getAttachedServerConfigNameTemplate() { if (self::$attachedServerConfigNameTemplate == null) { - self::$attachedServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/attachedServerConfig'); + self::$attachedServerConfigNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/attachedServerConfig' + ); } return self::$attachedServerConfigNameTemplate; @@ -171,7 +182,9 @@ private static function getAttachedServerConfigNameTemplate() private static function getLocationNameTemplate() { if (self::$locationNameTemplate == null) { - self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); + self::$locationNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}' + ); } return self::$locationNameTemplate; @@ -200,8 +213,11 @@ private static function getPathTemplateMap() * * @return string The formatted attached_cluster resource. */ - public static function attachedClusterName($project, $location, $attachedCluster) - { + public static function attachedClusterName( + $project, + $location, + $attachedCluster + ) { return self::getAttachedClusterNameTemplate()->render([ 'project' => $project, 'location' => $location, @@ -269,7 +285,9 @@ public static function parseName($formattedName, $template = null) $templateMap = self::getPathTemplateMap(); if ($template) { if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); + throw new ValidationException( + "Template name $template does not exist" + ); } return $templateMap[$template]->match($formattedName); @@ -283,7 +301,9 @@ public static function parseName($formattedName, $template = null) } } - throw new ValidationException("Input did not match any known format. Input: $formattedName"); + throw new ValidationException( + "Input did not match any known format. Input: $formattedName" + ); } /** @@ -309,8 +329,14 @@ public function getOperationsClient() */ public function resumeOperation($operationName, $methodName = null) { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $options = isset($this->descriptors[$methodName]['longRunning']) + ? $this->descriptors[$methodName]['longRunning'] + : []; + $operation = new OperationResponse( + $operationName, + $this->getOperationsClient(), + $options + ); $operation->reload(); return $operation; } @@ -457,8 +483,12 @@ public function __construct(array $options = []) * * @throws ApiException if the remote call fails */ - public function createAttachedCluster($parent, $attachedCluster, $attachedClusterId, array $optionalArgs = []) - { + public function createAttachedCluster( + $parent, + $attachedCluster, + $attachedClusterId, + array $optionalArgs = [] + ) { $request = new CreateAttachedClusterRequest(); $requestParamHeaders = []; $request->setParent($parent); @@ -469,9 +499,18 @@ public function createAttachedCluster($parent, $attachedCluster, $attachedCluste $request->setValidateOnly($optionalArgs['validateOnly']); } - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + $requestParams = new RequestParamsHeaderDescriptor( + $requestParamHeaders + ); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startOperationsCall( + 'CreateAttachedCluster', + $optionalArgs, + $request, + $this->getOperationsClient() + )->wait(); } /** @@ -582,9 +621,18 @@ public function deleteAttachedCluster($name, array $optionalArgs = []) $request->setEtag($optionalArgs['etag']); } - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + $requestParams = new RequestParamsHeaderDescriptor( + $requestParamHeaders + ); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startOperationsCall( + 'DeleteAttachedCluster', + $optionalArgs, + $request, + $this->getOperationsClient() + )->wait(); } /** @@ -644,17 +692,30 @@ public function deleteAttachedCluster($name, array $optionalArgs = []) * * @throws ApiException if the remote call fails */ - public function generateAttachedClusterInstallManifest($parent, $attachedClusterId, $platformVersion, array $optionalArgs = []) - { + public function generateAttachedClusterInstallManifest( + $parent, + $attachedClusterId, + $platformVersion, + array $optionalArgs = [] + ) { $request = new GenerateAttachedClusterInstallManifestRequest(); $requestParamHeaders = []; $request->setParent($parent); $request->setAttachedClusterId($attachedClusterId); $request->setPlatformVersion($platformVersion); $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GenerateAttachedClusterInstallManifest', GenerateAttachedClusterInstallManifestResponse::class, $optionalArgs, $request)->wait(); + $requestParams = new RequestParamsHeaderDescriptor( + $requestParamHeaders + ); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startCall( + 'GenerateAttachedClusterInstallManifest', + GenerateAttachedClusterInstallManifestResponse::class, + $optionalArgs, + $request + )->wait(); } /** @@ -700,9 +761,18 @@ public function getAttachedCluster($name, array $optionalArgs = []) $requestParamHeaders = []; $request->setName($name); $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAttachedCluster', AttachedCluster::class, $optionalArgs, $request)->wait(); + $requestParams = new RequestParamsHeaderDescriptor( + $requestParamHeaders + ); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startCall( + 'GetAttachedCluster', + AttachedCluster::class, + $optionalArgs, + $request + )->wait(); } /** @@ -748,9 +818,18 @@ public function getAttachedServerConfig($name, array $optionalArgs = []) $requestParamHeaders = []; $request->setName($name); $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAttachedServerConfig', AttachedServerConfig::class, $optionalArgs, $request)->wait(); + $requestParams = new RequestParamsHeaderDescriptor( + $requestParamHeaders + ); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startCall( + 'GetAttachedServerConfig', + AttachedServerConfig::class, + $optionalArgs, + $request + )->wait(); } /** @@ -836,8 +915,13 @@ public function getAttachedServerConfig($name, array $optionalArgs = []) * * @throws ApiException if the remote call fails */ - public function importAttachedCluster($parent, $fleetMembership, $platformVersion, $distribution, array $optionalArgs = []) - { + public function importAttachedCluster( + $parent, + $fleetMembership, + $platformVersion, + $distribution, + array $optionalArgs = [] + ) { $request = new ImportAttachedClusterRequest(); $requestParamHeaders = []; $request->setParent($parent); @@ -849,9 +933,18 @@ public function importAttachedCluster($parent, $fleetMembership, $platformVersio $request->setValidateOnly($optionalArgs['validateOnly']); } - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('ImportAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + $requestParams = new RequestParamsHeaderDescriptor( + $requestParamHeaders + ); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startOperationsCall( + 'ImportAttachedCluster', + $optionalArgs, + $request, + $this->getOperationsClient() + )->wait(); } /** @@ -924,9 +1017,18 @@ public function listAttachedClusters($parent, array $optionalArgs = []) $request->setPageToken($optionalArgs['pageToken']); } - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAttachedClusters', $optionalArgs, ListAttachedClustersResponse::class, $request); + $requestParams = new RequestParamsHeaderDescriptor( + $requestParamHeaders + ); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->getPagedListResponse( + 'ListAttachedClusters', + $optionalArgs, + ListAttachedClustersResponse::class, + $request + ); } /** @@ -999,19 +1101,33 @@ public function listAttachedClusters($parent, array $optionalArgs = []) * * @throws ApiException if the remote call fails */ - public function updateAttachedCluster($attachedCluster, $updateMask, array $optionalArgs = []) - { + public function updateAttachedCluster( + $attachedCluster, + $updateMask, + array $optionalArgs = [] + ) { $request = new UpdateAttachedClusterRequest(); $requestParamHeaders = []; $request->setAttachedCluster($attachedCluster); $request->setUpdateMask($updateMask); - $requestParamHeaders['attached_cluster.name'] = $attachedCluster->getName(); + $requestParamHeaders[ + 'attached_cluster.name' + ] = $attachedCluster->getName(); if (isset($optionalArgs['validateOnly'])) { $request->setValidateOnly($optionalArgs['validateOnly']); } - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + $requestParams = new RequestParamsHeaderDescriptor( + $requestParamHeaders + ); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startOperationsCall( + 'UpdateAttachedCluster', + $optionalArgs, + $request, + $this->getOperationsClient() + )->wait(); } } diff --git a/GkeMultiCloud/src/V1/Gapic/AwsClustersGapicClient.php b/GkeMultiCloud/src/V1/Gapic/AwsClustersGapicClient.php index 450c38877795..09786478f43d 100644 --- a/GkeMultiCloud/src/V1/Gapic/AwsClustersGapicClient.php +++ b/GkeMultiCloud/src/V1/Gapic/AwsClustersGapicClient.php @@ -444,7 +444,8 @@ public function __construct(array $options = []) } /** - * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region. + * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource on a given GCP project and region. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -488,22 +489,25 @@ public function __construct(array $options = []) * } * ``` * - * @param string $parent Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource - * will be created. + * @param string $parent Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. * * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. - * @param AwsCluster $awsCluster Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * @param string $awsClusterId Required. A client provided ID the resource. Must be unique within the parent - * resource. - * - * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource name formatted as + * @param AwsCluster $awsCluster Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * @param string $awsClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as * `projects//locations//awsClusters/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @param array $optionalArgs { * Optional. * @@ -550,7 +554,8 @@ public function createAwsCluster( } /** - * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], + * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -594,22 +599,25 @@ public function createAwsCluster( * } * ``` * - * @param string $parent Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created. + * @param string $parent Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. * * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. - * @param AwsNodePool $awsNodePool Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * @param string $awsNodePoolId Required. A client provided ID the resource. Must be unique within the parent - * resource. - * - * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource name formatted as + * @param AwsNodePool $awsNodePool Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * @param string $awsNodePoolId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as * `projects//locations//awsClusters//awsNodePools/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @param array $optionalArgs { * Optional. * @@ -657,10 +665,11 @@ public function createAwsNodePool( } /** - * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. * - * Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources. + * Fails if the cluster has one or more associated + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -700,7 +709,8 @@ public function createAwsNodePool( * } * ``` * - * @param string $name Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * @param string $name Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. * * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. @@ -713,13 +723,15 @@ public function createAwsNodePool( * @type bool $validateOnly * If set, only validate the request, but do not actually delete the resource. * @type bool $allowMissing - * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * * Useful for idempotent deletion. * @type string $etag - * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * * Allows clients to perform deletions through optimistic concurrency control. * @@ -768,7 +780,8 @@ public function deleteAwsCluster($name, array $optionalArgs = []) } /** - * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -808,7 +821,8 @@ public function deleteAwsCluster($name, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * @param string $name Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. * * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. @@ -822,13 +836,15 @@ public function deleteAwsCluster($name, array $optionalArgs = []) * If set, only validate the request, but do not actually delete the node * pool. * @type bool $allowMissing - * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * * Useful for idempotent deletion. * @type string $etag - * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * * Allows clients to perform deletions through optimistic concurrency control. * @@ -891,7 +907,9 @@ public function deleteAwsNodePool($name, array $optionalArgs = []) * } * ``` * - * @param string $awsCluster Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to. + * @param string $awsCluster Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. * * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. @@ -934,7 +952,8 @@ public function generateAwsAccessToken( } /** - * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. * * Sample code: * ``` @@ -947,7 +966,9 @@ public function generateAwsAccessToken( * } * ``` * - * @param string $name Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe. + * @param string $name Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. * * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. @@ -988,7 +1009,8 @@ public function getAwsCluster($name, array $optionalArgs = []) } /** - * Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * Describes a specific + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. * * Sample code: * ``` @@ -1001,7 +1023,9 @@ public function getAwsCluster($name, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe. + * @param string $name Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. * * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. @@ -1056,7 +1080,9 @@ public function getAwsNodePool($name, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe. + * @param string $name Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. * * `AwsServerConfig` names are formatted as * `projects//locations//awsServerConfig`. @@ -1097,8 +1123,8 @@ public function getAwsServerConfig($name, array $optionalArgs = []) } /** - * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and - * region. + * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * on a given Google Cloud project and region. * * Sample code: * ``` @@ -1181,7 +1207,9 @@ public function listAwsClusters($parent, array $optionalArgs = []) } /** - * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources on a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * * Sample code: * ``` @@ -1304,7 +1332,8 @@ public function listAwsNodePools($parent, array $optionalArgs = []) * } * ``` * - * @param AwsCluster $awsCluster Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update. + * @param AwsCluster $awsCluster Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in * this field. The elements of the repeated paths field can only include these * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: @@ -1321,14 +1350,17 @@ public function listAwsNodePools($parent, array $optionalArgs = []) * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. * @param array $optionalArgs { * Optional. * @@ -1412,7 +1444,8 @@ public function updateAwsCluster( * } * ``` * - * @param AwsNodePool $awsNodePool Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update. + * @param AwsNodePool $awsNodePool Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in * this field. The elements of the repeated paths field can only include these * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: @@ -1432,6 +1465,13 @@ public function updateAwsCluster( * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. * @param array $optionalArgs { * Optional. * diff --git a/GkeMultiCloud/src/V1/Gapic/AzureClustersGapicClient.php b/GkeMultiCloud/src/V1/Gapic/AzureClustersGapicClient.php index aca41ceb998b..d99b595bf32e 100644 --- a/GkeMultiCloud/src/V1/Gapic/AzureClustersGapicClient.php +++ b/GkeMultiCloud/src/V1/Gapic/AzureClustersGapicClient.php @@ -484,8 +484,8 @@ public function __construct(array $options = []) } /** - * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project - * and region. + * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource on a given Google Cloud project and region. * * `AzureClient` resources hold client authentication * information needed by the Anthos Multicloud API to manage Azure resources @@ -533,22 +533,25 @@ public function __construct(array $options = []) * } * ``` * - * @param string $parent Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource - * will be created. + * @param string $parent Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. * * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. - * @param AzureClient $azureClient Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * @param string $azureClientId Required. A client provided ID the resource. Must be unique within the parent - * resource. - * - * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource name formatted as + * @param AzureClient $azureClient Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * @param string $azureClientId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as * `projects//locations//azureClients/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @param array $optionalArgs { * Optional. * @@ -595,7 +598,8 @@ public function createAzureClient( } /** - * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region. + * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource on a given GCP project and region. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -639,22 +643,25 @@ public function createAzureClient( * } * ``` * - * @param string $parent Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource - * will be created. + * @param string $parent Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. * * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. - * @param AzureCluster $azureCluster Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * @param string $azureClusterId Required. A client provided ID the resource. Must be unique within the parent - * resource. - * - * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource name formatted as + * @param AzureCluster $azureCluster Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * @param string $azureClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as * `projects//locations//azureClusters/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @param array $optionalArgs { * Optional. * @@ -701,7 +708,9 @@ public function createAzureCluster( } /** - * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], + * attached to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -745,21 +754,24 @@ public function createAzureCluster( * } * ``` * - * @param string $parent Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created. + * @param string $parent Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. * * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. - * @param AzureNodePool $azureNodePool Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * @param string $azureNodePoolId Required. A client provided ID the resource. Must be unique within the parent - * resource. - * - * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource name formatted as + * @param AzureNodePool $azureNodePool Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * @param string $azureNodePoolId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as * `projects//locations//azureClusters//azureNodePools/`. * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @param array $optionalArgs { * Optional. * @@ -807,7 +819,8 @@ public function createAzureNodePool( } /** - * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource. * * If the client is used by one or more clusters, deletion will * fail and a `FAILED_PRECONDITION` error will be returned. @@ -850,9 +863,11 @@ public function createAzureNodePool( * } * ``` * - * @param string $name Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * @param string $name Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. * - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -861,9 +876,10 @@ public function createAzureNodePool( * Optional. * * @type bool $allowMissing - * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * * Useful for idempotent deletion. * @type bool $validateOnly @@ -907,10 +923,11 @@ public function deleteAzureClient($name, array $optionalArgs = []) } /** - * Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * Deletes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * - * Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources. + * Fails if the cluster has one or more associated + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -950,7 +967,8 @@ public function deleteAzureClient($name, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * @param string $name Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. * * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. @@ -961,15 +979,17 @@ public function deleteAzureClient($name, array $optionalArgs = []) * Optional. * * @type bool $allowMissing - * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. * * Useful for idempotent deletion. * @type bool $validateOnly * If set, only validate the request, but do not actually delete the resource. * @type string $etag - * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * * Allows clients to perform deletions through optimistic concurrency control. * @@ -1018,7 +1038,8 @@ public function deleteAzureCluster($name, array $optionalArgs = []) } /** - * Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * Deletes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * * If successful, the response contains a newly created * [Operation][google.longrunning.Operation] resource that can be @@ -1058,7 +1079,8 @@ public function deleteAzureCluster($name, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * @param string $name Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. * * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. @@ -1072,13 +1094,16 @@ public function deleteAzureCluster($name, array $optionalArgs = []) * If set, only validate the request, but do not actually delete the node * pool. * @type bool $allowMissing - * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found, - * the request will succeed but no action will be taken on the server and a - * completed [Operation][google.longrunning.Operation] will be returned. + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. * * Useful for idempotent deletion. * @type string $etag - * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * * Allows clients to perform deletions through optimistic concurrency control. * @@ -1141,7 +1166,9 @@ public function deleteAzureNodePool($name, array $optionalArgs = []) * } * ``` * - * @param string $azureCluster Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to. + * @param string $azureCluster Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. * * `AzureCluster` names are formatted as * `projects//locations//AzureClusters/`. @@ -1184,7 +1211,8 @@ public function generateAzureAccessToken( } /** - * Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * Describes a specific + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. * * Sample code: * ``` @@ -1197,9 +1225,12 @@ public function generateAzureAccessToken( * } * ``` * - * @param string $name Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe. + * @param string $name Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. * - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -1238,7 +1269,8 @@ public function getAzureClient($name, array $optionalArgs = []) } /** - * Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * Describes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * * Sample code: * ``` @@ -1251,7 +1283,9 @@ public function getAzureClient($name, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe. + * @param string $name Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. * * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. @@ -1292,7 +1326,8 @@ public function getAzureCluster($name, array $optionalArgs = []) } /** - * Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * Describes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * * Sample code: * ``` @@ -1305,7 +1340,9 @@ public function getAzureCluster($name, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe. + * @param string $name Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. * * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. @@ -1360,7 +1397,9 @@ public function getAzureNodePool($name, array $optionalArgs = []) * } * ``` * - * @param string $name Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe. + * @param string $name Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. * * `AzureServerConfig` names are formatted as * `projects//locations//azureServerConfig`. @@ -1401,8 +1440,8 @@ public function getAzureServerConfig($name, array $optionalArgs = []) } /** - * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and - * region. + * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources on a given Google Cloud project and region. * * Sample code: * ``` @@ -1485,8 +1524,8 @@ public function listAzureClients($parent, array $optionalArgs = []) } /** - * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and - * region. + * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources on a given Google Cloud project and region. * * Sample code: * ``` @@ -1569,7 +1608,9 @@ public function listAzureClusters($parent, array $optionalArgs = []) } /** - * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources on a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * * Sample code: * ``` @@ -1692,19 +1733,25 @@ public function listAzureNodePools($parent, array $optionalArgs = []) * } * ``` * - * @param AzureCluster $azureCluster Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update. + * @param AzureCluster $azureCluster Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. * @param array $optionalArgs { * Optional. * @@ -1788,7 +1835,8 @@ public function updateAzureCluster( * } * ``` * - * @param AzureNodePool $azureNodePool Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update. + * @param AzureNodePool $azureNodePool Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in * this field. The elements of the repeated paths field can only include these * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: @@ -1797,7 +1845,7 @@ public function updateAzureCluster( * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. * @param array $optionalArgs { * Optional. * diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php b/GkeMultiCloud/src/V1/GenerateAttachedClusterInstallManifestRequest.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php rename to GkeMultiCloud/src/V1/GenerateAttachedClusterInstallManifestRequest.php index 67e0ad776fc6..8ef428eec3a9 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php +++ b/GkeMultiCloud/src/V1/GenerateAttachedClusterInstallManifestRequest.php @@ -26,7 +26,7 @@ class GenerateAttachedClusterInstallManifestRequest extends \Google\Protobuf\Int * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * Required. A client provided ID the resource. Must be unique within the * parent resource. @@ -42,7 +42,7 @@ class GenerateAttachedClusterInstallManifestRequest extends \Google\Protobuf\Int * * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $attached_cluster_id = ''; + private $attached_cluster_id = ''; /** * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). * You can list all supported versions on a given Google Cloud region by @@ -51,7 +51,7 @@ class GenerateAttachedClusterInstallManifestRequest extends \Google\Protobuf\Int * * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; */ - protected $platform_version = ''; + private $platform_version = ''; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php b/GkeMultiCloud/src/V1/GenerateAttachedClusterInstallManifestResponse.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php rename to GkeMultiCloud/src/V1/GenerateAttachedClusterInstallManifestResponse.php index 558f3fe1e5d2..45932b34d98f 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php +++ b/GkeMultiCloud/src/V1/GenerateAttachedClusterInstallManifestResponse.php @@ -22,7 +22,7 @@ class GenerateAttachedClusterInstallManifestResponse extends \Google\Protobuf\In * * Generated from protobuf field string manifest = 1; */ - protected $manifest = ''; + private $manifest = ''; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/GenerateAwsAccessTokenRequest.php b/GkeMultiCloud/src/V1/GenerateAwsAccessTokenRequest.php index d9deb3124d55..0f02d7f840bd 100644 --- a/GkeMultiCloud/src/V1/GenerateAwsAccessTokenRequest.php +++ b/GkeMultiCloud/src/V1/GenerateAwsAccessTokenRequest.php @@ -16,7 +16,9 @@ class GenerateAwsAccessTokenRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to. + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,7 +35,9 @@ class GenerateAwsAccessTokenRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $aws_cluster - * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to. + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -46,7 +50,9 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to. + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -61,7 +67,9 @@ public function getAwsCluster() } /** - * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to. + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/GkeMultiCloud/src/V1/GenerateAzureAccessTokenRequest.php b/GkeMultiCloud/src/V1/GenerateAzureAccessTokenRequest.php index 3eee106957a6..48792bbbb197 100644 --- a/GkeMultiCloud/src/V1/GenerateAzureAccessTokenRequest.php +++ b/GkeMultiCloud/src/V1/GenerateAzureAccessTokenRequest.php @@ -16,7 +16,9 @@ class GenerateAzureAccessTokenRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to. + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. * `AzureCluster` names are formatted as * `projects//locations//AzureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,7 +35,9 @@ class GenerateAzureAccessTokenRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $azure_cluster - * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to. + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. * `AzureCluster` names are formatted as * `projects//locations//AzureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -46,7 +50,9 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to. + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. * `AzureCluster` names are formatted as * `projects//locations//AzureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -61,7 +67,9 @@ public function getAzureCluster() } /** - * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to. + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. * `AzureCluster` names are formatted as * `projects//locations//AzureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php b/GkeMultiCloud/src/V1/GetAttachedClusterRequest.php similarity index 99% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php rename to GkeMultiCloud/src/V1/GetAttachedClusterRequest.php index 3ec2e3c44c68..350f1e853c5b 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php +++ b/GkeMultiCloud/src/V1/GetAttachedClusterRequest.php @@ -26,7 +26,7 @@ class GetAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $name = ''; + private $name = ''; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php b/GkeMultiCloud/src/V1/GetAttachedServerConfigRequest.php similarity index 99% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php rename to GkeMultiCloud/src/V1/GetAttachedServerConfigRequest.php index d8eb050d9aad..8f0b463f18ce 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php +++ b/GkeMultiCloud/src/V1/GetAttachedServerConfigRequest.php @@ -27,7 +27,7 @@ class GetAttachedServerConfigRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $name = ''; + private $name = ''; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/GetAwsClusterRequest.php b/GkeMultiCloud/src/V1/GetAwsClusterRequest.php index f01b323235fb..c3185122fb5b 100644 --- a/GkeMultiCloud/src/V1/GetAwsClusterRequest.php +++ b/GkeMultiCloud/src/V1/GetAwsClusterRequest.php @@ -16,7 +16,9 @@ class GetAwsClusterRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe. + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,7 +35,9 @@ class GetAwsClusterRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe. + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -46,7 +50,9 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe. + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -61,7 +67,9 @@ public function getName() } /** - * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe. + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/GkeMultiCloud/src/V1/GetAwsNodePoolRequest.php b/GkeMultiCloud/src/V1/GetAwsNodePoolRequest.php index ddc3c0072468..0f57213bb1ce 100644 --- a/GkeMultiCloud/src/V1/GetAwsNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/GetAwsNodePoolRequest.php @@ -16,7 +16,9 @@ class GetAwsNodePoolRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe. + * Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,7 +35,9 @@ class GetAwsNodePoolRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe. + * Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -46,7 +50,9 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe. + * Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -61,7 +67,9 @@ public function getName() } /** - * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe. + * Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. * `AwsNodePool` names are formatted as * `projects//locations//awsClusters//awsNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/GkeMultiCloud/src/V1/GetAwsServerConfigRequest.php b/GkeMultiCloud/src/V1/GetAwsServerConfigRequest.php index b5be757d5023..14bd0a54aef5 100644 --- a/GkeMultiCloud/src/V1/GetAwsServerConfigRequest.php +++ b/GkeMultiCloud/src/V1/GetAwsServerConfigRequest.php @@ -16,7 +16,9 @@ class GetAwsServerConfigRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe. + * Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. * `AwsServerConfig` names are formatted as * `projects//locations//awsServerConfig`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,7 +35,9 @@ class GetAwsServerConfigRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe. + * Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. * `AwsServerConfig` names are formatted as * `projects//locations//awsServerConfig`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -46,7 +50,9 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe. + * Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. * `AwsServerConfig` names are formatted as * `projects//locations//awsServerConfig`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -61,7 +67,9 @@ public function getName() } /** - * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe. + * Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. * `AwsServerConfig` names are formatted as * `projects//locations//awsServerConfig`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/GkeMultiCloud/src/V1/GetAzureClientRequest.php b/GkeMultiCloud/src/V1/GetAzureClientRequest.php index c144c586e985..6bd856707aa7 100644 --- a/GkeMultiCloud/src/V1/GetAzureClientRequest.php +++ b/GkeMultiCloud/src/V1/GetAzureClientRequest.php @@ -16,8 +16,11 @@ class GetAzureClientRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -33,8 +36,11 @@ class GetAzureClientRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -46,8 +52,11 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. @@ -61,8 +70,11 @@ public function getName() } /** - * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + * Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as * `projects//locations//azureClients/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. diff --git a/GkeMultiCloud/src/V1/GetAzureClusterRequest.php b/GkeMultiCloud/src/V1/GetAzureClusterRequest.php index e28b1b004a2d..0fab9ef53cd2 100644 --- a/GkeMultiCloud/src/V1/GetAzureClusterRequest.php +++ b/GkeMultiCloud/src/V1/GetAzureClusterRequest.php @@ -16,7 +16,9 @@ class GetAzureClusterRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe. + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,7 +35,9 @@ class GetAzureClusterRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe. + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -46,7 +50,9 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe. + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -61,7 +67,9 @@ public function getName() } /** - * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe. + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/GkeMultiCloud/src/V1/GetAzureNodePoolRequest.php b/GkeMultiCloud/src/V1/GetAzureNodePoolRequest.php index ed405cdb52ed..280bcba5691f 100644 --- a/GkeMultiCloud/src/V1/GetAzureNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/GetAzureNodePoolRequest.php @@ -16,7 +16,9 @@ class GetAzureNodePoolRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe. + * Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,7 +35,9 @@ class GetAzureNodePoolRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe. + * Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -46,7 +50,9 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe. + * Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -61,7 +67,9 @@ public function getName() } /** - * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe. + * Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. * `AzureNodePool` names are formatted as * `projects//locations//azureClusters//azureNodePools/`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/GkeMultiCloud/src/V1/GetAzureServerConfigRequest.php b/GkeMultiCloud/src/V1/GetAzureServerConfigRequest.php index a30184ee8aa0..d3067f5c4acb 100644 --- a/GkeMultiCloud/src/V1/GetAzureServerConfigRequest.php +++ b/GkeMultiCloud/src/V1/GetAzureServerConfigRequest.php @@ -16,7 +16,9 @@ class GetAzureServerConfigRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe. + * Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. * `AzureServerConfig` names are formatted as * `projects//locations//azureServerConfig`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -33,7 +35,9 @@ class GetAzureServerConfigRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe. + * Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. * `AzureServerConfig` names are formatted as * `projects//locations//azureServerConfig`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -46,7 +50,9 @@ public function __construct($data = NULL) { } /** - * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe. + * Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. * `AzureServerConfig` names are formatted as * `projects//locations//azureServerConfig`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -61,7 +67,9 @@ public function getName() } /** - * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe. + * Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. * `AzureServerConfig` names are formatted as * `projects//locations//azureServerConfig`. * See [Resource Names](https://cloud.google.com/apis/design/resource_names) diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php b/GkeMultiCloud/src/V1/ImportAttachedClusterRequest.php similarity index 97% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php rename to GkeMultiCloud/src/V1/ImportAttachedClusterRequest.php index 8c30d8f35007..bc11c4ca0d0f 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php +++ b/GkeMultiCloud/src/V1/ImportAttachedClusterRequest.php @@ -25,19 +25,19 @@ class ImportAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * If set, only validate the request, but do not actually import the cluster. * * Generated from protobuf field bool validate_only = 2; */ - protected $validate_only = false; + private $validate_only = false; /** * Required. The name of the fleet membership resource to import. * * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; */ - protected $fleet_membership = ''; + private $fleet_membership = ''; /** * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). * You can list all supported versions on a given Google Cloud region by @@ -46,14 +46,14 @@ class ImportAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; */ - protected $platform_version = ''; + private $platform_version = ''; /** * Required. The Kubernetes distribution of the underlying attached cluster. * Supported values: ["eks", "aks"]. * * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; */ - protected $distribution = ''; + private $distribution = ''; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php b/GkeMultiCloud/src/V1/ListAttachedClustersRequest.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php rename to GkeMultiCloud/src/V1/ListAttachedClustersRequest.php index 32fbfe164090..d87611a2f106 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php +++ b/GkeMultiCloud/src/V1/ListAttachedClustersRequest.php @@ -24,7 +24,7 @@ class ListAttachedClustersRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * The maximum number of items to return. * If not specified, a default value of 50 will be used by the service. @@ -35,7 +35,7 @@ class ListAttachedClustersRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field int32 page_size = 2; */ - protected $page_size = 0; + private $page_size = 0; /** * The `nextPageToken` value returned from a previous * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] @@ -43,7 +43,7 @@ class ListAttachedClustersRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string page_token = 3; */ - protected $page_token = ''; + private $page_token = ''; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php b/GkeMultiCloud/src/V1/ListAttachedClustersResponse.php similarity index 99% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php rename to GkeMultiCloud/src/V1/ListAttachedClustersResponse.php index 08b8a9bece9f..08827a9d03e2 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php +++ b/GkeMultiCloud/src/V1/ListAttachedClustersResponse.php @@ -28,7 +28,7 @@ class ListAttachedClustersResponse extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string next_page_token = 2; */ - protected $next_page_token = ''; + private $next_page_token = ''; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/ListAwsClustersRequest.php b/GkeMultiCloud/src/V1/ListAwsClustersRequest.php index 51d9a414aa28..7e6d5eef69d9 100644 --- a/GkeMultiCloud/src/V1/ListAwsClustersRequest.php +++ b/GkeMultiCloud/src/V1/ListAwsClustersRequest.php @@ -30,15 +30,16 @@ class ListAwsClustersRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; */ private $page_size = 0; /** * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any. + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. * * Generated from protobuf field string page_token = 3; */ @@ -61,11 +62,12 @@ class ListAwsClustersRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. * @type string $page_token * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any. + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. * } */ public function __construct($data = NULL) { @@ -112,8 +114,8 @@ public function setParent($var) * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @return int @@ -128,8 +130,8 @@ public function getPageSize() * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @param int $var @@ -145,7 +147,8 @@ public function setPageSize($var) /** * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any. + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. * * Generated from protobuf field string page_token = 3; * @return string @@ -157,7 +160,8 @@ public function getPageToken() /** * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any. + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. * * Generated from protobuf field string page_token = 3; * @param string $var diff --git a/GkeMultiCloud/src/V1/ListAwsClustersResponse.php b/GkeMultiCloud/src/V1/ListAwsClustersResponse.php index f0beaa434365..8c9880f1cdcc 100644 --- a/GkeMultiCloud/src/V1/ListAwsClustersResponse.php +++ b/GkeMultiCloud/src/V1/ListAwsClustersResponse.php @@ -16,8 +16,8 @@ class ListAwsClustersResponse extends \Google\Protobuf\Internal\Message { /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP - * project and region region. + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; */ @@ -37,8 +37,8 @@ class ListAwsClustersResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $aws_clusters - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP - * project and region region. + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. * @type string $next_page_token * Token to retrieve the next page of results, or empty if there are no more * results in the list. @@ -50,8 +50,8 @@ public function __construct($data = NULL) { } /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP - * project and region region. + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; * @return \Google\Protobuf\Internal\RepeatedField @@ -62,8 +62,8 @@ public function getAwsClusters() } /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP - * project and region region. + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $var diff --git a/GkeMultiCloud/src/V1/ListAwsNodePoolsRequest.php b/GkeMultiCloud/src/V1/ListAwsNodePoolsRequest.php index 345e7ec75192..4a124caab83b 100644 --- a/GkeMultiCloud/src/V1/ListAwsNodePoolsRequest.php +++ b/GkeMultiCloud/src/V1/ListAwsNodePoolsRequest.php @@ -31,15 +31,16 @@ class ListAwsNodePoolsRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; */ private $page_size = 0; /** * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any. + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. * * Generated from protobuf field string page_token = 3; */ @@ -63,11 +64,12 @@ class ListAwsNodePoolsRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. * @type string $page_token * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any. + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. * } */ public function __construct($data = NULL) { @@ -116,8 +118,8 @@ public function setParent($var) * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @return int @@ -132,8 +134,8 @@ public function getPageSize() * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @param int $var @@ -149,7 +151,8 @@ public function setPageSize($var) /** * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any. + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. * * Generated from protobuf field string page_token = 3; * @return string @@ -161,7 +164,8 @@ public function getPageToken() /** * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any. + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. * * Generated from protobuf field string page_token = 3; * @param string $var diff --git a/GkeMultiCloud/src/V1/ListAwsNodePoolsResponse.php b/GkeMultiCloud/src/V1/ListAwsNodePoolsResponse.php index ea5168ce9960..446a5a397710 100644 --- a/GkeMultiCloud/src/V1/ListAwsNodePoolsResponse.php +++ b/GkeMultiCloud/src/V1/ListAwsNodePoolsResponse.php @@ -16,7 +16,8 @@ class ListAwsNodePoolsResponse extends \Google\Protobuf\Internal\Message { /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`. + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; */ @@ -36,7 +37,8 @@ class ListAwsNodePoolsResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $aws_node_pools - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`. + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. * @type string $next_page_token * Token to retrieve the next page of results, or empty if there are no more * results in the list. @@ -48,7 +50,8 @@ public function __construct($data = NULL) { } /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`. + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; * @return \Google\Protobuf\Internal\RepeatedField @@ -59,7 +62,8 @@ public function getAwsNodePools() } /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`. + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $var diff --git a/GkeMultiCloud/src/V1/ListAzureClientsRequest.php b/GkeMultiCloud/src/V1/ListAzureClientsRequest.php index d088f7730d86..c6410d639c93 100644 --- a/GkeMultiCloud/src/V1/ListAzureClientsRequest.php +++ b/GkeMultiCloud/src/V1/ListAzureClientsRequest.php @@ -30,15 +30,16 @@ class ListAzureClientsRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; */ private $page_size = 0; /** * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any. + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. * * Generated from protobuf field string page_token = 3; */ @@ -61,11 +62,12 @@ class ListAzureClientsRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. * @type string $page_token * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any. + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. * } */ public function __construct($data = NULL) { @@ -112,8 +114,8 @@ public function setParent($var) * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @return int @@ -128,8 +130,8 @@ public function getPageSize() * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @param int $var @@ -145,7 +147,8 @@ public function setPageSize($var) /** * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any. + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. * * Generated from protobuf field string page_token = 3; * @return string @@ -157,7 +160,8 @@ public function getPageToken() /** * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any. + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. * * Generated from protobuf field string page_token = 3; * @param string $var diff --git a/GkeMultiCloud/src/V1/ListAzureClientsResponse.php b/GkeMultiCloud/src/V1/ListAzureClientsResponse.php index 520436bedbaa..a88567069e3c 100644 --- a/GkeMultiCloud/src/V1/ListAzureClientsResponse.php +++ b/GkeMultiCloud/src/V1/ListAzureClientsResponse.php @@ -16,8 +16,8 @@ class ListAzureClientsResponse extends \Google\Protobuf\Internal\Message { /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud - * project and region region. + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; */ @@ -37,8 +37,8 @@ class ListAzureClientsResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $azure_clients - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud - * project and region region. + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. * @type string $next_page_token * Token to retrieve the next page of results, or empty if there are no more * results in the list. @@ -50,8 +50,8 @@ public function __construct($data = NULL) { } /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud - * project and region region. + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; * @return \Google\Protobuf\Internal\RepeatedField @@ -62,8 +62,8 @@ public function getAzureClients() } /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud - * project and region region. + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $var diff --git a/GkeMultiCloud/src/V1/ListAzureClustersRequest.php b/GkeMultiCloud/src/V1/ListAzureClustersRequest.php index 56eb7471faf3..0b0854e8fbfe 100644 --- a/GkeMultiCloud/src/V1/ListAzureClustersRequest.php +++ b/GkeMultiCloud/src/V1/ListAzureClustersRequest.php @@ -30,15 +30,16 @@ class ListAzureClustersRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; */ private $page_size = 0; /** * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any. + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. * * Generated from protobuf field string page_token = 3; */ @@ -61,11 +62,12 @@ class ListAzureClustersRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. * @type string $page_token * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any. + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. * } */ public function __construct($data = NULL) { @@ -112,8 +114,8 @@ public function setParent($var) * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @return int @@ -128,8 +130,8 @@ public function getPageSize() * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @param int $var @@ -145,7 +147,8 @@ public function setPageSize($var) /** * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any. + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. * * Generated from protobuf field string page_token = 3; * @return string @@ -157,7 +160,8 @@ public function getPageToken() /** * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any. + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. * * Generated from protobuf field string page_token = 3; * @param string $var diff --git a/GkeMultiCloud/src/V1/ListAzureClustersResponse.php b/GkeMultiCloud/src/V1/ListAzureClustersResponse.php index 94b30f2eca69..dd186fcff58c 100644 --- a/GkeMultiCloud/src/V1/ListAzureClustersResponse.php +++ b/GkeMultiCloud/src/V1/ListAzureClustersResponse.php @@ -16,8 +16,8 @@ class ListAzureClustersResponse extends \Google\Protobuf\Internal\Message { /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP - * project and region region. + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; */ @@ -37,8 +37,8 @@ class ListAzureClustersResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $azure_clusters - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP - * project and region region. + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. * @type string $next_page_token * Token to retrieve the next page of results, or empty if there are no more * results in the list. @@ -50,8 +50,8 @@ public function __construct($data = NULL) { } /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP - * project and region region. + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; * @return \Google\Protobuf\Internal\RepeatedField @@ -62,8 +62,8 @@ public function getAzureClusters() } /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP - * project and region region. + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $var diff --git a/GkeMultiCloud/src/V1/ListAzureNodePoolsRequest.php b/GkeMultiCloud/src/V1/ListAzureNodePoolsRequest.php index 13c30ff063c1..7db6022e2813 100644 --- a/GkeMultiCloud/src/V1/ListAzureNodePoolsRequest.php +++ b/GkeMultiCloud/src/V1/ListAzureNodePoolsRequest.php @@ -31,15 +31,16 @@ class ListAzureNodePoolsRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; */ private $page_size = 0; /** * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any. + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. * * Generated from protobuf field string page_token = 3; */ @@ -63,11 +64,12 @@ class ListAzureNodePoolsRequest extends \Google\Protobuf\Internal\Message * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. * @type string $page_token * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any. + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. * } */ public function __construct($data = NULL) { @@ -116,8 +118,8 @@ public function setParent($var) * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @return int @@ -132,8 +134,8 @@ public function getPageSize() * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. * * Generated from protobuf field int32 page_size = 2; * @param int $var @@ -149,7 +151,8 @@ public function setPageSize($var) /** * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any. + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. * * Generated from protobuf field string page_token = 3; * @return string @@ -161,7 +164,8 @@ public function getPageToken() /** * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any. + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. * * Generated from protobuf field string page_token = 3; * @param string $var diff --git a/GkeMultiCloud/src/V1/ListAzureNodePoolsResponse.php b/GkeMultiCloud/src/V1/ListAzureNodePoolsResponse.php index 6fff7af46fa2..45566908cfa6 100644 --- a/GkeMultiCloud/src/V1/ListAzureNodePoolsResponse.php +++ b/GkeMultiCloud/src/V1/ListAzureNodePoolsResponse.php @@ -16,7 +16,8 @@ class ListAzureNodePoolsResponse extends \Google\Protobuf\Internal\Message { /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`. + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; */ @@ -36,7 +37,8 @@ class ListAzureNodePoolsResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $azure_node_pools - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`. + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. * @type string $next_page_token * Token to retrieve the next page of results, or empty if there are no more * results in the list. @@ -48,7 +50,8 @@ public function __construct($data = NULL) { } /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`. + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; * @return \Google\Protobuf\Internal\RepeatedField @@ -59,7 +62,8 @@ public function getAzureNodePools() } /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`. + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. * * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $var diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php b/GkeMultiCloud/src/V1/ManagedPrometheusConfig.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php rename to GkeMultiCloud/src/V1/ManagedPrometheusConfig.php index c3f7e469972b..5df2f24b1965 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php +++ b/GkeMultiCloud/src/V1/ManagedPrometheusConfig.php @@ -21,7 +21,7 @@ class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message * * Generated from protobuf field bool enabled = 1; */ - protected $enabled = false; + private $enabled = false; /** * Constructor. diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php b/GkeMultiCloud/src/V1/MonitoringConfig.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php rename to GkeMultiCloud/src/V1/MonitoringConfig.php index a6b9a2e0a799..491f19a758f0 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php +++ b/GkeMultiCloud/src/V1/MonitoringConfig.php @@ -20,7 +20,7 @@ class MonitoringConfig extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; */ - protected $managed_prometheus_config = null; + private $managed_prometheus_config = null; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/OperationMetadata.php b/GkeMultiCloud/src/V1/OperationMetadata.php index d73be6a4e655..a5588e59ab19 100644 --- a/GkeMultiCloud/src/V1/OperationMetadata.php +++ b/GkeMultiCloud/src/V1/OperationMetadata.php @@ -40,11 +40,29 @@ class OperationMetadata extends \Google\Protobuf\Internal\Message */ private $status_detail = ''; /** - * Output only. Human-readable status of any error that occurred during the operation. + * Output only. Human-readable status of any error that occurred during the + * operation. * * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $error_detail = ''; + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $verb = ''; + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $requested_cancellation = false; /** * Constructor. @@ -61,7 +79,17 @@ class OperationMetadata extends \Google\Protobuf\Internal\Message * @type string $status_detail * Output only. Human-readable status of the operation, if any. * @type string $error_detail - * Output only. Human-readable status of any error that occurred during the operation. + * Output only. Human-readable status of any error that occurred during the + * operation. + * @type string $verb + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * @type bool $requested_cancellation + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. * } */ public function __construct($data = NULL) { @@ -194,7 +222,8 @@ public function setStatusDetail($var) } /** - * Output only. Human-readable status of any error that occurred during the operation. + * Output only. Human-readable status of any error that occurred during the + * operation. * * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string @@ -205,7 +234,8 @@ public function getErrorDetail() } /** - * Output only. Human-readable status of any error that occurred during the operation. + * Output only. Human-readable status of any error that occurred during the + * operation. * * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var @@ -219,5 +249,67 @@ public function setErrorDetail($var) return $this; } + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + } diff --git a/GkeMultiCloud/src/V1/ReplicaPlacement.php b/GkeMultiCloud/src/V1/ReplicaPlacement.php index d4a7487c292f..f817881ea2bd 100644 --- a/GkeMultiCloud/src/V1/ReplicaPlacement.php +++ b/GkeMultiCloud/src/V1/ReplicaPlacement.php @@ -16,16 +16,16 @@ class ReplicaPlacement extends \Google\Protobuf\Internal\Message { /** - * Required. For a given replica, the ARM ID of the subnet where the control plane VM is - * deployed. Make sure it's a subnet under the virtual network in the cluster - * configuration. + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. * * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $subnet_id = ''; /** - * Required. For a given replica, the Azure availability zone where to provision the - * control plane VM and the ETCD disk. + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. * * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -38,12 +38,12 @@ class ReplicaPlacement extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $subnet_id - * Required. For a given replica, the ARM ID of the subnet where the control plane VM is - * deployed. Make sure it's a subnet under the virtual network in the cluster - * configuration. + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. * @type string $azure_availability_zone - * Required. For a given replica, the Azure availability zone where to provision the - * control plane VM and the ETCD disk. + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. * } */ public function __construct($data = NULL) { @@ -52,9 +52,9 @@ public function __construct($data = NULL) { } /** - * Required. For a given replica, the ARM ID of the subnet where the control plane VM is - * deployed. Make sure it's a subnet under the virtual network in the cluster - * configuration. + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. * * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -65,9 +65,9 @@ public function getSubnetId() } /** - * Required. For a given replica, the ARM ID of the subnet where the control plane VM is - * deployed. Make sure it's a subnet under the virtual network in the cluster - * configuration. + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. * * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var @@ -82,8 +82,8 @@ public function setSubnetId($var) } /** - * Required. For a given replica, the Azure availability zone where to provision the - * control plane VM and the ETCD disk. + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. * * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -94,8 +94,8 @@ public function getAzureAvailabilityZone() } /** - * Required. For a given replica, the Azure availability zone where to provision the - * control plane VM and the ETCD disk. + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. * * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php b/GkeMultiCloud/src/V1/UpdateAttachedClusterRequest.php similarity index 98% rename from owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php rename to GkeMultiCloud/src/V1/UpdateAttachedClusterRequest.php index dc288355a2c5..1fe3553467e9 100644 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php +++ b/GkeMultiCloud/src/V1/UpdateAttachedClusterRequest.php @@ -22,13 +22,13 @@ class UpdateAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $attached_cluster = null; + private $attached_cluster = null; /** * If set, only validate the request, but do not actually update the cluster. * * Generated from protobuf field bool validate_only = 2; */ - protected $validate_only = false; + private $validate_only = false; /** * Required. Mask of fields to update. At least one path must be supplied in * this field. The elements of the repeated paths field can only include these @@ -43,7 +43,7 @@ class UpdateAttachedClusterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ - protected $update_mask = null; + private $update_mask = null; /** * Constructor. diff --git a/GkeMultiCloud/src/V1/UpdateAwsClusterRequest.php b/GkeMultiCloud/src/V1/UpdateAwsClusterRequest.php index d18e2613027b..fe65ffffd6fd 100644 --- a/GkeMultiCloud/src/V1/UpdateAwsClusterRequest.php +++ b/GkeMultiCloud/src/V1/UpdateAwsClusterRequest.php @@ -16,7 +16,8 @@ class UpdateAwsClusterRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update. + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ @@ -43,14 +44,17 @@ class UpdateAwsClusterRequest extends \Google\Protobuf\Internal\Message * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ @@ -63,7 +67,8 @@ class UpdateAwsClusterRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update. + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. * @type bool $validate_only * If set, only validate the request, but do not actually update the cluster. * @type \Google\Protobuf\FieldMask $update_mask @@ -82,14 +87,17 @@ class UpdateAwsClusterRequest extends \Google\Protobuf\Internal\Message * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. * } */ public function __construct($data = NULL) { @@ -98,7 +106,8 @@ public function __construct($data = NULL) { } /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update. + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null @@ -119,7 +128,8 @@ public function clearAwsCluster() } /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update. + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var @@ -175,14 +185,17 @@ public function setValidateOnly($var) * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\FieldMask|null @@ -218,14 +231,17 @@ public function clearUpdateMask() * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Protobuf\FieldMask $var diff --git a/GkeMultiCloud/src/V1/UpdateAwsNodePoolRequest.php b/GkeMultiCloud/src/V1/UpdateAwsNodePoolRequest.php index 611c4a21bbfb..a514f1ceda50 100644 --- a/GkeMultiCloud/src/V1/UpdateAwsNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/UpdateAwsNodePoolRequest.php @@ -16,7 +16,8 @@ class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update. + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ @@ -46,6 +47,13 @@ class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @@ -58,7 +66,8 @@ class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update. + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. * @type bool $validate_only * If set, only validate the request, but don't actually update the node pool. * @type \Google\Protobuf\FieldMask $update_mask @@ -80,6 +89,13 @@ class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. * } */ public function __construct($data = NULL) { @@ -88,7 +104,8 @@ public function __construct($data = NULL) { } /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update. + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null @@ -109,7 +126,8 @@ public function clearAwsNodePool() } /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update. + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var @@ -168,6 +186,13 @@ public function setValidateOnly($var) * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\FieldMask|null @@ -206,6 +231,13 @@ public function clearUpdateMask() * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Protobuf\FieldMask $var diff --git a/GkeMultiCloud/src/V1/UpdateAzureClusterRequest.php b/GkeMultiCloud/src/V1/UpdateAzureClusterRequest.php index c039c0f1564f..4ce2b225230e 100644 --- a/GkeMultiCloud/src/V1/UpdateAzureClusterRequest.php +++ b/GkeMultiCloud/src/V1/UpdateAzureClusterRequest.php @@ -16,7 +16,8 @@ class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update. + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ @@ -32,13 +33,18 @@ class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ @@ -51,7 +57,8 @@ class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update. + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. * @type bool $validate_only * If set, only validate the request, but do not actually update the cluster. * @type \Google\Protobuf\FieldMask $update_mask @@ -59,13 +66,18 @@ class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. * } */ public function __construct($data = NULL) { @@ -74,7 +86,8 @@ public function __construct($data = NULL) { } /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update. + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null @@ -95,7 +108,8 @@ public function clearAzureCluster() } /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update. + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var @@ -140,13 +154,18 @@ public function setValidateOnly($var) * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\FieldMask|null @@ -171,13 +190,18 @@ public function clearUpdateMask() * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Protobuf\FieldMask $var diff --git a/GkeMultiCloud/src/V1/UpdateAzureNodePoolRequest.php b/GkeMultiCloud/src/V1/UpdateAzureNodePoolRequest.php index e882d7a7dd0d..3221a2fc59fc 100644 --- a/GkeMultiCloud/src/V1/UpdateAzureNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/UpdateAzureNodePoolRequest.php @@ -16,7 +16,8 @@ class UpdateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update. + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ @@ -35,7 +36,7 @@ class UpdateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @@ -48,7 +49,8 @@ class UpdateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update. + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. * @type bool $validate_only * If set, only validate the request, but don't actually update the node pool. * @type \Google\Protobuf\FieldMask $update_mask @@ -59,7 +61,7 @@ class UpdateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. * } */ public function __construct($data = NULL) { @@ -68,7 +70,8 @@ public function __construct($data = NULL) { } /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update. + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null @@ -89,7 +92,8 @@ public function clearAzureNodePool() } /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update. + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. * * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var @@ -137,7 +141,7 @@ public function setValidateOnly($var) * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\FieldMask|null @@ -165,7 +169,7 @@ public function clearUpdateMask() * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Protobuf\FieldMask $var diff --git a/GkeMultiCloud/src/V1/gapic_metadata.json b/GkeMultiCloud/src/V1/gapic_metadata.json index 0ec311c2d7d0..a69240b06fba 100644 --- a/GkeMultiCloud/src/V1/gapic_metadata.json +++ b/GkeMultiCloud/src/V1/gapic_metadata.json @@ -5,6 +5,55 @@ "protoPackage": "google.cloud.gkemulticloud.v1", "libraryPackage": "Google\\Cloud\\GkeMultiCloud\\V1", "services": { + "AttachedClusters": { + "clients": { + "grpc": { + "libraryClient": "AttachedClustersGapicClient", + "rpcs": { + "CreateAttachedCluster": { + "methods": [ + "createAttachedCluster" + ] + }, + "DeleteAttachedCluster": { + "methods": [ + "deleteAttachedCluster" + ] + }, + "GenerateAttachedClusterInstallManifest": { + "methods": [ + "generateAttachedClusterInstallManifest" + ] + }, + "GetAttachedCluster": { + "methods": [ + "getAttachedCluster" + ] + }, + "GetAttachedServerConfig": { + "methods": [ + "getAttachedServerConfig" + ] + }, + "ImportAttachedCluster": { + "methods": [ + "importAttachedCluster" + ] + }, + "ListAttachedClusters": { + "methods": [ + "listAttachedClusters" + ] + }, + "UpdateAttachedCluster": { + "methods": [ + "updateAttachedCluster" + ] + } + } + } + } + }, "AwsClusters": { "clients": { "grpc": { diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json b/GkeMultiCloud/src/V1/resources/attached_clusters_client_config.json similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json rename to GkeMultiCloud/src/V1/resources/attached_clusters_client_config.json diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php b/GkeMultiCloud/src/V1/resources/attached_clusters_descriptor_config.php similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php rename to GkeMultiCloud/src/V1/resources/attached_clusters_descriptor_config.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php b/GkeMultiCloud/src/V1/resources/attached_clusters_rest_client_config.php similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php rename to GkeMultiCloud/src/V1/resources/attached_clusters_rest_client_config.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php b/GkeMultiCloud/tests/Unit/V1/AttachedClustersClientTest.php similarity index 100% rename from owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php rename to GkeMultiCloud/tests/Unit/V1/AttachedClustersClientTest.php diff --git a/GkeMultiCloud/tests/Unit/V1/AwsClustersClientTest.php b/GkeMultiCloud/tests/Unit/V1/AwsClustersClientTest.php index 3dd1bc88afa1..0896a1d01b38 100644 --- a/GkeMultiCloud/tests/Unit/V1/AwsClustersClientTest.php +++ b/GkeMultiCloud/tests/Unit/V1/AwsClustersClientTest.php @@ -39,6 +39,7 @@ use Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling; use Google\Cloud\GkeMultiCloud\V1\AwsServerConfig; use Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication; +use Google\Cloud\GkeMultiCloud\V1\Fleet; use Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse; use Google\Cloud\GkeMultiCloud\V1\ListAwsClustersResponse; use Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsResponse; @@ -161,6 +162,10 @@ public function createAwsClusterTest() $authorizationAdminUsers = []; $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); $awsClusterId = 'awsClusterId938438658'; $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); $this->assertFalse($response->isDone()); @@ -265,6 +270,10 @@ public function createAwsClusterExceptionTest() $authorizationAdminUsers = []; $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); $awsClusterId = 'awsClusterId938438658'; $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); $this->assertFalse($response->isDone()); @@ -1184,6 +1193,10 @@ public function updateAwsClusterTest() $authorizationAdminUsers = []; $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); $updateMask = new FieldMask(); $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); $this->assertFalse($response->isDone()); @@ -1285,6 +1298,10 @@ public function updateAwsClusterExceptionTest() $authorizationAdminUsers = []; $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); $updateMask = new FieldMask(); $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); $this->assertFalse($response->isDone()); diff --git a/GkeMultiCloud/tests/Unit/V1/AzureClustersClientTest.php b/GkeMultiCloud/tests/Unit/V1/AzureClustersClientTest.php index cb91b1e5c513..8141f41b1b98 100644 --- a/GkeMultiCloud/tests/Unit/V1/AzureClustersClientTest.php +++ b/GkeMultiCloud/tests/Unit/V1/AzureClustersClientTest.php @@ -38,6 +38,7 @@ use Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling; use Google\Cloud\GkeMultiCloud\V1\AzureServerConfig; use Google\Cloud\GkeMultiCloud\V1\AzureSshConfig; +use Google\Cloud\GkeMultiCloud\V1\Fleet; use Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse; use Google\Cloud\GkeMultiCloud\V1\ListAzureClientsResponse; use Google\Cloud\GkeMultiCloud\V1\ListAzureClustersResponse; @@ -300,6 +301,10 @@ public function createAzureClusterTest() $authorizationAdminUsers = []; $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); $azureClusterId = 'azureClusterId332577072'; $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); $this->assertFalse($response->isDone()); @@ -396,6 +401,10 @@ public function createAzureClusterExceptionTest() $authorizationAdminUsers = []; $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); $azureClusterId = 'azureClusterId332577072'; $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); $this->assertFalse($response->isDone()); @@ -1568,6 +1577,10 @@ public function updateAzureClusterTest() $authorizationAdminUsers = []; $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); $updateMask = new FieldMask(); $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); $this->assertFalse($response->isDone()); @@ -1661,6 +1674,10 @@ public function updateAzureClusterExceptionTest() $authorizationAdminUsers = []; $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); $updateMask = new FieldMask(); $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); $this->assertFalse($response->isDone()); diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php deleted file mode 100644 index 1f0d035c6472f51b924d20339dd0909b2a24eb93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7021 zcmdT}&2rnw5e`ZHSWQWmApg*EybIH+vRrGEE80n1^g1b;q-m}tk)bH1Hem$?fg=hl z5J2Haw$`N=$RW>>$~CpGkVBp#w^Vtrshrb20}vo38?-Bz=p+KuJw4rDfAh`Yo8Q>S zHr$gN%w&%0vA%qGCVR(BwjIl}G|P|={i7r1$eJ~@b%QwtS+2F@-Bwqw*P7kCXzE(N zqp`9)u&jZ>ike~h{o>$+4SmDY#jn$?qWZ>F945xP1@0ZdRENy9RgKAw_KO|nseRQ` zdkyZWS0zWiM%+>FVCxxxW~iy@58UJkm(9kv6^;Dc#-q2k|H+4@}4gCjP z*mLyDU4*^BwaUkDDBvkN)dj zlDCSj_g?DE=)Yjc>Zxuy<#M#D$jOIH!=z4cb$OwBRcko3%+Q@Xy}wa2DySW3Y*K~n`~)4TvAx|!U*~!E8j+P46GKXvqEejrw(#U6qwY7tZJGT zk)vh0xn((nGnd1eFUNNb0)E4-wOFz;FxfLGg zFB0bXU0~h}tgGBuEc_na&;-&IO;t4Jc>0m9Q5{!lQDV?jm_0HW^KufOZzEy8mo%0v z(^3M0$9*Ig z(sdqE5@L5ocCo0|ORzFoHz^C56LuCb#uCh)s)o-5SCrFFQ+Xd|Ipz`Wt9#u_x328( z?zQXH=F4Wiw(>KC`(nG(I%w`STf5EO#!3o3&Uf~A`H!@86|$XrwY6JqZqwTgQq+~b zZmZpiUOB(bz;TGHOPEJ1u<) zlFKyTp|%=0mT&U`v*Cc0bQiAa>JX()5Fcja2)92@bi6@`m9vgzdCI9}_((cLUD?vt z$uS=A@m)4VE*Bh_B40yQH$z`UdY|p<0M$a^lbD{2B&V%gqK5a*-hz}sXM$597XHO`;$gc4U~OQmFY!qa3ryC6mAGElA$G5&yTr_d11 z0GYV83sc@V>tDgbDAS3Y)PY;nGnb~2wq+C?Oi`V&ru_m|`D2&4)XxgnNs%PV{{gx2 zjXS0lqy}!1{UO5J$9lU+0R*5a>JTu@K3egL=6m;H8NJ7zQ<&s6l51k*7F@@H7okjI z?qujH$kh`o%m0*uRkRszPx9~LNkJY*W}5^gH|pT{fd{5!Z7 zWinEt(i+U2+8WYfoT)e9rfu~VwckfMj$E(z9pw-=gA*5bxDlyt!fmVs_4B18Goz9D z|I9-cXWzB@j1F=WdONmTkfaXiwgPja2XjB?jhCb*0{>APr==F+(Dy7?!^0~I$Xnb` zl8}nUiKq^ZIm)CPurS(Ra&u9vwNMw6R$HECQwUQL7si1Cj%l(91x(89as?~|*QYAr zYdj%|R-pnW3AI3-5LduAcymwD38NKHN-5C^9atNxZxw_c;tj=z=ivV6b+FB4)J%h;rn`jAqM(GkjEeW(rsl})GP z;QnGnjF%7u1V46uGCe+;&0$@5JMkn$Axeyaaj?Wfik_}(P_8Mi#JV)1v z$_xX~S9B5*7cbT1+Q+t?2Ax&#PM3UDN3J+T*B?PPhO;E`_o+(pMvM$&0ioyZci_6~+qUK4WxRq6g*SwB$tK8Pq5S>($^afFvE*2!zxo8Gj2q@RxXPS} z@9M+>IsX6_G2x@*taJ+&nO5Sm)mC*UCeHHTa7`R*6-mNlFT)ElFOs+@RhENi;Ypl} z_Iwf6a3YcZ=!o(Wnf$jDSB@9XAJT7O-eV@7=EW_@RC4%&mqJ&#;2U=S70d^}@hHF6 zt?yQLtKUsroZvM{t^TsIzuiT7y95h(@6oK{{Yq^mEnR_`SFOG7N+y2*8@S9Ea4+v9 zTKB+FP2W)IZXlLsy2A*XIMTeSd|q63#O|E%ss;zTF7mA~&)?%mBH9i}>~bY>VbF_z zrQj}J#(bO&UeEz$boq}Z_pEm6_umE=&I1dtc?Si{859T1M0|QyF}mvcz&E64W2paY z`c8v?C@S#p4~51F+o3N`;@82}Kf?FD;7byHN{UAG@LSURv@Bed%iOA59vf0FA8Z}Y j@!%fcAAL-CC_d1{zUSb*3*H7?@-2st6klA<;T+(VS0 diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php deleted file mode 100644 index 8f2027b59b8d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php +++ /dev/null @@ -1,117 +0,0 @@ -internalAddGeneratedFile( - ' -Ù* -/google/cloud/gkemulticloud/v1/aws_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto1google/cloud/gkemulticloud/v1/aws_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"Ó -CreateAwsClusterRequest? -parent ( B/àAúA)\'gkemulticloud.googleapis.com/AwsClusterC - aws_cluster ( 2).google.cloud.gkemulticloud.v1.AwsClusterBàA -aws_cluster_id ( BàA - validate_only ("« -UpdateAwsClusterRequestC - aws_cluster ( 2).google.cloud.gkemulticloud.v1.AwsClusterBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"U -GetAwsClusterRequest= -name ( B/àAúA) -\'gkemulticloud.googleapis.com/AwsCluster"€ -ListAwsClustersRequest? -parent ( B/àAúA)\'gkemulticloud.googleapis.com/AwsCluster - page_size ( - -page_token ( "s -ListAwsClustersResponse? - aws_clusters ( 2).google.cloud.gkemulticloud.v1.AwsCluster -next_page_token ( "” -DeleteAwsClusterRequest= -name ( B/àAúA) -\'gkemulticloud.googleapis.com/AwsCluster - validate_only ( - allow_missing ( -etag ( "Ú -CreateAwsNodePoolRequest@ -parent ( B0àAúA*(gkemulticloud.googleapis.com/AwsNodePoolF - aws_node_pool ( 2*.google.cloud.gkemulticloud.v1.AwsNodePoolBàA -aws_node_pool_id ( BàA - validate_only ("¯ -UpdateAwsNodePoolRequestF - aws_node_pool ( 2*.google.cloud.gkemulticloud.v1.AwsNodePoolBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"W -GetAwsNodePoolRequest> -name ( B0àAúA* -(gkemulticloud.googleapis.com/AwsNodePool"‚ -ListAwsNodePoolsRequest@ -parent ( B0àAúA*(gkemulticloud.googleapis.com/AwsNodePool - page_size ( - -page_token ( "w -ListAwsNodePoolsResponseB -aws_node_pools ( 2*.google.cloud.gkemulticloud.v1.AwsNodePool -next_page_token ( "– -DeleteAwsNodePoolRequest> -name ( B0àAúA* -(gkemulticloud.googleapis.com/AwsNodePool - validate_only ( - allow_missing ( -etag ( "_ -GetAwsServerConfigRequestB -name ( B4àAúA. -,gkemulticloud.googleapis.com/AwsServerConfig"e -GenerateAwsAccessTokenRequestD - aws_cluster ( B/àAúA) -\'gkemulticloud.googleapis.com/AwsCluster"u -GenerateAwsAccessTokenResponse - access_token ( BàA8 -expiration_time ( 2.google.protobuf.TimestampBàA2þ - AwsClustersö -CreateAwsCluster6.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest.google.longrunning.Operation"Š‚Óä“>"//v1/{parent=projects/*/locations/*}/awsClusters: aws_clusterÚA!parent,aws_cluster,aws_cluster_idÊA - -AwsClusterOperationMetadataø -UpdateAwsCluster6.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest.google.longrunning.Operation"Œ‚Óä“J2;/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}: aws_clusterÚAaws_cluster,update_maskÊA - -AwsClusterOperationMetadata¯ - GetAwsCluster3.google.cloud.gkemulticloud.v1.GetAwsClusterRequest).google.cloud.gkemulticloud.v1.AwsCluster">‚Óä“1//v1/{name=projects/*/locations/*/awsClusters/*}ÚAname -ListAwsClusters5.google.cloud.gkemulticloud.v1.ListAwsClustersRequest6.google.cloud.gkemulticloud.v1.ListAwsClustersResponse"@‚Óä“1//v1/{parent=projects/*/locations/*}/awsClustersÚAparentÖ -DeleteAwsCluster6.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest.google.longrunning.Operation"k‚Óä“1*//v1/{name=projects/*/locations/*/awsClusters/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataì -GenerateAwsAccessToken<.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest=.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse"U‚Óä“OM/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessTokenŽ -CreateAwsNodePool7.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest.google.longrunning.Operation" ‚Óä“O">/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools: aws_node_poolÚA%parent,aws_node_pool,aws_node_pool_idÊA - AwsNodePoolOperationMetadata -UpdateAwsNodePool7.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest.google.longrunning.Operation"¢‚Óä“]2L/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}: aws_node_poolÚAaws_node_pool,update_maskÊA - AwsNodePoolOperationMetadataÁ -GetAwsNodePool4.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest*.google.cloud.gkemulticloud.v1.AwsNodePool"M‚Óä“@>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}ÚAnameÔ -ListAwsNodePools6.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest7.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse"O‚Óä“@>/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePoolsÚAparentç -DeleteAwsNodePool7.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest.google.longrunning.Operation"z‚Óä“@*>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataÀ -GetAwsServerConfig8.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest..google.cloud.gkemulticloud.v1.AwsServerConfig"@‚Óä“31/v1/{name=projects/*/locations/*/awsServerConfig}ÚAnamePÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBå -!com.google.cloud.gkemulticloud.v1BAwsServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php deleted file mode 100644 index 5f0ffa7e86d117db00181d1384ed1f112601cadf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7067 zcmc&(UsD^&5sxH;VZ`6%Y}Q;H@9D@LzO$u+a}pvSNdyQ=K7$k?bE%Z7wpOc=*s$8! z+CRkD#ka^qp7WTORHZ7F?~qS%c??zg3aNC@>^}+FTAYXQ#A>E{dU}4{{p*=;erccC zN4Na zX<6wr);DQMH<{lp_0Q?RH$6jqU2K-LH@-tvhl<&5k?SYK(gxJEHJvJljol;aX0S(M`>Dl?tkCh8oFRqQIZ+cT7W9Tu+0=m36~a4a@Kh%{1P? z=5~~xX1Wwq+??Cox;t>?oma4fGHArd_i<>R6iD-lwka z7`Dfp223rN`_zlPioa|;4wglAMo-xgHkQjbjNDN?$EV5F6~&>R?^w^d-KgLy`ma64 za~0cY9~ji^?$R^u!eCCh9PcVt@-ETPsp+N0A60vg4F=2#)w${QMec1G01!_b*yCmS zu{`~S5gbCL+l_pF0C3%iyo5gcoc!}E^7RMcRC*|ciX6_xA#fKjHrE~mIyKuUg%B4A zUwiicby_iL{&6IXR%WG_WL{^M=P*;XP0gb66j%9GDwRU8fpS9I z5t-L~?~FOd8^{W<>1nQQGmW-NQc$R?k|_*bD&GY)3tOqw1jkf7K|xfLlkSljYISV} z*p+8M6F;Dwv_x_~_W z3`J7D4S6<@noB1I0E6`0m*>$i>6GL(%VL;indQn0N)A^3CR}-Zm<*kGu@Z|{;iNCo zwv5zn6B%J-GOY{n1DF}!r3#zx8GTvemQKRecY$~`8}E}(?RswgNds>41RR7r@a*r*5G zsL}+Zjv~2)U29upX%r7qp5)HyWsuP3$<&2r`c$N{a&|jY@W~X9CJ3bElUAiwRbL&S zG^%^GgIaZe=?4%i#molL7Zu8YK|Hw*y9)_rmD?my}2}n1N+s(W@R7LPM7`bibEa`mjIFIAp5&TNa&^HSxQw1!{1Te zb4zc7|E@|V1I%IIl-`E_UI~U2X%6 zL9T^hQeD3T7U1fbuSLZv{Arpj3(FIUS^9|Fy`YYZ**Ib8eKH&CNK`GHJy2cXaB;!P zNC$+t?pYWVBKtj^fIn`@iF+2KFDt!(1k0GGUNF;#G%Cths?gXs-18P4K#dYvJ%hRi znqh^yZc(>x>iP{?K|0*gT&hw_cP?#Sy|4h}w|<&tqx*q)HIha|pp|m~#@A716*XW| z>~h~VP%idf29uu7Q*6@41#V-yq{oFvEj%K3pxU@lW3jT7(`*)uLdL)gf3XF^iMrAt zl0$9i3^XJZIvqe|aiNx>@=4on3PI2-caA!!2M!``?W90Y-Gg5WY!={qsvG` z!H@_N2xpCVQ`&`Qm|6#D0o2Gh3}{jmGTFkfAf@80#CZYv8^iDfV_b&Fqd+Ej^l~+Y zB3b1cZh}Z!A=8kXG0bD-FJ0mq+28IH8q4G;tb z1ajhN-jmOf=nEPJWGAHV4|!aqYCA(n$K3rxQpEp@YX32FUHLl#s5Bb3AbjEInR!+C%M@9Rl7mM8WC0ZD z`!*m&$i?$p+iCGE>>H&-P=JjA^s1_NY18-yVw6^6mCA2@7_A;AnV1Z z<5rY$?J3D86ij58Eh0yN9jOo!5F#wQ9N#+gA)z6FImgQKK}dOtLBy~aEc_=Eu(cCt z9jOyU!tiC}3$g&cyU|sHhEH^z`E)ht+imw$^ocdA$Dr3;b$#1r4m?$;TJWZT7nv?l zNN8ot)^+8ajNH(UYtM)5{rRo3MpCr!8Cl_O9kFw9q`fUXB@29B)Ow;{p~&-FN!Uwt z)xm2*;WFgX;_fB75t2S555guN_`2^P^^Y!VqqLKgw#k=z@&;8+GTxh#5wpn^*28u^ zaqR=QC3oQ--i34_+V#SZ0|tk1MmX^bb7R`>zcS<#xDt7PTvZ!U;dncE zb;4(-ct#uEovyQrP*E;(sd9N}O1XTx*_r0Xef@d#?C?Z9internalAddGeneratedFile( - ' -Ê8 -1google/cloud/gkemulticloud/v1/azure_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto3google/cloud/gkemulticloud/v1/azure_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"Ý -CreateAzureClusterRequestA -parent ( B1àAúA+)gkemulticloud.googleapis.com/AzureClusterG - azure_cluster ( 2+.google.cloud.gkemulticloud.v1.AzureClusterBàA -azure_cluster_id ( BàA - validate_only ("± -UpdateAzureClusterRequestG - azure_cluster ( 2+.google.cloud.gkemulticloud.v1.AzureClusterBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"Y -GetAzureClusterRequest? -name ( B1àAúA+ -)gkemulticloud.googleapis.com/AzureCluster"„ -ListAzureClustersRequestA -parent ( B1àAúA+)gkemulticloud.googleapis.com/AzureCluster - page_size ( - -page_token ( "y -ListAzureClustersResponseC -azure_clusters ( 2+.google.cloud.gkemulticloud.v1.AzureCluster -next_page_token ( "˜ -DeleteAzureClusterRequest? -name ( B1àAúA+ -)gkemulticloud.googleapis.com/AzureCluster - allow_missing ( - validate_only ( -etag ( "ä -CreateAzureNodePoolRequestB -parent ( B2àAúA,*gkemulticloud.googleapis.com/AzureNodePoolJ -azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolBàA -azure_node_pool_id ( BàA - validate_only ("µ -UpdateAzureNodePoolRequestJ -azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"[ -GetAzureNodePoolRequest@ -name ( B2àAúA, -*gkemulticloud.googleapis.com/AzureNodePool"† -ListAzureNodePoolsRequestB -parent ( B2àAúA,*gkemulticloud.googleapis.com/AzureNodePool - page_size ( - -page_token ( "} -ListAzureNodePoolsResponseF -azure_node_pools ( 2,.google.cloud.gkemulticloud.v1.AzureNodePool -next_page_token ( "š -DeleteAzureNodePoolRequest@ -name ( B2àAúA, -*gkemulticloud.googleapis.com/AzureNodePool - validate_only ( - allow_missing ( -etag ( "c -GetAzureServerConfigRequestD -name ( B6àAúA0 -.gkemulticloud.googleapis.com/AzureServerConfig"Ø -CreateAzureClientRequest@ -parent ( B0àAúA*(gkemulticloud.googleapis.com/AzureClientE - azure_client ( 2*.google.cloud.gkemulticloud.v1.AzureClientBàA -azure_client_id ( BàA - validate_only ("W -GetAzureClientRequest> -name ( B0àAúA* -(gkemulticloud.googleapis.com/AzureClient"‚ -ListAzureClientsRequest@ -parent ( B0àAúA*(gkemulticloud.googleapis.com/AzureClient - page_size ( - -page_token ( "v -ListAzureClientsResponseA - azure_clients ( 2*.google.cloud.gkemulticloud.v1.AzureClient -next_page_token ( "ˆ -DeleteAzureClientRequest> -name ( B0àAúA* -(gkemulticloud.googleapis.com/AzureClient - allow_missing ( - validate_only ("k -GenerateAzureAccessTokenRequestH - azure_cluster ( B1àAúA+ -)gkemulticloud.googleapis.com/AzureCluster"w - GenerateAzureAccessTokenResponse - access_token ( BàA8 -expiration_time ( 2.google.protobuf.TimestampBàA2Ý - AzureClustersý -CreateAzureClient7.google.cloud.gkemulticloud.v1.CreateAzureClientRequest.google.longrunning.Operation"‚Óä“@"0/v1/{parent=projects/*/locations/*}/azureClients: azure_clientÚA#parent,azure_client,azure_client_idÊA - AzureClientOperationMetadata³ -GetAzureClient4.google.cloud.gkemulticloud.v1.GetAzureClientRequest*.google.cloud.gkemulticloud.v1.AzureClient"?‚Óä“20/v1/{name=projects/*/locations/*/azureClients/*}ÚAnameÆ -ListAzureClients6.google.cloud.gkemulticloud.v1.ListAzureClientsRequest7.google.cloud.gkemulticloud.v1.ListAzureClientsResponse"A‚Óä“20/v1/{parent=projects/*/locations/*}/azureClientsÚAparentÙ -DeleteAzureClient7.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest.google.longrunning.Operation"l‚Óä“2*0/v1/{name=projects/*/locations/*/azureClients/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadata„ -CreateAzureCluster8.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest.google.longrunning.Operation"”‚Óä“B"1/v1/{parent=projects/*/locations/*}/azureClusters: azure_clusterÚA%parent,azure_cluster,azure_cluster_idÊA! - AzureClusterOperationMetadata† -UpdateAzureCluster8.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest.google.longrunning.Operation"–‚Óä“P2?/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}: azure_clusterÚAazure_cluster,update_maskÊA! - AzureClusterOperationMetadata· -GetAzureCluster5.google.cloud.gkemulticloud.v1.GetAzureClusterRequest+.google.cloud.gkemulticloud.v1.AzureCluster"@‚Óä“31/v1/{name=projects/*/locations/*/azureClusters/*}ÚAnameÊ -ListAzureClusters7.google.cloud.gkemulticloud.v1.ListAzureClustersRequest8.google.cloud.gkemulticloud.v1.ListAzureClustersResponse"B‚Óä“31/v1/{parent=projects/*/locations/*}/azureClustersÚAparentÜ -DeleteAzureCluster8.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest.google.longrunning.Operation"m‚Óä“3*1/v1/{name=projects/*/locations/*/azureClusters/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataø -GenerateAzureAccessToken>.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest?.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse"[‚Óä“US/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessTokenž -CreateAzureNodePool9.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest.google.longrunning.Operation"¬‚Óä“U"B/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools:azure_node_poolÚA)parent,azure_node_pool,azure_node_pool_idÊA" - AzureNodePoolOperationMetadata  -UpdateAzureNodePool9.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest.google.longrunning.Operation"®‚Óä“e2R/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}:azure_node_poolÚAazure_node_pool,update_maskÊA" - AzureNodePoolOperationMetadataË -GetAzureNodePool6.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest,.google.cloud.gkemulticloud.v1.AzureNodePool"Q‚Óä“DB/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}ÚAnameÞ -ListAzureNodePools8.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest9.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse"S‚Óä“DB/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePoolsÚAparentï -DeleteAzureNodePool9.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest.google.longrunning.Operation"~‚Óä“D*B/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataÈ -GetAzureServerConfig:.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest0.google.cloud.gkemulticloud.v1.AzureServerConfig"B‚Óä“53/v1/{name=projects/*/locations/*/azureServerConfig}ÚAnamePÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBç -!com.google.cloud.gkemulticloud.v1BAzureServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php deleted file mode 100644 index c405f78106ee45076528d9adfc59a50461a802b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2183 zcmbVNUsKyg5U=g9q1d(maUL4A?TI#n=Oel#Hk9SvtfOS*M;P zH?+e{KTkhKAN!b3(C2)Lu5_{t4K$tj$-3SB?e1@Xcl*`z;52{-WSjX+(ug^ve@>!P zMgl1!VGED+#>^ciP)*RXKWCA z5m#Ts)f&bRgl|cv+(SK00N~RB3j=C1vfbHgv4}b}qP^`Dt5;93dfS(=dPl440JcZN zkknJm{ShSm1_XaW-1oRm!iZve@{orX_j$yr$A884HpmI}LWUS``<}$U9dY54B%tlv zY~?Xgn2GPhKp-6(WK>)yVF=mj?f4OsKJ|JH7TS^rk&qp9H4K+UIj_md%Hu3;0>@9t zimK5t-YRl~L^5WVvlAj&6ia_Stvdm@$p7`Op>8way(VX#v&By7kPB%Thh-< zXeub2M=ctatu$8s0Tx~edFBb~>^RJicywMD{t0(A4SDy3RLx=aF$^%QDhui4qim=E#6A{Q?@1ekVz@z$TTrFRp8c;$^PQh_~-#F zNcMA#>S2y$Q@l!^mv*{1iB8igWc76cX7-SlZc11gN@wg`4I!}?aXJ%2>cvb=K%F&U zlHq$~tGaKm)kfT0FAhD&*UdC6MX4Ucr25nrKr@?7v);81_YOK{eW$r&Hp(ApAHnQi z+d8O!V>S+V&2k}e?ChIObKkmrUes;_;DPzQSwHNWc0yxV1quB;VBQsjg_iD!rZQKUGBS?Hrr56-dy3MVl6w>Yo>=U-_di9lSM1Q>YoKz zxZb3_gbMR%-(#343koq=Y326X^Y==oY~(;@d3m2g%ZvvQ}^N7 zJGyA8_)Z?4arPP9y}^VEnNplN=~$+>-W1?I()Zt)w(cMqxCry5g()M^DZKnPyW_6# zsPF1Rx;2;i*iR&C%0vSm-mqQQuRMx>6z^@P`%_Q%r;huxmF!~mb+r1|$ll8qY_eg; x9z9&KZ;C`g7)Bap7*|{j<7l-%nHKltQU1(-u9nuN9e3k?OFh*Vx_}FSe*njUxCQ_K diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php deleted file mode 100644 index 57e11504c53e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsAuthorization - */ -class AwsAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $admin_users; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdminUsers() - { - return $this->admin_users; - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterUser>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdminUsers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterUser::class); - $this->admin_users = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php deleted file mode 100644 index b069eab6fc8b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php +++ /dev/null @@ -1,879 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsCluster - */ -class AwsCluster extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $networking = null; - /** - * Required. The AWS region where the cluster runs. - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * - * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_region = ''; - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $control_plane = null; - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorization = null; - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint = ''; - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - */ - protected $etag = ''; - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_identity_config = null; - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_ca_certificate = ''; - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $fleet = null; - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $logging_config = null; - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $monitoring_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type string $description - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking $networking - * Required. Cluster-wide networking configuration. - * @type string $aws_region - * Required. The AWS region where the cluster runs. - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane $control_plane - * Required. Configuration related to the cluster control plane. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization $authorization - * Required. Configuration related to the cluster RBAC settings. - * @type int $state - * Output only. The current state of the cluster. - * @type string $endpoint - * Output only. The endpoint of the cluster's API server. - * @type string $uid - * Output only. A globally unique identifier for the cluster. - * @type bool $reconciling - * Output only. If set, there are currently changes in flight to the cluster. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this cluster was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this cluster was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config - * Output only. Workload Identity settings. - * @type string $cluster_ca_certificate - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet - * Required. Fleet configuration. - * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config - * Optional. Logging configuration for this cluster. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config - * Optional. Monitoring configuration for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field 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; - } - - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking|null - */ - public function getNetworking() - { - return $this->networking; - } - - public function hasNetworking() - { - return isset($this->networking); - } - - public function clearNetworking() - { - unset($this->networking); - } - - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking $var - * @return $this - */ - public function setNetworking($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking::class); - $this->networking = $var; - - return $this; - } - - /** - * Required. The AWS region where the cluster runs. - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * - * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAwsRegion() - { - return $this->aws_region; - } - - /** - * Required. The AWS region where the cluster runs. - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * - * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAwsRegion($var) - { - GPBUtil::checkString($var, True); - $this->aws_region = $var; - - return $this; - } - - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane|null - */ - public function getControlPlane() - { - return $this->control_plane; - } - - public function hasControlPlane() - { - return isset($this->control_plane); - } - - public function clearControlPlane() - { - unset($this->control_plane); - } - - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane $var - * @return $this - */ - public function setControlPlane($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane::class); - $this->control_plane = $var; - - return $this; - } - - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization|null - */ - public function getAuthorization() - { - return $this->authorization; - } - - public function hasAuthorization() - { - return isset($this->authorization); - } - - public function clearAuthorization() - { - unset($this->authorization); - } - - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization $var - * @return $this - */ - public function setAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization::class); - $this->authorization = $var; - - return $this; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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 at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null - */ - public function getWorkloadIdentityConfig() - { - return $this->workload_identity_config; - } - - public function hasWorkloadIdentityConfig() - { - return isset($this->workload_identity_config); - } - - public function clearWorkloadIdentityConfig() - { - unset($this->workload_identity_config); - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); - $this->workload_identity_config = $var; - - return $this; - } - - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClusterCaCertificate() - { - return $this->cluster_ca_certificate; - } - - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClusterCaCertificate($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ca_certificate = $var; - - return $this; - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null - */ - public function getFleet() - { - return $this->fleet; - } - - public function hasFleet() - { - return isset($this->fleet); - } - - public function clearFleet() - { - unset($this->fleet); - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var - * @return $this - */ - public function setFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); - $this->fleet = $var; - - return $this; - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterError::class); - $this->errors = $arr; - - return $this; - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null - */ - public function getMonitoringConfig() - { - return $this->monitoring_config; - } - - public function hasMonitoringConfig() - { - return isset($this->monitoring_config); - } - - public function clearMonitoringConfig() - { - unset($this->monitoring_config); - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php deleted file mode 100644 index 59e416b25a7b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsCluster.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the cluster is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the cluster has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading the control plane replicas. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the cluster is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the cluster is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the cluster requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AwsCluster_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php deleted file mode 100644 index f4b4ded352a1..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsClusterNetworking - */ -class AwsClusterNetworking extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * This field cannot be changed after creation. - * - * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vpc_id = ''; - /** - * Required. All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $pod_address_cidr_blocks; - /** - * Required. All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $service_address_cidr_blocks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $vpc_id - * Required. The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * This field cannot be changed after creation. - * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks - * Required. All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks - * Required. All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * This field cannot be changed after creation. - * - * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVpcId() - { - return $this->vpc_id; - } - - /** - * Required. The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * This field cannot be changed after creation. - * - * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVpcId($var) - { - GPBUtil::checkString($var, True); - $this->vpc_id = $var; - - return $this; - } - - /** - * Required. All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPodAddressCidrBlocks() - { - return $this->pod_address_cidr_blocks; - } - - /** - * Required. All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPodAddressCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pod_address_cidr_blocks = $arr; - - return $this; - } - - /** - * Required. All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAddressCidrBlocks() - { - return $this->service_address_cidr_blocks; - } - - /** - * Required. All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAddressCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_address_cidr_blocks = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php deleted file mode 100644 index 005bd094c801..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsClusterUser - */ -class AwsClusterUser extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $username = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php deleted file mode 100644 index 5b0cb23eabe2..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php +++ /dev/null @@ -1,16 +0,0 @@ -_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAwsClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAwsCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAwsCluster(\Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AwsCluster', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * on a given Google Cloud project and region. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAwsClusters(\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource. - * - * Fails if the cluster has one or more associated - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAwsClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAwsCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAwsClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Generates a short-lived access token to authenticate to a given - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GenerateAwsAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], - * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\CreateAwsNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\CreateAwsNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources on a given - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAwsNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAwsNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\DeleteAwsNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Returns information, such as supported AWS regions and Kubernetes - * versions, on a given Google Cloud location. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsServerConfigRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAwsServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAwsServerConfigRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AwsServerConfig', 'decode'], - $metadata, $options); - } - -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php deleted file mode 100644 index ed4be8aef12a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsConfigEncryption - */ -class AwsConfigEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ARN of the AWS KMS key used to encrypt user data. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $kms_key_arn = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key_arn - * Required. The ARN of the AWS KMS key used to encrypt user data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt user data. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKmsKeyArn() - { - return $this->kms_key_arn; - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt user data. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKmsKeyArn($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_arn = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php deleted file mode 100644 index 826ee8af1a67..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php +++ /dev/null @@ -1,693 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsControlPlane - */ -class AwsControlPlane extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = ''; - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the cluster's version. - * - * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_type = ''; - /** - * Optional. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssh_config = null; - /** - * Required. The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * - * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $subnet_ids; - /** - * Optional. The IDs of additional security groups to add to control plane - * replicas. The Anthos Multi-Cloud API will automatically create and manage - * security groups with the minimum rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $security_group_ids; - /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * - * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $iam_instance_profile = ''; - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $root_volume = null; - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 8 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $main_volume = null; - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_encryption = null; - /** - * Optional. A set of AWS resource tags to propagate to all underlying managed - * AWS resources. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Required. Authentication configuration for management of AWS resources. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_services_authentication = null; - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_config = null; - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config_encryption = null; - /** - * Optional. The placement to use on control plane instances. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_placement = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @type string $instance_type - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the cluster's version. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config - * Optional. SSH configuration for how to access the underlying control plane - * machines. - * @type array|\Google\Protobuf\Internal\RepeatedField $subnet_ids - * Required. The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids - * Optional. The IDs of additional security groups to add to control plane - * replicas. The Anthos Multi-Cloud API will automatically create and manage - * security groups with the minimum rules needed for a functioning cluster. - * @type string $iam_instance_profile - * Required. The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $main_volume - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 8 GiB with the GP2 volume type. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $database_encryption - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of AWS resource tags to propagate to all underlying managed - * AWS resources. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication $aws_services_authentication - * Required. Authentication configuration for management of AWS resources. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption - * Required. Config encryption for user data. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement - * Optional. The placement to use on control plane instances. - * When unspecified, the VPC's default tenancy will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the cluster's version. - * - * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getInstanceType() - { - return $this->instance_type; - } - - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the cluster's version. - * - * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setInstanceType($var) - { - GPBUtil::checkString($var, True); - $this->instance_type = $var; - - return $this; - } - - /** - * Optional. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null - */ - public function getSshConfig() - { - return $this->ssh_config; - } - - public function hasSshConfig() - { - return isset($this->ssh_config); - } - - public function clearSshConfig() - { - unset($this->ssh_config); - } - - /** - * Optional. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $var - * @return $this - */ - public function setSshConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig::class); - $this->ssh_config = $var; - - return $this; - } - - /** - * Required. The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * - * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubnetIds() - { - return $this->subnet_ids; - } - - /** - * Required. The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * - * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubnetIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->subnet_ids = $arr; - - return $this; - } - - /** - * Optional. The IDs of additional security groups to add to control plane - * replicas. The Anthos Multi-Cloud API will automatically create and manage - * security groups with the minimum rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecurityGroupIds() - { - return $this->security_group_ids; - } - - /** - * Optional. The IDs of additional security groups to add to control plane - * replicas. The Anthos Multi-Cloud API will automatically create and manage - * security groups with the minimum rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecurityGroupIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->security_group_ids = $arr; - - return $this; - } - - /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * - * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getIamInstanceProfile() - { - return $this->iam_instance_profile; - } - - /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * - * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setIamInstanceProfile($var) - { - GPBUtil::checkString($var, True); - $this->iam_instance_profile = $var; - - return $this; - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null - */ - public function getRootVolume() - { - return $this->root_volume; - } - - public function hasRootVolume() - { - return isset($this->root_volume); - } - - public function clearRootVolume() - { - unset($this->root_volume); - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var - * @return $this - */ - public function setRootVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); - $this->root_volume = $var; - - return $this; - } - - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 8 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null - */ - public function getMainVolume() - { - return $this->main_volume; - } - - public function hasMainVolume() - { - return isset($this->main_volume); - } - - public function clearMainVolume() - { - unset($this->main_volume); - } - - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 8 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var - * @return $this - */ - public function setMainVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); - $this->main_volume = $var; - - return $this; - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption|null - */ - public function getDatabaseEncryption() - { - return $this->database_encryption; - } - - public function hasDatabaseEncryption() - { - return isset($this->database_encryption); - } - - public function clearDatabaseEncryption() - { - unset($this->database_encryption); - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $var - * @return $this - */ - public function setDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption::class); - $this->database_encryption = $var; - - return $this; - } - - /** - * Optional. A set of AWS resource tags to propagate to all underlying managed - * AWS resources. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A set of AWS resource tags to propagate to all underlying managed - * AWS resources. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Required. Authentication configuration for management of AWS resources. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication|null - */ - public function getAwsServicesAuthentication() - { - return $this->aws_services_authentication; - } - - public function hasAwsServicesAuthentication() - { - return isset($this->aws_services_authentication); - } - - public function clearAwsServicesAuthentication() - { - unset($this->aws_services_authentication); - } - - /** - * Required. Authentication configuration for management of AWS resources. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication $var - * @return $this - */ - public function setAwsServicesAuthentication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication::class); - $this->aws_services_authentication = $var; - - return $this; - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null - */ - public function getProxyConfig() - { - return $this->proxy_config; - } - - public function hasProxyConfig() - { - return isset($this->proxy_config); - } - - public function clearProxyConfig() - { - unset($this->proxy_config); - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $var - * @return $this - */ - public function setProxyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig::class); - $this->proxy_config = $var; - - return $this; - } - - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null - */ - public function getConfigEncryption() - { - return $this->config_encryption; - } - - public function hasConfigEncryption() - { - return isset($this->config_encryption); - } - - public function clearConfigEncryption() - { - unset($this->config_encryption); - } - - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $var - * @return $this - */ - public function setConfigEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption::class); - $this->config_encryption = $var; - - return $this; - } - - /** - * Optional. The placement to use on control plane instances. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null - */ - public function getInstancePlacement() - { - return $this->instance_placement; - } - - public function hasInstancePlacement() - { - return isset($this->instance_placement); - } - - public function clearInstancePlacement() - { - unset($this->instance_placement); - } - - /** - * Optional. The placement to use on control plane instances. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $var - * @return $this - */ - public function setInstancePlacement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement::class); - $this->instance_placement = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php deleted file mode 100644 index e7e0ce60bd12..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsDatabaseEncryption - */ -class AwsDatabaseEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $kms_key_arn = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key_arn - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKmsKeyArn() - { - return $this->kms_key_arn; - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKmsKeyArn($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_arn = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php deleted file mode 100644 index e2eccd85ae67..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsInstancePlacement - */ -class AwsInstancePlacement extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The tenancy for instance. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $tenancy = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $tenancy - * Required. The tenancy for instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The tenancy for instance. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getTenancy() - { - return $this->tenancy; - } - - /** - * Required. The tenancy for instance. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setTenancy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement\Tenancy::class); - $this->tenancy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php deleted file mode 100644 index 7c147a1fef41..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy - */ -class Tenancy -{ - /** - * Not set. - * - * Generated from protobuf enum TENANCY_UNSPECIFIED = 0; - */ - const TENANCY_UNSPECIFIED = 0; - /** - * Use default VPC tenancy. - * - * Generated from protobuf enum DEFAULT = 1; - */ - const PBDEFAULT = 1; - /** - * Run a dedicated instance. - * - * Generated from protobuf enum DEDICATED = 2; - */ - const DEDICATED = 2; - /** - * Launch this instance to a dedicated host. - * - * Generated from protobuf enum HOST = 3; - */ - const HOST = 3; - - private static $valueToName = [ - self::TENANCY_UNSPECIFIED => 'TENANCY_UNSPECIFIED', - self::PBDEFAULT => 'DEFAULT', - self::DEDICATED => 'DEDICATED', - self::HOST => 'HOST', - ]; - - 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(Tenancy::class, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement_Tenancy::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php deleted file mode 100644 index 1c6525314c65..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsK8sVersionInfo - */ -class AwsK8sVersionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Kubernetes version name. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Kubernetes version name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Kubernetes version name. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Kubernetes version name. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php deleted file mode 100644 index 453635f072b7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php +++ /dev/null @@ -1,607 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodeConfig - */ -class AwsNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the node pool's version. - * - * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_type = ''; - /** - * Optional. Template for the root volume provisioned for node pool nodes. - * Volumes will be provisioned in the availability zone assigned - * to the node pool subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $root_volume = null; - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $taints; - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Key/value metadata to assign to each underlying AWS resource. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * - * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $iam_instance_profile = ''; - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image_type = ''; - /** - * Optional. The SSH configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssh_config = null; - /** - * Optional. The IDs of additional security groups to add to nodes in this - * pool. The manager will automatically create security groups with minimum - * rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $security_group_ids; - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_config = null; - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config_encryption = null; - /** - * Optional. Placement related info for this node. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_placement = null; - /** - * Optional. Configuration related to CloudWatch metrics collection on the - * Auto Scaling group of the node pool. - * When unspecified, metrics collection is disabled. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $autoscaling_metrics_collection = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $instance_type - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the node pool's version. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume - * Optional. Template for the root volume provisioned for node pool nodes. - * Volumes will be provisioned in the availability zone assigned - * to the node pool subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * @type array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * Optional. The initial taints assigned to nodes of this node pool. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. Key/value metadata to assign to each underlying AWS resource. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * @type string $iam_instance_profile - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * @type string $image_type - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config - * Optional. The SSH configuration. - * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids - * Optional. The IDs of additional security groups to add to nodes in this - * pool. The manager will automatically create security groups with minimum - * rules needed for a functioning cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption - * Required. Config encryption for user data. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement - * Optional. Placement related info for this node. - * When unspecified, the VPC's default tenancy will be used. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $autoscaling_metrics_collection - * Optional. Configuration related to CloudWatch metrics collection on the - * Auto Scaling group of the node pool. - * When unspecified, metrics collection is disabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the node pool's version. - * - * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getInstanceType() - { - return $this->instance_type; - } - - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the node pool's version. - * - * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setInstanceType($var) - { - GPBUtil::checkString($var, True); - $this->instance_type = $var; - - return $this; - } - - /** - * Optional. Template for the root volume provisioned for node pool nodes. - * Volumes will be provisioned in the availability zone assigned - * to the node pool subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null - */ - public function getRootVolume() - { - return $this->root_volume; - } - - public function hasRootVolume() - { - return isset($this->root_volume); - } - - public function clearRootVolume() - { - unset($this->root_volume); - } - - /** - * Optional. Template for the root volume provisioned for node pool nodes. - * Volumes will be provisioned in the availability zone assigned - * to the node pool subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var - * @return $this - */ - public function setRootVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); - $this->root_volume = $var; - - return $this; - } - - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.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; - } - - /** - * Optional. Key/value metadata to assign to each underlying AWS resource. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. Key/value metadata to assign to each underlying AWS resource. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * - * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getIamInstanceProfile() - { - return $this->iam_instance_profile; - } - - /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * - * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setIamInstanceProfile($var) - { - GPBUtil::checkString($var, True); - $this->iam_instance_profile = $var; - - return $this; - } - - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * Optional. The SSH configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null - */ - public function getSshConfig() - { - return $this->ssh_config; - } - - public function hasSshConfig() - { - return isset($this->ssh_config); - } - - public function clearSshConfig() - { - unset($this->ssh_config); - } - - /** - * Optional. The SSH configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $var - * @return $this - */ - public function setSshConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig::class); - $this->ssh_config = $var; - - return $this; - } - - /** - * Optional. The IDs of additional security groups to add to nodes in this - * pool. The manager will automatically create security groups with minimum - * rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecurityGroupIds() - { - return $this->security_group_ids; - } - - /** - * Optional. The IDs of additional security groups to add to nodes in this - * pool. The manager will automatically create security groups with minimum - * rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecurityGroupIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->security_group_ids = $arr; - - return $this; - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null - */ - public function getProxyConfig() - { - return $this->proxy_config; - } - - public function hasProxyConfig() - { - return isset($this->proxy_config); - } - - public function clearProxyConfig() - { - unset($this->proxy_config); - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $var - * @return $this - */ - public function setProxyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig::class); - $this->proxy_config = $var; - - return $this; - } - - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null - */ - public function getConfigEncryption() - { - return $this->config_encryption; - } - - public function hasConfigEncryption() - { - return isset($this->config_encryption); - } - - public function clearConfigEncryption() - { - unset($this->config_encryption); - } - - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $var - * @return $this - */ - public function setConfigEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption::class); - $this->config_encryption = $var; - - return $this; - } - - /** - * Optional. Placement related info for this node. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null - */ - public function getInstancePlacement() - { - return $this->instance_placement; - } - - public function hasInstancePlacement() - { - return isset($this->instance_placement); - } - - public function clearInstancePlacement() - { - unset($this->instance_placement); - } - - /** - * Optional. Placement related info for this node. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $var - * @return $this - */ - public function setInstancePlacement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement::class); - $this->instance_placement = $var; - - return $this; - } - - /** - * Optional. Configuration related to CloudWatch metrics collection on the - * Auto Scaling group of the node pool. - * When unspecified, metrics collection is disabled. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection|null - */ - public function getAutoscalingMetricsCollection() - { - return $this->autoscaling_metrics_collection; - } - - public function hasAutoscalingMetricsCollection() - { - return isset($this->autoscaling_metrics_collection); - } - - public function clearAutoscalingMetricsCollection() - { - unset($this->autoscaling_metrics_collection); - } - - /** - * Optional. Configuration related to CloudWatch metrics collection on the - * Auto Scaling group of the node pool. - * When unspecified, metrics collection is disabled. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $var - * @return $this - */ - public function setAutoscalingMetricsCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection::class); - $this->autoscaling_metrics_collection = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php deleted file mode 100644 index 2c71f5573170..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php +++ /dev/null @@ -1,639 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodePool - */ -class AwsNodePool extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = ''; - /** - * Required. The configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling = null; - /** - * Required. The subnet where the node pool node run. - * - * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet_id = ''; - /** - * Output only. The lifecycle state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently changes in flight to the node - * pool. - * - * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this node pool was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this node pool was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 21; - */ - protected $etag = ''; - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_pods_constraint = null; - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * @type string $version - * Required. The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig $config - * Required. The configuration of the node pool. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling $autoscaling - * Required. Autoscaler configuration for this node pool. - * @type string $subnet_id - * Required. The subnet where the node pool node run. - * @type int $state - * Output only. The lifecycle state of the node pool. - * @type string $uid - * Output only. A globally unique identifier for the node pool. - * @type bool $reconciling - * Output only. If set, there are currently changes in flight to the node - * pool. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this node pool was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this node pool was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * 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; - } - - /** - * Required. The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Required. The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Required. The configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. The configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * Required. The subnet where the node pool node run. - * - * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Required. The subnet where the node pool node run. - * - * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Output only. The lifecycle state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The lifecycle state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently changes in flight to the node - * pool. - * - * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently changes in flight to the node - * pool. - * - * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this node pool was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.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 at which this node pool was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.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 at which this node pool was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.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 at which this node pool was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 21; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 21; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint|null - */ - public function getMaxPodsConstraint() - { - return $this->max_pods_constraint; - } - - public function hasMaxPodsConstraint() - { - return isset($this->max_pods_constraint); - } - - public function clearMaxPodsConstraint() - { - unset($this->max_pods_constraint); - } - - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint::class); - $this->max_pods_constraint = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError::class); - $this->errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php deleted file mode 100644 index 6c57e22b0028..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php +++ /dev/null @@ -1,95 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodePool.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the node pool is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the node pool has been created - * and is fully usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that the node pool is being reconciled. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the node pool is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the node pool is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the node pool requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AwsNodePool_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php deleted file mode 100644 index fa2cda6ccf53..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php +++ /dev/null @@ -1,110 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling - */ -class AwsNodePoolAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $min_node_count = 0; - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $min_node_count - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * @type int $max_node_count - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMinNodeCount() - { - return $this->min_node_count; - } - - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->min_node_count = $var; - - return $this; - } - - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMaxNodeCount() - { - return $this->max_node_count; - } - - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->max_node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php deleted file mode 100644 index 2e4dbf88c811..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsProxyConfig - */ -class AwsProxyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy - * configuration. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file - * - * Generated from protobuf field string secret_arn = 1; - */ - protected $secret_arn = ''; - /** - * The version string of the AWS Secret Manager secret that contains the - * HTTP(S) proxy configuration. - * - * Generated from protobuf field string secret_version = 2; - */ - protected $secret_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $secret_arn - * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy - * configuration. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file - * @type string $secret_version - * The version string of the AWS Secret Manager secret that contains the - * HTTP(S) proxy configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy - * configuration. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file - * - * Generated from protobuf field string secret_arn = 1; - * @return string - */ - public function getSecretArn() - { - return $this->secret_arn; - } - - /** - * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy - * configuration. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file - * - * Generated from protobuf field string secret_arn = 1; - * @param string $var - * @return $this - */ - public function setSecretArn($var) - { - GPBUtil::checkString($var, True); - $this->secret_arn = $var; - - return $this; - } - - /** - * The version string of the AWS Secret Manager secret that contains the - * HTTP(S) proxy configuration. - * - * Generated from protobuf field string secret_version = 2; - * @return string - */ - public function getSecretVersion() - { - return $this->secret_version; - } - - /** - * The version string of the AWS Secret Manager secret that contains the - * HTTP(S) proxy configuration. - * - * Generated from protobuf field string secret_version = 2; - * @param string $var - * @return $this - */ - public function setSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->secret_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php deleted file mode 100644 index c00bfe0636c7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsServerConfig - */ -class AwsServerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the config. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; - */ - private $valid_versions; - /** - * The list of supported AWS regions. - * - * Generated from protobuf field repeated string supported_aws_regions = 3; - */ - private $supported_aws_regions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the config. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions - * List of valid Kubernetes versions. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_aws_regions - * The list of supported AWS regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the config. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the config. - * - * 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; - } - - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidVersions() - { - return $this->valid_versions; - } - - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo::class); - $this->valid_versions = $arr; - - return $this; - } - - /** - * The list of supported AWS regions. - * - * Generated from protobuf field repeated string supported_aws_regions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedAwsRegions() - { - return $this->supported_aws_regions; - } - - /** - * The list of supported AWS regions. - * - * Generated from protobuf field repeated string supported_aws_regions = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedAwsRegions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->supported_aws_regions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php deleted file mode 100644 index cef249ad091f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsServicesAuthentication - */ -class AwsServicesAuthentication extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * - * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $role_arn = ''; - /** - * Optional. An identifier for the assumed role session. - * When unspecified, it defaults to `multicloud-service-agent`. - * - * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $role_session_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $role_arn - * Required. The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * @type string $role_session_name - * Optional. An identifier for the assumed role session. - * When unspecified, it defaults to `multicloud-service-agent`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * - * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRoleArn() - { - return $this->role_arn; - } - - /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * - * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRoleArn($var) - { - GPBUtil::checkString($var, True); - $this->role_arn = $var; - - return $this; - } - - /** - * Optional. An identifier for the assumed role session. - * When unspecified, it defaults to `multicloud-service-agent`. - * - * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRoleSessionName() - { - return $this->role_session_name; - } - - /** - * Optional. An identifier for the assumed role session. - * When unspecified, it defaults to `multicloud-service-agent`. - * - * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRoleSessionName($var) - { - GPBUtil::checkString($var, True); - $this->role_session_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php deleted file mode 100644 index a3e356328b16..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsSshConfig - */ -class AwsSshConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the EC2 key pair used to login into cluster machines. - * - * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ec2_key_pair = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ec2_key_pair - * Required. The name of the EC2 key pair used to login into cluster machines. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the EC2 key pair used to login into cluster machines. - * - * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEc2KeyPair() - { - return $this->ec2_key_pair; - } - - /** - * Required. The name of the EC2 key pair used to login into cluster machines. - * - * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEc2KeyPair($var) - { - GPBUtil::checkString($var, True); - $this->ec2_key_pair = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php deleted file mode 100644 index 99028858b4e9..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsVolumeTemplate - */ -class AwsVolumeTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The size of the volume, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $size_gib = 0; - /** - * Optional. Type of the EBS volume. - * When unspecified, it defaults to GP2 volume. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $volume_type = 0; - /** - * Optional. The number of I/O operations per second (IOPS) to provision for - * GP3 volume. - * - * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $iops = 0; - /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) - * used to encrypt AWS EBS volumes. - * If not specified, the default Amazon managed key associated to - * the AWS region where this cluster runs will be used. - * - * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $kms_key_arn = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $size_gib - * Optional. The size of the volume, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * @type int $volume_type - * Optional. Type of the EBS volume. - * When unspecified, it defaults to GP2 volume. - * @type int $iops - * Optional. The number of I/O operations per second (IOPS) to provision for - * GP3 volume. - * @type string $kms_key_arn - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) - * used to encrypt AWS EBS volumes. - * If not specified, the default Amazon managed key associated to - * the AWS region where this cluster runs will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The size of the volume, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSizeGib() - { - return $this->size_gib; - } - - /** - * Optional. The size of the volume, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSizeGib($var) - { - GPBUtil::checkInt32($var); - $this->size_gib = $var; - - return $this; - } - - /** - * Optional. Type of the EBS volume. - * When unspecified, it defaults to GP2 volume. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getVolumeType() - { - return $this->volume_type; - } - - /** - * Optional. Type of the EBS volume. - * When unspecified, it defaults to GP2 volume. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setVolumeType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate\VolumeType::class); - $this->volume_type = $var; - - return $this; - } - - /** - * Optional. The number of I/O operations per second (IOPS) to provision for - * GP3 volume. - * - * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getIops() - { - return $this->iops; - } - - /** - * Optional. The number of I/O operations per second (IOPS) to provision for - * GP3 volume. - * - * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setIops($var) - { - GPBUtil::checkInt32($var); - $this->iops = $var; - - return $this; - } - - /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) - * used to encrypt AWS EBS volumes. - * If not specified, the default Amazon managed key associated to - * the AWS region where this cluster runs will be used. - * - * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKmsKeyArn() - { - return $this->kms_key_arn; - } - - /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) - * used to encrypt AWS EBS volumes. - * If not specified, the default Amazon managed key associated to - * the AWS region where this cluster runs will be used. - * - * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKmsKeyArn($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_arn = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php deleted file mode 100644 index 8a88654de373..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType - */ -class VolumeType -{ - /** - * Not set. - * - * Generated from protobuf enum VOLUME_TYPE_UNSPECIFIED = 0; - */ - const VOLUME_TYPE_UNSPECIFIED = 0; - /** - * GP2 (General Purpose SSD volume type). - * - * Generated from protobuf enum GP2 = 1; - */ - const GP2 = 1; - /** - * GP3 (General Purpose SSD volume type). - * - * Generated from protobuf enum GP3 = 2; - */ - const GP3 = 2; - - private static $valueToName = [ - self::VOLUME_TYPE_UNSPECIFIED => 'VOLUME_TYPE_UNSPECIFIED', - self::GP2 => 'GP2', - self::GP3 => 'GP3', - ]; - - 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(VolumeType::class, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate_VolumeType::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php deleted file mode 100644 index dc53da62729d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureAuthorization - */ -class AzureAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $admin_users; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdminUsers() - { - return $this->admin_users; - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterUser>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdminUsers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterUser::class); - $this->admin_users = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php deleted file mode 100644 index 0b11e8856493..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php +++ /dev/null @@ -1,333 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClient - */ -class AzureClient extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * `AzureClient` resource names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The Azure Active Directory Tenant ID. - * - * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $tenant_id = ''; - /** - * Required. The Azure Active Directory Application ID. - * - * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $application_id = ''; - /** - * Optional. Annotations on the resource. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Output only. The PEM encoded x509 certificate. - * - * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pem_certificate = ''; - /** - * Output only. A globally unique identifier for the client. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time at which this resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * `AzureClient` resource names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type string $tenant_id - * Required. The Azure Active Directory Tenant ID. - * @type string $application_id - * Required. The Azure Active Directory Application ID. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the resource. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type string $pem_certificate - * Output only. The PEM encoded x509 certificate. - * @type string $uid - * Output only. A globally unique identifier for the client. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this resource was created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * `AzureClient` resource names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * `AzureClient` resource names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * Required. The Azure Active Directory Tenant ID. - * - * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Required. The Azure Active Directory Tenant ID. - * - * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Required. The Azure Active Directory Application ID. - * - * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Required. The Azure Active Directory Application ID. - * - * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Optional. Annotations on the resource. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the resource. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. The PEM encoded x509 certificate. - * - * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPemCertificate() - { - return $this->pem_certificate; - } - - /** - * Output only. The PEM encoded x509 certificate. - * - * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPemCertificate($var) - { - GPBUtil::checkString($var, True); - $this->pem_certificate = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the client. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the client. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time at which this resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 at which this resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php deleted file mode 100644 index 017ffe4961e7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php +++ /dev/null @@ -1,1035 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureCluster - */ -class AzureCluster extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The Azure region where the cluster runs. - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * - * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_region = ''; - /** - * Required. The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * - * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_group_id = ''; - /** - * Required. Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_client = ''; - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $networking = null; - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $control_plane = null; - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorization = null; - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint = ''; - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - */ - protected $etag = ''; - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_identity_config = null; - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_ca_certificate = ''; - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $fleet = null; - /** - * Output only. Managed Azure resources for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $managed_resources = null; - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $logging_config = null; - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $monitoring_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type string $description - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * @type string $azure_region - * Required. The Azure region where the cluster runs. - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * @type string $resource_group_id - * Required. The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * @type string $azure_client - * Required. Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking $networking - * Required. Cluster-wide networking configuration. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane $control_plane - * Required. Configuration related to the cluster control plane. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization $authorization - * Required. Configuration related to the cluster RBAC settings. - * @type int $state - * Output only. The current state of the cluster. - * @type string $endpoint - * Output only. The endpoint of the cluster's API server. - * @type string $uid - * Output only. A globally unique identifier for the cluster. - * @type bool $reconciling - * Output only. If set, there are currently changes in flight to the cluster. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this cluster was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this cluster was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config - * Output only. Workload Identity settings. - * @type string $cluster_ca_certificate - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet - * Required. Fleet configuration. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $managed_resources - * Output only. Managed Azure resources for this cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config - * Optional. Logging configuration for this cluster. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config - * Optional. Monitoring configuration for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field 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; - } - - /** - * Required. The Azure region where the cluster runs. - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * - * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureRegion() - { - return $this->azure_region; - } - - /** - * Required. The Azure region where the cluster runs. - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * - * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureRegion($var) - { - GPBUtil::checkString($var, True); - $this->azure_region = $var; - - return $this; - } - - /** - * Required. The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * - * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResourceGroupId() - { - return $this->resource_group_id; - } - - /** - * Required. The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * - * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResourceGroupId($var) - { - GPBUtil::checkString($var, True); - $this->resource_group_id = $var; - - return $this; - } - - /** - * Required. Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureClient() - { - return $this->azure_client; - } - - /** - * Required. Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureClient($var) - { - GPBUtil::checkString($var, True); - $this->azure_client = $var; - - return $this; - } - - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking|null - */ - public function getNetworking() - { - return $this->networking; - } - - public function hasNetworking() - { - return isset($this->networking); - } - - public function clearNetworking() - { - unset($this->networking); - } - - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking $var - * @return $this - */ - public function setNetworking($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking::class); - $this->networking = $var; - - return $this; - } - - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane|null - */ - public function getControlPlane() - { - return $this->control_plane; - } - - public function hasControlPlane() - { - return isset($this->control_plane); - } - - public function clearControlPlane() - { - unset($this->control_plane); - } - - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane $var - * @return $this - */ - public function setControlPlane($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane::class); - $this->control_plane = $var; - - return $this; - } - - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization|null - */ - public function getAuthorization() - { - return $this->authorization; - } - - public function hasAuthorization() - { - return isset($this->authorization); - } - - public function clearAuthorization() - { - unset($this->authorization); - } - - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization $var - * @return $this - */ - public function setAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization::class); - $this->authorization = $var; - - return $this; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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 at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null - */ - public function getWorkloadIdentityConfig() - { - return $this->workload_identity_config; - } - - public function hasWorkloadIdentityConfig() - { - return isset($this->workload_identity_config); - } - - public function clearWorkloadIdentityConfig() - { - unset($this->workload_identity_config); - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); - $this->workload_identity_config = $var; - - return $this; - } - - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClusterCaCertificate() - { - return $this->cluster_ca_certificate; - } - - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClusterCaCertificate($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ca_certificate = $var; - - return $this; - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null - */ - public function getFleet() - { - return $this->fleet; - } - - public function hasFleet() - { - return isset($this->fleet); - } - - public function clearFleet() - { - unset($this->fleet); - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var - * @return $this - */ - public function setFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); - $this->fleet = $var; - - return $this; - } - - /** - * Output only. Managed Azure resources for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources|null - */ - public function getManagedResources() - { - return $this->managed_resources; - } - - public function hasManagedResources() - { - return isset($this->managed_resources); - } - - public function clearManagedResources() - { - unset($this->managed_resources); - } - - /** - * Output only. Managed Azure resources for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $var - * @return $this - */ - public function setManagedResources($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources::class); - $this->managed_resources = $var; - - return $this; - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterError::class); - $this->errors = $arr; - - return $this; - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null - */ - public function getMonitoringConfig() - { - return $this->monitoring_config; - } - - public function hasMonitoringConfig() - { - return isset($this->monitoring_config); - } - - public function clearMonitoringConfig() - { - unset($this->monitoring_config); - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php deleted file mode 100644 index e62a7b58f248..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureCluster.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the cluster is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the cluster has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading the control plane replicas. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the cluster is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the cluster is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the cluster requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AzureCluster_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php deleted file mode 100644 index c4425dee6e7c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClusterNetworking - */ -class AzureClusterNetworking extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * This field cannot be changed after creation. - * - * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $virtual_network_id = ''; - /** - * Required. The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $pod_address_cidr_blocks; - /** - * Required. The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creating a cluster. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $service_address_cidr_blocks; - /** - * Optional. The ARM ID of the subnet where Kubernetes private service type - * load balancers are deployed. When unspecified, it defaults to - * AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - * - * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_load_balancer_subnet_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $virtual_network_id - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * This field cannot be changed after creation. - * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks - * Required. The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creation. - * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks - * Required. The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creating a cluster. - * @type string $service_load_balancer_subnet_id - * Optional. The ARM ID of the subnet where Kubernetes private service type - * load balancers are deployed. When unspecified, it defaults to - * AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * This field cannot be changed after creation. - * - * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVirtualNetworkId() - { - return $this->virtual_network_id; - } - - /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * This field cannot be changed after creation. - * - * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVirtualNetworkId($var) - { - GPBUtil::checkString($var, True); - $this->virtual_network_id = $var; - - return $this; - } - - /** - * Required. The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPodAddressCidrBlocks() - { - return $this->pod_address_cidr_blocks; - } - - /** - * Required. The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPodAddressCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pod_address_cidr_blocks = $arr; - - return $this; - } - - /** - * Required. The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creating a cluster. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAddressCidrBlocks() - { - return $this->service_address_cidr_blocks; - } - - /** - * Required. The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creating a cluster. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAddressCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_address_cidr_blocks = $arr; - - return $this; - } - - /** - * Optional. The ARM ID of the subnet where Kubernetes private service type - * load balancers are deployed. When unspecified, it defaults to - * AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - * - * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceLoadBalancerSubnetId() - { - return $this->service_load_balancer_subnet_id; - } - - /** - * Optional. The ARM ID of the subnet where Kubernetes private service type - * load balancers are deployed. When unspecified, it defaults to - * AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - * - * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceLoadBalancerSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->service_load_balancer_subnet_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php deleted file mode 100644 index ca301cadedac..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClusterResources - */ -class AzureClusterResources extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The ARM ID of the cluster network security group. - * - * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_security_group_id = ''; - /** - * Output only. The ARM ID of the control plane application security group. - * - * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $control_plane_application_security_group_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network_security_group_id - * Output only. The ARM ID of the cluster network security group. - * @type string $control_plane_application_security_group_id - * Output only. The ARM ID of the control plane application security group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The ARM ID of the cluster network security group. - * - * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNetworkSecurityGroupId() - { - return $this->network_security_group_id; - } - - /** - * Output only. The ARM ID of the cluster network security group. - * - * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNetworkSecurityGroupId($var) - { - GPBUtil::checkString($var, True); - $this->network_security_group_id = $var; - - return $this; - } - - /** - * Output only. The ARM ID of the control plane application security group. - * - * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getControlPlaneApplicationSecurityGroupId() - { - return $this->control_plane_application_security_group_id; - } - - /** - * Output only. The ARM ID of the control plane application security group. - * - * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setControlPlaneApplicationSecurityGroupId($var) - { - GPBUtil::checkString($var, True); - $this->control_plane_application_security_group_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php deleted file mode 100644 index 3aecd59fbf61..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClusterUser - */ -class AzureClusterUser extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $username = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php deleted file mode 100644 index 8920c0ef3e68..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php +++ /dev/null @@ -1,16 +0,0 @@ -_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureClient', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureClient(\Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AzureClient', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources on a given Google Cloud project and region. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAzureClients(\Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAzureClientsResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource. - * - * If the client is used by one or more clusters, deletion will - * fail and a `FAILED_PRECONDITION` error will be returned. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureClientRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAzureClient(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClientRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureClient', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource on a given GCP project and region. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\CreateAzureClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\CreateAzureClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureCluster(\Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AzureCluster', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources on a given Google Cloud project and region. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAzureClusters(\Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAzureClustersResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * - * Fails if the cluster has one or more associated - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAzureCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Generates a short-lived access token to authenticate to a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GenerateAzureAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], - * attached to a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\CreateAzureNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\CreateAzureNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAzureNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources on a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAzureNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Returns information, such as supported Azure regions and Kubernetes - * versions, on a given Google Cloud location. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureServerConfigRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAzureServerConfigRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AzureServerConfig', 'decode'], - $metadata, $options); - } - -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php deleted file mode 100644 index f90fcdd501a4..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php +++ /dev/null @@ -1,131 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureConfigEncryption - */ -class AzureConfigEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config - * data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * - * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_id = ''; - /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting - * the data. - * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) - * in ASN.1 DER form. The string must be comprised of a single PEM block of - * type "PUBLIC KEY". - * - * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $public_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_id - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config - * data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * @type string $public_key - * Optional. RSA key of the Azure Key Vault public key to use for encrypting - * the data. - * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) - * in ASN.1 DER form. The string must be comprised of a single PEM block of - * type "PUBLIC KEY". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config - * data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * - * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKeyId() - { - return $this->key_id; - } - - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config - * data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * - * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKeyId($var) - { - GPBUtil::checkString($var, True); - $this->key_id = $var; - - return $this; - } - - /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting - * the data. - * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) - * in ASN.1 DER form. The string must be comprised of a single PEM block of - * type "PUBLIC KEY". - * - * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPublicKey() - { - return $this->public_key; - } - - /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting - * the data. - * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) - * in ASN.1 DER form. The string must be comprised of a single PEM block of - * type "PUBLIC KEY". - * - * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPublicKey($var) - { - GPBUtil::checkString($var, True); - $this->public_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php deleted file mode 100644 index 92f3fed0095f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php +++ /dev/null @@ -1,613 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureControlPlane - */ -class AzureControlPlane extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = ''; - /** - * Optional. The ARM ID of the default subnet for the control plane. The - * control plane VMs are deployed in this subnet, unless - * `AzureControlPlane.replica_placements` is specified. This subnet will also - * be used as default for `AzureControlPlane.endpoint_subnet_id` if - * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will - * be used as default for - * `AzureClusterNetworking.service_load_balancer_subnet_id`. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $subnet_id = ''; - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * For available VM sizes, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vm_size = ''; - /** - * Required. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ssh_config = null; - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * When unspecified, it defaults to 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $root_volume = null; - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * When unspecified, it defaults to a 8-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $main_volume = null; - /** - * Optional. Configuration related to application-layer secrets encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database_encryption = null; - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_config = null; - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $config_encryption = null; - /** - * Optional. A set of tags to apply to all underlying control plane Azure - * resources. - * - * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Optional. Configuration for where to place the control plane replicas. - * Up to three replica placement instances can be specified. If - * replica_placements is set, the replica placement instances will be applied - * to the three control plane replicas as evenly as possible. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $replica_placements; - /** - * Optional. The ARM ID of the subnet where the control plane load balancer is - * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" - * - * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $endpoint_subnet_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * @type string $subnet_id - * Optional. The ARM ID of the default subnet for the control plane. The - * control plane VMs are deployed in this subnet, unless - * `AzureControlPlane.replica_placements` is specified. This subnet will also - * be used as default for `AzureControlPlane.endpoint_subnet_id` if - * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will - * be used as default for - * `AzureClusterNetworking.service_load_balancer_subnet_id`. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. - * @type string $vm_size - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * For available VM sizes, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. - * When unspecified, it defaults to `Standard_DS2_v2`. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $ssh_config - * Required. SSH configuration for how to access the underlying control plane - * machines. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $root_volume - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * When unspecified, it defaults to 32-GiB Azure Disk. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $main_volume - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * When unspecified, it defaults to a 8-GiB Azure Disk. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption $database_encryption - * Optional. Configuration related to application-layer secrets encryption. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $proxy_config - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption - * Optional. Configuration related to vm config encryption. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of tags to apply to all underlying control plane Azure - * resources. - * @type array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $replica_placements - * Optional. Configuration for where to place the control plane replicas. - * Up to three replica placement instances can be specified. If - * replica_placements is set, the replica placement instances will be applied - * to the three control plane replicas as evenly as possible. - * @type string $endpoint_subnet_id - * Optional. The ARM ID of the subnet where the control plane load balancer is - * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional. The ARM ID of the default subnet for the control plane. The - * control plane VMs are deployed in this subnet, unless - * `AzureControlPlane.replica_placements` is specified. This subnet will also - * be used as default for `AzureControlPlane.endpoint_subnet_id` if - * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will - * be used as default for - * `AzureClusterNetworking.service_load_balancer_subnet_id`. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Optional. The ARM ID of the default subnet for the control plane. The - * control plane VMs are deployed in this subnet, unless - * `AzureControlPlane.replica_placements` is specified. This subnet will also - * be used as default for `AzureControlPlane.endpoint_subnet_id` if - * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will - * be used as default for - * `AzureClusterNetworking.service_load_balancer_subnet_id`. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * For available VM sizes, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVmSize() - { - return $this->vm_size; - } - - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * For available VM sizes, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVmSize($var) - { - GPBUtil::checkString($var, True); - $this->vm_size = $var; - - return $this; - } - - /** - * Required. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig|null - */ - public function getSshConfig() - { - return $this->ssh_config; - } - - public function hasSshConfig() - { - return isset($this->ssh_config); - } - - public function clearSshConfig() - { - unset($this->ssh_config); - } - - /** - * Required. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $var - * @return $this - */ - public function setSshConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig::class); - $this->ssh_config = $var; - - return $this; - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * When unspecified, it defaults to 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null - */ - public function getRootVolume() - { - return $this->root_volume; - } - - public function hasRootVolume() - { - return isset($this->root_volume); - } - - public function clearRootVolume() - { - unset($this->root_volume); - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * When unspecified, it defaults to 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var - * @return $this - */ - public function setRootVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); - $this->root_volume = $var; - - return $this; - } - - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * When unspecified, it defaults to a 8-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null - */ - public function getMainVolume() - { - return $this->main_volume; - } - - public function hasMainVolume() - { - return isset($this->main_volume); - } - - public function clearMainVolume() - { - unset($this->main_volume); - } - - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * When unspecified, it defaults to a 8-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var - * @return $this - */ - public function setMainVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); - $this->main_volume = $var; - - return $this; - } - - /** - * Optional. Configuration related to application-layer secrets encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption|null - */ - public function getDatabaseEncryption() - { - return $this->database_encryption; - } - - public function hasDatabaseEncryption() - { - return isset($this->database_encryption); - } - - public function clearDatabaseEncryption() - { - unset($this->database_encryption); - } - - /** - * Optional. Configuration related to application-layer secrets encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption $var - * @return $this - */ - public function setDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption::class); - $this->database_encryption = $var; - - return $this; - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig|null - */ - public function getProxyConfig() - { - return $this->proxy_config; - } - - public function hasProxyConfig() - { - return isset($this->proxy_config); - } - - public function clearProxyConfig() - { - unset($this->proxy_config); - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $var - * @return $this - */ - public function setProxyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig::class); - $this->proxy_config = $var; - - return $this; - } - - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption|null - */ - public function getConfigEncryption() - { - return $this->config_encryption; - } - - public function hasConfigEncryption() - { - return isset($this->config_encryption); - } - - public function clearConfigEncryption() - { - unset($this->config_encryption); - } - - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $var - * @return $this - */ - public function setConfigEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption::class); - $this->config_encryption = $var; - - return $this; - } - - /** - * Optional. A set of tags to apply to all underlying control plane Azure - * resources. - * - * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A set of tags to apply to all underlying control plane Azure - * resources. - * - * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Optional. Configuration for where to place the control plane replicas. - * Up to three replica placement instances can be specified. If - * replica_placements is set, the replica placement instances will be applied - * to the three control plane replicas as evenly as possible. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReplicaPlacements() - { - return $this->replica_placements; - } - - /** - * Optional. Configuration for where to place the control plane replicas. - * Up to three replica placement instances can be specified. If - * replica_placements is set, the replica placement instances will be applied - * to the three control plane replicas as evenly as possible. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReplicaPlacements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement::class); - $this->replica_placements = $arr; - - return $this; - } - - /** - * Optional. The ARM ID of the subnet where the control plane load balancer is - * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" - * - * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEndpointSubnetId() - { - return $this->endpoint_subnet_id; - } - - /** - * Optional. The ARM ID of the subnet where the control plane load balancer is - * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" - * - * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEndpointSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_subnet_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php deleted file mode 100644 index 21c7b8009267..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureDatabaseEncryption - */ -class AzureDatabaseEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * Encryption will always take the latest version of the key and hence - * specific version is not supported. - * - * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_id - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * Encryption will always take the latest version of the key and hence - * specific version is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * Encryption will always take the latest version of the key and hence - * specific version is not supported. - * - * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKeyId() - { - return $this->key_id; - } - - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * Encryption will always take the latest version of the key and hence - * specific version is not supported. - * - * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKeyId($var) - { - GPBUtil::checkString($var, True); - $this->key_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php deleted file mode 100644 index f3c1a39446b7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureDiskTemplate - */ -class AzureDiskTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The size of the disk, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $size_gib = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $size_gib - * Optional. The size of the disk, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The size of the disk, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSizeGib() - { - return $this->size_gib; - } - - /** - * Optional. The size of the disk, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSizeGib($var) - { - GPBUtil::checkInt32($var); - $this->size_gib = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php deleted file mode 100644 index c5f4598bb33e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureK8sVersionInfo - */ -class AzureK8sVersionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * A supported Kubernetes version (for example, `1.19.10-gke.1000`) - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * A supported Kubernetes version (for example, `1.19.10-gke.1000`) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * A supported Kubernetes version (for example, `1.19.10-gke.1000`) - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * A supported Kubernetes version (for example, `1.19.10-gke.1000`) - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php deleted file mode 100644 index 6008f9ede920..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php +++ /dev/null @@ -1,436 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodeConfig - */ -class AzureNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * See [Supported VM - * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vm_size = ''; - /** - * Optional. Configuration related to the root volume provisioned for each - * node pool machine. - * When unspecified, it defaults to a 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $root_volume = null; - /** - * Optional. A set of tags to apply to all underlying Azure resources for this - * node pool. This currently only includes Virtual Machine Scale Sets. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image_type = ''; - /** - * Required. SSH configuration for how to access the node pool machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ssh_config = null; - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_config = null; - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $config_encryption = null; - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $taints; - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $vm_size - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * See [Supported VM - * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. - * When unspecified, it defaults to `Standard_DS2_v2`. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $root_volume - * Optional. Configuration related to the root volume provisioned for each - * node pool machine. - * When unspecified, it defaults to a 32-GiB Azure Disk. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of tags to apply to all underlying Azure resources for this - * node pool. This currently only includes Virtual Machine Scale Sets. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * @type string $image_type - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $ssh_config - * Required. SSH configuration for how to access the node pool machines. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $proxy_config - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption - * Optional. Configuration related to vm config encryption. - * @type array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * Optional. The initial taints assigned to nodes of this node pool. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * See [Supported VM - * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVmSize() - { - return $this->vm_size; - } - - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * See [Supported VM - * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVmSize($var) - { - GPBUtil::checkString($var, True); - $this->vm_size = $var; - - return $this; - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * node pool machine. - * When unspecified, it defaults to a 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null - */ - public function getRootVolume() - { - return $this->root_volume; - } - - public function hasRootVolume() - { - return isset($this->root_volume); - } - - public function clearRootVolume() - { - unset($this->root_volume); - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * node pool machine. - * When unspecified, it defaults to a 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var - * @return $this - */ - public function setRootVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); - $this->root_volume = $var; - - return $this; - } - - /** - * Optional. A set of tags to apply to all underlying Azure resources for this - * node pool. This currently only includes Virtual Machine Scale Sets. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A set of tags to apply to all underlying Azure resources for this - * node pool. This currently only includes Virtual Machine Scale Sets. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * Required. SSH configuration for how to access the node pool machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig|null - */ - public function getSshConfig() - { - return $this->ssh_config; - } - - public function hasSshConfig() - { - return isset($this->ssh_config); - } - - public function clearSshConfig() - { - unset($this->ssh_config); - } - - /** - * Required. SSH configuration for how to access the node pool machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $var - * @return $this - */ - public function setSshConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig::class); - $this->ssh_config = $var; - - return $this; - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig|null - */ - public function getProxyConfig() - { - return $this->proxy_config; - } - - public function hasProxyConfig() - { - return isset($this->proxy_config); - } - - public function clearProxyConfig() - { - unset($this->proxy_config); - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $var - * @return $this - */ - public function setProxyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig::class); - $this->proxy_config = $var; - - return $this; - } - - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption|null - */ - public function getConfigEncryption() - { - return $this->config_encryption; - } - - public function hasConfigEncryption() - { - return isset($this->config_encryption); - } - - public function clearConfigEncryption() - { - unset($this->config_encryption); - } - - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $var - * @return $this - */ - public function setConfigEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption::class); - $this->config_encryption = $var; - - return $this; - } - - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php deleted file mode 100644 index 957f0cef0a6c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php +++ /dev/null @@ -1,669 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodePool - */ -class AzureNodePool extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = ''; - /** - * Required. The node configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * - * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet_id = ''; - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling = null; - /** - * Output only. The current state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently pending changes to the node - * pool. - * - * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this node pool 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 at which this node pool was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12; - */ - protected $etag = ''; - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_pods_constraint = null; - /** - * Optional. The Azure availability zone of the nodes in this nodepool. - * When unspecified, it defaults to `1`. - * - * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $azure_availability_zone = ''; - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * @type string $version - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $config - * Required. The node configuration of the node pool. - * @type string $subnet_id - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $autoscaling - * Required. Autoscaler configuration for this node pool. - * @type int $state - * Output only. The current state of the node pool. - * @type string $uid - * Output only. A globally unique identifier for the node pool. - * @type bool $reconciling - * Output only. If set, there are currently pending changes to the node - * pool. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this node pool was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this node pool was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * @type string $azure_availability_zone - * Optional. The Azure availability zone of the nodes in this nodepool. - * When unspecified, it defaults to `1`. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * 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; - } - - /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Required. The node configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. The node configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * - * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * - * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * Output only. The current state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently pending changes to the node - * pool. - * - * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently pending changes to the node - * pool. - * - * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this node pool 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 at which this node pool 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 at which this node pool was last 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 at which this node pool was last 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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint|null - */ - public function getMaxPodsConstraint() - { - return $this->max_pods_constraint; - } - - public function hasMaxPodsConstraint() - { - return isset($this->max_pods_constraint); - } - - public function clearMaxPodsConstraint() - { - unset($this->max_pods_constraint); - } - - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint::class); - $this->max_pods_constraint = $var; - - return $this; - } - - /** - * Optional. The Azure availability zone of the nodes in this nodepool. - * When unspecified, it defaults to `1`. - * - * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAzureAvailabilityZone() - { - return $this->azure_availability_zone; - } - - /** - * Optional. The Azure availability zone of the nodes in this nodepool. - * When unspecified, it defaults to `1`. - * - * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAzureAvailabilityZone($var) - { - GPBUtil::checkString($var, True); - $this->azure_availability_zone = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError::class); - $this->errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php deleted file mode 100644 index 1d994d640f61..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php +++ /dev/null @@ -1,95 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodePool.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the node pool is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the node pool has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that the node pool is being reconciled. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the node pool is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the node pool is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the node pool requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AzureNodePool_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php deleted file mode 100644 index 2688e11da544..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling - */ -class AzureNodePoolAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $min_node_count = 0; - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $min_node_count - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * @type int $max_node_count - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMinNodeCount() - { - return $this->min_node_count; - } - - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->min_node_count = $var; - - return $this; - } - - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMaxNodeCount() - { - return $this->max_node_count; - } - - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->max_node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php deleted file mode 100644 index 564057a0a4f3..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureProxyConfig - */ -class AzureProxyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The ARM ID the of the resource group containing proxy keyvault. - * Resource group ids are formatted as - * `/subscriptions//resourceGroups/`. - * - * Generated from protobuf field string resource_group_id = 1; - */ - protected $resource_group_id = ''; - /** - * The URL the of the proxy setting secret with its version. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file - * Secret ids are formatted as - * `https://.vault.azure.net/secrets//`. - * - * Generated from protobuf field string secret_id = 2; - */ - protected $secret_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_group_id - * The ARM ID the of the resource group containing proxy keyvault. - * Resource group ids are formatted as - * `/subscriptions//resourceGroups/`. - * @type string $secret_id - * The URL the of the proxy setting secret with its version. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file - * Secret ids are formatted as - * `https://.vault.azure.net/secrets//`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The ARM ID the of the resource group containing proxy keyvault. - * Resource group ids are formatted as - * `/subscriptions//resourceGroups/`. - * - * Generated from protobuf field string resource_group_id = 1; - * @return string - */ - public function getResourceGroupId() - { - return $this->resource_group_id; - } - - /** - * The ARM ID the of the resource group containing proxy keyvault. - * Resource group ids are formatted as - * `/subscriptions//resourceGroups/`. - * - * Generated from protobuf field string resource_group_id = 1; - * @param string $var - * @return $this - */ - public function setResourceGroupId($var) - { - GPBUtil::checkString($var, True); - $this->resource_group_id = $var; - - return $this; - } - - /** - * The URL the of the proxy setting secret with its version. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file - * Secret ids are formatted as - * `https://.vault.azure.net/secrets//`. - * - * Generated from protobuf field string secret_id = 2; - * @return string - */ - public function getSecretId() - { - return $this->secret_id; - } - - /** - * The URL the of the proxy setting secret with its version. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file - * Secret ids are formatted as - * `https://.vault.azure.net/secrets//`. - * - * Generated from protobuf field string secret_id = 2; - * @param string $var - * @return $this - */ - public function setSecretId($var) - { - GPBUtil::checkString($var, True); - $this->secret_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php deleted file mode 100644 index d05c8963587f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureServerConfig - */ -class AzureServerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The `AzureServerConfig` resource name. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; - */ - private $valid_versions; - /** - * The list of supported Azure regions. - * - * Generated from protobuf field repeated string supported_azure_regions = 3; - */ - private $supported_azure_regions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The `AzureServerConfig` resource name. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions - * List of valid Kubernetes versions. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_azure_regions - * The list of supported Azure regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The `AzureServerConfig` resource name. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The `AzureServerConfig` resource name. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidVersions() - { - return $this->valid_versions; - } - - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo::class); - $this->valid_versions = $arr; - - return $this; - } - - /** - * The list of supported Azure regions. - * - * Generated from protobuf field repeated string supported_azure_regions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedAzureRegions() - { - return $this->supported_azure_regions; - } - - /** - * The list of supported Azure regions. - * - * Generated from protobuf field repeated string supported_azure_regions = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedAzureRegions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->supported_azure_regions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php deleted file mode 100644 index 1327e9f14c97..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureSshConfig - */ -class AzureSshConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * - * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorized_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $authorized_key - * Required. The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * - * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAuthorizedKey() - { - return $this->authorized_key; - } - - /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * - * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAuthorizedKey($var) - { - GPBUtil::checkString($var, True); - $this->authorized_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php deleted file mode 100644 index 62f0e71056dd..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAwsClusterRequest - */ -class CreateAwsClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_cluster = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_cluster_id = ''; - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster - * Required. The specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * @type string $aws_cluster_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null - */ - public function getAwsCluster() - { - return $this->aws_cluster; - } - - public function hasAwsCluster() - { - return isset($this->aws_cluster); - } - - public function clearAwsCluster() - { - unset($this->aws_cluster); - } - - /** - * Required. The specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var - * @return $this - */ - public function setAwsCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); - $this->aws_cluster = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAwsClusterId() - { - return $this->aws_cluster_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAwsClusterId($var) - { - GPBUtil::checkString($var, True); - $this->aws_cluster_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php deleted file mode 100644 index 8509d663ab0f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest - */ -class CreateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_node_pool = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_node_pool_id = ''; - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool - * Required. The specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * @type string $aws_node_pool_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the node - * pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null - */ - public function getAwsNodePool() - { - return $this->aws_node_pool; - } - - public function hasAwsNodePool() - { - return isset($this->aws_node_pool); - } - - public function clearAwsNodePool() - { - unset($this->aws_node_pool); - } - - /** - * Required. The specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var - * @return $this - */ - public function setAwsNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); - $this->aws_node_pool = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAwsNodePoolId() - { - return $this->aws_node_pool_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAwsNodePoolId($var) - { - GPBUtil::checkString($var, True); - $this->aws_node_pool_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php deleted file mode 100644 index 79a670bcfe0b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAzureClientRequest - */ -class CreateAzureClientRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_client = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_client_id = ''; - /** - * If set, only validate the request, but do not actually create the client. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureClient $azure_client - * Required. The specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * @type string $azure_client_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the client. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureClient|null - */ - public function getAzureClient() - { - return $this->azure_client; - } - - public function hasAzureClient() - { - return isset($this->azure_client); - } - - public function clearAzureClient() - { - unset($this->azure_client); - } - - /** - * Required. The specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureClient $var - * @return $this - */ - public function setAzureClient($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClient::class); - $this->azure_client = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureClientId() - { - return $this->azure_client_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureClientId($var) - { - GPBUtil::checkString($var, True); - $this->azure_client_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the client. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the client. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php deleted file mode 100644 index cd34124a8b15..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAzureClusterRequest - */ -class CreateAzureClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_cluster = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_cluster_id = ''; - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster - * Required. The specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * @type string $azure_cluster_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null - */ - public function getAzureCluster() - { - return $this->azure_cluster; - } - - public function hasAzureCluster() - { - return isset($this->azure_cluster); - } - - public function clearAzureCluster() - { - unset($this->azure_cluster); - } - - /** - * Required. The specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var - * @return $this - */ - public function setAzureCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); - $this->azure_cluster = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureClusterId() - { - return $this->azure_cluster_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureClusterId($var) - { - GPBUtil::checkString($var, True); - $this->azure_cluster_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php deleted file mode 100644 index 19fd796cdee5..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest - */ -class CreateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_node_pool = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_node_pool_id = ''; - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool - * Required. The specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * @type string $azure_node_pool_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the node - * pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null - */ - public function getAzureNodePool() - { - return $this->azure_node_pool; - } - - public function hasAzureNodePool() - { - return isset($this->azure_node_pool); - } - - public function clearAzureNodePool() - { - unset($this->azure_node_pool); - } - - /** - * Required. The specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var - * @return $this - */ - public function setAzureNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); - $this->azure_node_pool = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureNodePoolId() - { - return $this->azure_node_pool_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureNodePoolId($var) - { - GPBUtil::checkString($var, True); - $this->azure_node_pool_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php deleted file mode 100644 index 8c731da6dff7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest - */ -class DeleteAwsClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the resource. - * @type bool $allow_missing - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * @type string $etag - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php deleted file mode 100644 index 333666be0668..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest - */ -class DeleteAwsNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the node - * pool. - * @type bool $allow_missing - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * @type string $etag - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php deleted file mode 100644 index 926bfcb4f6c8..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAzureClientRequest - */ -class DeleteAzureClientRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - */ - protected $allow_missing = false; - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type bool $allow_missing - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php deleted file mode 100644 index ad770b028af7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest - */ -class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - */ - protected $allow_missing = false; - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - /** - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type bool $allow_missing - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the resource. - * @type string $etag - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php deleted file mode 100644 index 4c7e541bd178..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest - */ -class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the node - * pool. - * @type bool $allow_missing - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * @type string $etag - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php deleted file mode 100644 index ddc8d53d7ae1..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php +++ /dev/null @@ -1,131 +0,0 @@ -google.cloud.gkemulticloud.v1.Fleet - */ -class Fleet extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Fleet host project where this cluster will be - * registered. - * Project names are formatted as - * `projects/`. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project = ''; - /** - * Output only. The name of the managed Hub Membership resource associated to - * this cluster. - * Membership names are formatted as - * `projects//locations/global/membership/`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $membership = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project - * Required. The name of the Fleet host project where this cluster will be - * registered. - * Project names are formatted as - * `projects/`. - * @type string $membership - * Output only. The name of the managed Hub Membership resource associated to - * this cluster. - * Membership names are formatted as - * `projects//locations/global/membership/`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Fleet host project where this cluster will be - * registered. - * Project names are formatted as - * `projects/`. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Required. The name of the Fleet host project where this cluster will be - * registered. - * Project names are formatted as - * `projects/`. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. The name of the managed Hub Membership resource associated to - * this cluster. - * Membership names are formatted as - * `projects//locations/global/membership/`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMembership() - { - return $this->membership; - } - - /** - * Output only. The name of the managed Hub Membership resource associated to - * this cluster. - * Membership names are formatted as - * `projects//locations/global/membership/`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkString($var, True); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php deleted file mode 100644 index d3d109e81257..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest - */ -class GenerateAwsAccessTokenRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $aws_cluster = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $aws_cluster - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAwsCluster() - { - return $this->aws_cluster; - } - - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAwsCluster($var) - { - GPBUtil::checkString($var, True); - $this->aws_cluster = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php deleted file mode 100644 index 35f1695ffc34..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse - */ -class GenerateAwsAccessTokenResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $access_token = ''; - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $access_token - * Output only. Access token to authenticate to k8s api-server. - * @type \Google\Protobuf\Timestamp $expiration_time - * Output only. Timestamp at which the token will expire. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAccessToken($var) - { - GPBUtil::checkString($var, True); - $this->access_token = $var; - - return $this; - } - - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php deleted file mode 100644 index f655c348d217..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest - */ -class GenerateAzureAccessTokenRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $azure_cluster = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $azure_cluster - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAzureCluster() - { - return $this->azure_cluster; - } - - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAzureCluster($var) - { - GPBUtil::checkString($var, True); - $this->azure_cluster = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php deleted file mode 100644 index 4371394919c5..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse - */ -class GenerateAzureAccessTokenResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $access_token = ''; - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $access_token - * Output only. Access token to authenticate to k8s api-server. - * @type \Google\Protobuf\Timestamp $expiration_time - * Output only. Timestamp at which the token will expire. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAccessToken($var) - { - GPBUtil::checkString($var, True); - $this->access_token = $var; - - return $this; - } - - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php deleted file mode 100644 index c1bdee5e88d9..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAwsClusterRequest - */ -class GetAwsClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php deleted file mode 100644 index 080416baaf93..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest - */ -class GetAwsNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php deleted file mode 100644 index e8b728cd3e58..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest - */ -class GetAwsServerConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php deleted file mode 100644 index 87a4874bbe65..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php +++ /dev/null @@ -1,95 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAzureClientRequest - */ -class GetAzureClientRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php deleted file mode 100644 index fc806adc7c00..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAzureClusterRequest - */ -class GetAzureClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php deleted file mode 100644 index feb41baef9dc..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest - */ -class GetAzureNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php deleted file mode 100644 index c46bc07a1d07..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest - */ -class GetAzureServerConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php deleted file mode 100644 index fcaa4e64925f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAwsClustersRequest - */ -class ListAwsClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php deleted file mode 100644 index ee30c0f40089..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAwsClustersResponse - */ -class ListAwsClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; - */ - private $aws_clusters; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $aws_clusters - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * in the specified GCP project and region region. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAwsClusters() - { - return $this->aws_clusters; - } - - /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAwsClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); - $this->aws_clusters = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php deleted file mode 100644 index 5859e1a2c927..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest - */ -class ListAwsNodePoolsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php deleted file mode 100644 index e6a681467d5a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse - */ -class ListAwsNodePoolsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources in the specified `AwsCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; - */ - private $aws_node_pools; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $aws_node_pools - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources in the specified `AwsCluster`. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources in the specified `AwsCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAwsNodePools() - { - return $this->aws_node_pools; - } - - /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources in the specified `AwsCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAwsNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); - $this->aws_node_pools = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php deleted file mode 100644 index e858bc67dc6b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureClientsRequest - */ -class ListAzureClientsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php deleted file mode 100644 index 6ec3fccc2c48..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureClientsResponse - */ -class ListAzureClientsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources in the specified Google Cloud project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; - */ - private $azure_clients; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $azure_clients - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources in the specified Google Cloud project and region region. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources in the specified Google Cloud project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAzureClients() - { - return $this->azure_clients; - } - - /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources in the specified Google Cloud project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAzureClients($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClient::class); - $this->azure_clients = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php deleted file mode 100644 index a90572b91bd4..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureClustersRequest - */ -class ListAzureClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php deleted file mode 100644 index a7e8c5a90da8..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureClustersResponse - */ -class ListAzureClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; - */ - private $azure_clusters; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $azure_clusters - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources in the specified GCP project and region region. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAzureClusters() - { - return $this->azure_clusters; - } - - /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAzureClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); - $this->azure_clusters = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php deleted file mode 100644 index 6509d98fdacc..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest - */ -class ListAzureNodePoolsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php deleted file mode 100644 index dba3b96d705d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse - */ -class ListAzureNodePoolsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources in the specified `AzureCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; - */ - private $azure_node_pools; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $azure_node_pools - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources in the specified `AzureCluster`. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources in the specified `AzureCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAzureNodePools() - { - return $this->azure_node_pools; - } - - /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources in the specified `AzureCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAzureNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); - $this->azure_node_pools = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php deleted file mode 100644 index 422fc56a7d5e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.LoggingComponentConfig - */ -class LoggingComponentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The components to be enabled. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; - */ - private $enable_components; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components - * The components to be enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * The components to be enabled. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnableComponents() - { - return $this->enable_components; - } - - /** - * The components to be enabled. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnableComponents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig\Component::class); - $this->enable_components = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php deleted file mode 100644 index 7bbb2b8b88ac..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component - */ -class Component -{ - /** - * No component is specified - * - * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; - */ - const COMPONENT_UNSPECIFIED = 0; - /** - * This indicates that system logging components is enabled. - * - * Generated from protobuf enum SYSTEM_COMPONENTS = 1; - */ - const SYSTEM_COMPONENTS = 1; - /** - * This indicates that user workload logging component is enabled. - * - * Generated from protobuf enum WORKLOADS = 2; - */ - const WORKLOADS = 2; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::WORKLOADS => 'WORKLOADS', - ]; - - 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(Component::class, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig_Component::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php deleted file mode 100644 index 3d7fd5da3767..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.LoggingConfig - */ -class LoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The configuration of the logging components; - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; - */ - protected $component_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $component_config - * The configuration of the logging components; - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * The configuration of the logging components; - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; - * @return \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig|null - */ - public function getComponentConfig() - { - return $this->component_config; - } - - public function hasComponentConfig() - { - return isset($this->component_config); - } - - public function clearComponentConfig() - { - unset($this->component_config); - } - - /** - * The configuration of the logging components; - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; - * @param \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $var - * @return $this - */ - public function setComponentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig::class); - $this->component_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php deleted file mode 100644 index abbd020c984a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.MaxPodsConstraint - */ -class MaxPodsConstraint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The maximum number of pods to schedule on a single node. - * - * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_pods_per_node = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_pods_per_node - * Required. The maximum number of pods to schedule on a single node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The maximum number of pods to schedule on a single node. - * - * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getMaxPodsPerNode() - { - return $this->max_pods_per_node; - } - - /** - * Required. The maximum number of pods to schedule on a single node. - * - * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setMaxPodsPerNode($var) - { - GPBUtil::checkInt64($var); - $this->max_pods_per_node = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php deleted file mode 100644 index 3008c9dd75ef..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.gkemulticloud.v1.NodeTaint - */ -class NodeTaint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Key for the taint. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key = ''; - /** - * Required. Value for the taint. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Required. The taint effect. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $effect = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Required. Key for the taint. - * @type string $value - * Required. Value for the taint. - * @type int $effect - * Required. The taint effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Key for the taint. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Required. Key for the taint. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Required. Value for the taint. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. Value for the taint. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Required. The taint effect. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEffect() - { - return $this->effect; - } - - /** - * Required. The taint effect. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEffect($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\NodeTaint\Effect::class); - $this->effect = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php deleted file mode 100644 index e91ecf54c3c1..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.gkemulticloud.v1.NodeTaint.Effect - */ -class Effect -{ - /** - * Not set. - * - * Generated from protobuf enum EFFECT_UNSPECIFIED = 0; - */ - const EFFECT_UNSPECIFIED = 0; - /** - * Do not allow new pods to schedule onto the node unless they tolerate the - * taint, but allow all pods submitted to Kubelet without going through the - * scheduler to start, and allow all already-running pods to continue - * running. Enforced by the scheduler. - * - * Generated from protobuf enum NO_SCHEDULE = 1; - */ - const NO_SCHEDULE = 1; - /** - * Like TaintEffectNoSchedule, but the scheduler tries not to schedule - * new pods onto the node, rather than prohibiting new pods from scheduling - * onto the node entirely. Enforced by the scheduler. - * - * Generated from protobuf enum PREFER_NO_SCHEDULE = 2; - */ - const PREFER_NO_SCHEDULE = 2; - /** - * Evict any already-running pods that do not tolerate the taint. - * Currently enforced by NodeController. - * - * Generated from protobuf enum NO_EXECUTE = 3; - */ - const NO_EXECUTE = 3; - - private static $valueToName = [ - self::EFFECT_UNSPECIFIED => 'EFFECT_UNSPECIFIED', - self::NO_SCHEDULE => 'NO_SCHEDULE', - self::PREFER_NO_SCHEDULE => 'PREFER_NO_SCHEDULE', - self::NO_EXECUTE => 'NO_EXECUTE', - ]; - - 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(Effect::class, \Google\Cloud\GkeMultiCloud\V1\NodeTaint_Effect::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php deleted file mode 100644 index efd070529c2b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time at which this operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this operation was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The name of the resource associated to this operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_detail = ''; - /** - * Output only. Human-readable status of any error that occurred during the - * operation. - * - * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_detail = ''; - /** - * Output only. The verb associated with the API method which triggered this - * operation. Possible values are "create", "delete", "update" and "import". - * - * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Identifies whether it has been requested cancellation - * for the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time at which this operation was completed. - * @type string $target - * Output only. The name of the resource associated to this operation. - * @type string $status_detail - * Output only. Human-readable status of the operation, if any. - * @type string $error_detail - * Output only. Human-readable status of any error that occurred during the - * operation. - * @type string $verb - * Output only. The verb associated with the API method which triggered this - * operation. Possible values are "create", "delete", "update" and "import". - * @type bool $requested_cancellation - * Output only. Identifies whether it has been requested cancellation - * for the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time at which this operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 at which this operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 at which this operation was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. The time at which this operation was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The name of the resource associated to this operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. The name of the resource associated to this operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusDetail() - { - return $this->status_detail; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusDetail($var) - { - GPBUtil::checkString($var, True); - $this->status_detail = $var; - - return $this; - } - - /** - * Output only. Human-readable status of any error that occurred during the - * operation. - * - * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getErrorDetail() - { - return $this->error_detail; - } - - /** - * Output only. Human-readable status of any error that occurred during the - * operation. - * - * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setErrorDetail($var) - { - GPBUtil::checkString($var, True); - $this->error_detail = $var; - - return $this; - } - - /** - * Output only. The verb associated with the API method which triggered this - * operation. Possible values are "create", "delete", "update" and "import". - * - * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. The verb associated with the API method which triggered this - * operation. Possible values are "create", "delete", "update" and "import". - * - * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Identifies whether it has been requested cancellation - * for the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether it has been requested cancellation - * for the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php deleted file mode 100644 index c78be2466d12..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.gkemulticloud.v1.ReplicaPlacement - */ -class ReplicaPlacement extends \Google\Protobuf\Internal\Message -{ - /** - * Required. For a given replica, the ARM ID of the subnet where the control - * plane VM is deployed. Make sure it's a subnet under the virtual network in - * the cluster configuration. - * - * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet_id = ''; - /** - * Required. For a given replica, the Azure availability zone where to - * provision the control plane VM and the ETCD disk. - * - * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_availability_zone = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnet_id - * Required. For a given replica, the ARM ID of the subnet where the control - * plane VM is deployed. Make sure it's a subnet under the virtual network in - * the cluster configuration. - * @type string $azure_availability_zone - * Required. For a given replica, the Azure availability zone where to - * provision the control plane VM and the ETCD disk. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. For a given replica, the ARM ID of the subnet where the control - * plane VM is deployed. Make sure it's a subnet under the virtual network in - * the cluster configuration. - * - * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Required. For a given replica, the ARM ID of the subnet where the control - * plane VM is deployed. Make sure it's a subnet under the virtual network in - * the cluster configuration. - * - * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Required. For a given replica, the Azure availability zone where to - * provision the control plane VM and the ETCD disk. - * - * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureAvailabilityZone() - { - return $this->azure_availability_zone; - } - - /** - * Required. For a given replica, the Azure availability zone where to - * provision the control plane VM and the ETCD disk. - * - * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureAvailabilityZone($var) - { - GPBUtil::checkString($var, True); - $this->azure_availability_zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php deleted file mode 100644 index 56f049ee89a7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php +++ /dev/null @@ -1,259 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest - */ -class UpdateAwsClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_cluster = null; - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * @type bool $validate_only - * If set, only validate the request, but do not actually update the cluster. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null - */ - public function getAwsCluster() - { - return $this->aws_cluster; - } - - public function hasAwsCluster() - { - return isset($this->aws_cluster); - } - - public function clearAwsCluster() - { - unset($this->aws_cluster); - } - - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var - * @return $this - */ - public function setAwsCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); - $this->aws_cluster = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php deleted file mode 100644 index bd09a5cc4266..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest - */ -class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_node_pool = null; - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * @type bool $validate_only - * If set, only validate the request, but don't actually update the node pool. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null - */ - public function getAwsNodePool() - { - return $this->aws_node_pool; - } - - public function hasAwsNodePool() - { - return isset($this->aws_node_pool); - } - - public function clearAwsNodePool() - { - unset($this->aws_node_pool); - } - - /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var - * @return $this - */ - public function setAwsNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); - $this->aws_node_pool = $var; - - return $this; - } - - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php deleted file mode 100644 index 9c178a6e74a0..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php +++ /dev/null @@ -1,219 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest - */ -class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_cluster = null; - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * @type bool $validate_only - * If set, only validate the request, but do not actually update the cluster. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null - */ - public function getAzureCluster() - { - return $this->azure_cluster; - } - - public function hasAzureCluster() - { - return isset($this->azure_cluster); - } - - public function clearAzureCluster() - { - unset($this->azure_cluster); - } - - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var - * @return $this - */ - public function setAzureCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); - $this->azure_cluster = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php deleted file mode 100644 index 4124d7d763ad..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php +++ /dev/null @@ -1,187 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest - */ -class UpdateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_node_pool = null; - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * @type bool $validate_only - * If set, only validate the request, but don't actually update the node pool. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null - */ - public function getAzureNodePool() - { - return $this->azure_node_pool; - } - - public function hasAzureNodePool() - { - return isset($this->azure_node_pool); - } - - public function clearAzureNodePool() - { - unset($this->azure_node_pool); - } - - /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var - * @return $this - */ - public function setAzureNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); - $this->azure_node_pool = $var; - - return $this; - } - - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php deleted file mode 100644 index 261f7d8542a3..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.gkemulticloud.v1.WorkloadIdentityConfig - */ -class WorkloadIdentityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The OIDC issuer URL for this cluster. - * - * Generated from protobuf field string issuer_uri = 1; - */ - protected $issuer_uri = ''; - /** - * The Workload Identity Pool associated to the cluster. - * - * Generated from protobuf field string workload_pool = 2; - */ - protected $workload_pool = ''; - /** - * The ID of the OIDC Identity Provider (IdP) associated to the Workload - * Identity Pool. - * - * Generated from protobuf field string identity_provider = 3; - */ - protected $identity_provider = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $issuer_uri - * The OIDC issuer URL for this cluster. - * @type string $workload_pool - * The Workload Identity Pool associated to the cluster. - * @type string $identity_provider - * The ID of the OIDC Identity Provider (IdP) associated to the Workload - * Identity Pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * The OIDC issuer URL for this cluster. - * - * Generated from protobuf field string issuer_uri = 1; - * @return string - */ - public function getIssuerUri() - { - return $this->issuer_uri; - } - - /** - * The OIDC issuer URL for this cluster. - * - * Generated from protobuf field string issuer_uri = 1; - * @param string $var - * @return $this - */ - public function setIssuerUri($var) - { - GPBUtil::checkString($var, True); - $this->issuer_uri = $var; - - return $this; - } - - /** - * The Workload Identity Pool associated to the cluster. - * - * Generated from protobuf field string workload_pool = 2; - * @return string - */ - public function getWorkloadPool() - { - return $this->workload_pool; - } - - /** - * The Workload Identity Pool associated to the cluster. - * - * Generated from protobuf field string workload_pool = 2; - * @param string $var - * @return $this - */ - public function setWorkloadPool($var) - { - GPBUtil::checkString($var, True); - $this->workload_pool = $var; - - return $this; - } - - /** - * The ID of the OIDC Identity Provider (IdP) associated to the Workload - * Identity Pool. - * - * Generated from protobuf field string identity_provider = 3; - * @return string - */ - public function getIdentityProvider() - { - return $this->identity_provider; - } - - /** - * The ID of the OIDC Identity Provider (IdP) associated to the Workload - * Identity Pool. - * - * Generated from protobuf field string identity_provider = 3; - * @param string $var - * @return $this - */ - public function setIdentityProvider($var) - { - GPBUtil::checkString($var, True); - $this->identity_provider = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php deleted file mode 100644 index 499c96199bd4..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php +++ /dev/null @@ -1,224 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::locationName()} for help formatting this field. - * @param string $awsClusterNetworkingVpcId The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * - * This field cannot be changed after creation. - * @param string $awsClusterNetworkingPodAddressCidrBlocksElement All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * @param string $awsClusterNetworkingServiceAddressCidrBlocksElement All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * @param string $awsClusterAwsRegion The AWS region where the cluster runs. - * - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * @param string $awsClusterControlPlaneVersion The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @param string $awsClusterControlPlaneSubnetIdsElement The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * @param string $awsClusterControlPlaneIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * @param string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt cluster secrets. - * @param string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * @param string $awsClusterControlPlaneConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. - * @param string $awsClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. - * @param string $awsClusterFleetProject The name of the Fleet host project where this cluster will be - * registered. - * - * Project names are formatted as - * `projects/`. - * @param string $awsClusterId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_aws_cluster_sample( - string $formattedParent, - string $awsClusterNetworkingVpcId, - string $awsClusterNetworkingPodAddressCidrBlocksElement, - string $awsClusterNetworkingServiceAddressCidrBlocksElement, - string $awsClusterAwsRegion, - string $awsClusterControlPlaneVersion, - string $awsClusterControlPlaneSubnetIdsElement, - string $awsClusterControlPlaneIamInstanceProfile, - string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, - string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, - string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - string $awsClusterAuthorizationAdminUsersUsername, - string $awsClusterFleetProject, - string $awsClusterId -): void { - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $awsClusterNetworkingPodAddressCidrBlocks = [$awsClusterNetworkingPodAddressCidrBlocksElement,]; - $awsClusterNetworkingServiceAddressCidrBlocks = [ - $awsClusterNetworkingServiceAddressCidrBlocksElement, - ]; - $awsClusterNetworking = (new AwsClusterNetworking()) - ->setVpcId($awsClusterNetworkingVpcId) - ->setPodAddressCidrBlocks($awsClusterNetworkingPodAddressCidrBlocks) - ->setServiceAddressCidrBlocks($awsClusterNetworkingServiceAddressCidrBlocks); - $awsClusterControlPlaneSubnetIds = [$awsClusterControlPlaneSubnetIdsElement,]; - $awsClusterControlPlaneDatabaseEncryption = (new AwsDatabaseEncryption()) - ->setKmsKeyArn($awsClusterControlPlaneDatabaseEncryptionKmsKeyArn); - $awsClusterControlPlaneAwsServicesAuthentication = (new AwsServicesAuthentication()) - ->setRoleArn($awsClusterControlPlaneAwsServicesAuthenticationRoleArn); - $awsClusterControlPlaneConfigEncryption = (new AwsConfigEncryption()) - ->setKmsKeyArn($awsClusterControlPlaneConfigEncryptionKmsKeyArn); - $awsClusterControlPlane = (new AwsControlPlane()) - ->setVersion($awsClusterControlPlaneVersion) - ->setSubnetIds($awsClusterControlPlaneSubnetIds) - ->setIamInstanceProfile($awsClusterControlPlaneIamInstanceProfile) - ->setDatabaseEncryption($awsClusterControlPlaneDatabaseEncryption) - ->setAwsServicesAuthentication($awsClusterControlPlaneAwsServicesAuthentication) - ->setConfigEncryption($awsClusterControlPlaneConfigEncryption); - $awsClusterUser = (new AwsClusterUser()) - ->setUsername($awsClusterAuthorizationAdminUsersUsername); - $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; - $awsClusterAuthorization = (new AwsAuthorization()) - ->setAdminUsers($awsClusterAuthorizationAdminUsers); - $awsClusterFleet = (new Fleet()) - ->setProject($awsClusterFleetProject); - $awsCluster = (new AwsCluster()) - ->setNetworking($awsClusterNetworking) - ->setAwsRegion($awsClusterAwsRegion) - ->setControlPlane($awsClusterControlPlane) - ->setAuthorization($awsClusterAuthorization) - ->setFleet($awsClusterFleet); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AwsCluster $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 = AwsClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $awsClusterNetworkingVpcId = '[VPC_ID]'; - $awsClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; - $awsClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; - $awsClusterAwsRegion = '[AWS_REGION]'; - $awsClusterControlPlaneVersion = '[VERSION]'; - $awsClusterControlPlaneSubnetIdsElement = '[SUBNET_IDS]'; - $awsClusterControlPlaneIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; - $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; - $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; - $awsClusterFleetProject = '[PROJECT]'; - $awsClusterId = '[AWS_CLUSTER_ID]'; - - create_aws_cluster_sample( - $formattedParent, - $awsClusterNetworkingVpcId, - $awsClusterNetworkingPodAddressCidrBlocksElement, - $awsClusterNetworkingServiceAddressCidrBlocksElement, - $awsClusterAwsRegion, - $awsClusterControlPlaneVersion, - $awsClusterControlPlaneSubnetIdsElement, - $awsClusterControlPlaneIamInstanceProfile, - $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, - $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, - $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - $awsClusterAuthorizationAdminUsersUsername, - $awsClusterFleetProject, - $awsClusterId - ); -} -// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php deleted file mode 100644 index b97d31d03933..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php +++ /dev/null @@ -1,163 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - * @param string $awsNodePoolVersion The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * @param string $awsNodePoolConfigConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. - * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * @param int $awsNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * @param string $awsNodePoolSubnetId The subnet where the node pool node run. - * @param int $awsNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. - * @param string $awsNodePoolId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_aws_node_pool_sample( - string $formattedParent, - string $awsNodePoolVersion, - string $awsNodePoolConfigIamInstanceProfile, - string $awsNodePoolConfigConfigEncryptionKmsKeyArn, - int $awsNodePoolAutoscalingMinNodeCount, - int $awsNodePoolAutoscalingMaxNodeCount, - string $awsNodePoolSubnetId, - int $awsNodePoolMaxPodsConstraintMaxPodsPerNode, - string $awsNodePoolId -): void { - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $awsNodePoolConfigConfigEncryption = (new AwsConfigEncryption()) - ->setKmsKeyArn($awsNodePoolConfigConfigEncryptionKmsKeyArn); - $awsNodePoolConfig = (new AwsNodeConfig()) - ->setIamInstanceProfile($awsNodePoolConfigIamInstanceProfile) - ->setConfigEncryption($awsNodePoolConfigConfigEncryption); - $awsNodePoolAutoscaling = (new AwsNodePoolAutoscaling()) - ->setMinNodeCount($awsNodePoolAutoscalingMinNodeCount) - ->setMaxNodeCount($awsNodePoolAutoscalingMaxNodeCount); - $awsNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) - ->setMaxPodsPerNode($awsNodePoolMaxPodsConstraintMaxPodsPerNode); - $awsNodePool = (new AwsNodePool()) - ->setVersion($awsNodePoolVersion) - ->setConfig($awsNodePoolConfig) - ->setAutoscaling($awsNodePoolAutoscaling) - ->setSubnetId($awsNodePoolSubnetId) - ->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AwsNodePool $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $awsNodePoolVersion = '[VERSION]'; - $awsNodePoolConfigIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; - $awsNodePoolConfigConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsNodePoolAutoscalingMinNodeCount = 0; - $awsNodePoolAutoscalingMaxNodeCount = 0; - $awsNodePoolSubnetId = '[SUBNET_ID]'; - $awsNodePoolMaxPodsConstraintMaxPodsPerNode = 0; - $awsNodePoolId = '[AWS_NODE_POOL_ID]'; - - create_aws_node_pool_sample( - $formattedParent, - $awsNodePoolVersion, - $awsNodePoolConfigIamInstanceProfile, - $awsNodePoolConfigConfigEncryptionKmsKeyArn, - $awsNodePoolAutoscalingMinNodeCount, - $awsNodePoolAutoscalingMaxNodeCount, - $awsNodePoolSubnetId, - $awsNodePoolMaxPodsConstraintMaxPodsPerNode, - $awsNodePoolId - ); -} -// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php deleted file mode 100644 index 90d9d3279498..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php +++ /dev/null @@ -1,90 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - */ -function delete_aws_cluster_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->deleteAwsCluster($formattedName); - $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - - delete_aws_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php deleted file mode 100644 index 79fe862ddb01..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php +++ /dev/null @@ -1,92 +0,0 @@ -/locations//awsClusters//awsNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsNodePoolName()} for help formatting this field. - */ -function delete_aws_node_pool_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->deleteAwsNodePool($formattedName); - $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 = AwsClustersClient::awsNodePoolName( - '[PROJECT]', - '[LOCATION]', - '[AWS_CLUSTER]', - '[AWS_NODE_POOL]' - ); - - delete_aws_node_pool_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php deleted file mode 100644 index 107c79ee7022..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php +++ /dev/null @@ -1,79 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - */ -function generate_aws_access_token_sample(string $formattedAwsCluster): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var GenerateAwsAccessTokenResponse $response */ - $response = $awsClustersClient->generateAwsAccessToken($formattedAwsCluster); - 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 -{ - $formattedAwsCluster = AwsClustersClient::awsClusterName( - '[PROJECT]', - '[LOCATION]', - '[AWS_CLUSTER]' - ); - - generate_aws_access_token_sample($formattedAwsCluster); -} -// [END gkemulticloud_v1_generated_AwsClusters_GenerateAwsAccessToken_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php deleted file mode 100644 index 8da5624ce66e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php +++ /dev/null @@ -1,75 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - */ -function get_aws_cluster_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AwsCluster $response */ - $response = $awsClustersClient->getAwsCluster($formattedName); - 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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - - get_aws_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_GetAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php deleted file mode 100644 index fb17d2ab126c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php +++ /dev/null @@ -1,80 +0,0 @@ -/locations//awsClusters//awsNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsNodePoolName()} for help formatting this field. - */ -function get_aws_node_pool_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AwsNodePool $response */ - $response = $awsClustersClient->getAwsNodePool($formattedName); - 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 = AwsClustersClient::awsNodePoolName( - '[PROJECT]', - '[LOCATION]', - '[AWS_CLUSTER]', - '[AWS_NODE_POOL]' - ); - - get_aws_node_pool_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_GetAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php deleted file mode 100644 index 9db146ac3794..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php +++ /dev/null @@ -1,75 +0,0 @@ -/locations//awsServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsServerConfigName()} for help formatting this field. - */ -function get_aws_server_config_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AwsServerConfig $response */ - $response = $awsClustersClient->getAwsServerConfig($formattedName); - 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 = AwsClustersClient::awsServerConfigName('[PROJECT]', '[LOCATION]'); - - get_aws_server_config_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_GetAwsServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php deleted file mode 100644 index ee79000863e6..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php +++ /dev/null @@ -1,78 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AwsClustersClient::locationName()} for help formatting this field. - */ -function list_aws_clusters_sample(string $formattedParent): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $awsClustersClient->listAwsClusters($formattedParent); - - /** @var AwsCluster $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 = AwsClustersClient::locationName('[PROJECT]', '[LOCATION]'); - - list_aws_clusters_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AwsClusters_ListAwsClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php deleted file mode 100644 index 0da606e94859..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php +++ /dev/null @@ -1,80 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - */ -function list_aws_node_pools_sample(string $formattedParent): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $awsClustersClient->listAwsNodePools($formattedParent); - - /** @var AwsNodePool $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - - list_aws_node_pools_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AwsClusters_ListAwsNodePools_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php deleted file mode 100644 index ee96b446dede..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php +++ /dev/null @@ -1,197 +0,0 @@ -`. - */ -function update_aws_cluster_sample( - string $awsClusterNetworkingVpcId, - string $awsClusterNetworkingPodAddressCidrBlocksElement, - string $awsClusterNetworkingServiceAddressCidrBlocksElement, - string $awsClusterAwsRegion, - string $awsClusterControlPlaneVersion, - string $awsClusterControlPlaneSubnetIdsElement, - string $awsClusterControlPlaneIamInstanceProfile, - string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, - string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, - string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - string $awsClusterAuthorizationAdminUsersUsername, - string $awsClusterFleetProject -): void { - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $awsClusterNetworkingPodAddressCidrBlocks = [$awsClusterNetworkingPodAddressCidrBlocksElement,]; - $awsClusterNetworkingServiceAddressCidrBlocks = [ - $awsClusterNetworkingServiceAddressCidrBlocksElement, - ]; - $awsClusterNetworking = (new AwsClusterNetworking()) - ->setVpcId($awsClusterNetworkingVpcId) - ->setPodAddressCidrBlocks($awsClusterNetworkingPodAddressCidrBlocks) - ->setServiceAddressCidrBlocks($awsClusterNetworkingServiceAddressCidrBlocks); - $awsClusterControlPlaneSubnetIds = [$awsClusterControlPlaneSubnetIdsElement,]; - $awsClusterControlPlaneDatabaseEncryption = (new AwsDatabaseEncryption()) - ->setKmsKeyArn($awsClusterControlPlaneDatabaseEncryptionKmsKeyArn); - $awsClusterControlPlaneAwsServicesAuthentication = (new AwsServicesAuthentication()) - ->setRoleArn($awsClusterControlPlaneAwsServicesAuthenticationRoleArn); - $awsClusterControlPlaneConfigEncryption = (new AwsConfigEncryption()) - ->setKmsKeyArn($awsClusterControlPlaneConfigEncryptionKmsKeyArn); - $awsClusterControlPlane = (new AwsControlPlane()) - ->setVersion($awsClusterControlPlaneVersion) - ->setSubnetIds($awsClusterControlPlaneSubnetIds) - ->setIamInstanceProfile($awsClusterControlPlaneIamInstanceProfile) - ->setDatabaseEncryption($awsClusterControlPlaneDatabaseEncryption) - ->setAwsServicesAuthentication($awsClusterControlPlaneAwsServicesAuthentication) - ->setConfigEncryption($awsClusterControlPlaneConfigEncryption); - $awsClusterUser = (new AwsClusterUser()) - ->setUsername($awsClusterAuthorizationAdminUsersUsername); - $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; - $awsClusterAuthorization = (new AwsAuthorization()) - ->setAdminUsers($awsClusterAuthorizationAdminUsers); - $awsClusterFleet = (new Fleet()) - ->setProject($awsClusterFleetProject); - $awsCluster = (new AwsCluster()) - ->setNetworking($awsClusterNetworking) - ->setAwsRegion($awsClusterAwsRegion) - ->setControlPlane($awsClusterControlPlane) - ->setAuthorization($awsClusterAuthorization) - ->setFleet($awsClusterFleet); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AwsCluster $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 -{ - $awsClusterNetworkingVpcId = '[VPC_ID]'; - $awsClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; - $awsClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; - $awsClusterAwsRegion = '[AWS_REGION]'; - $awsClusterControlPlaneVersion = '[VERSION]'; - $awsClusterControlPlaneSubnetIdsElement = '[SUBNET_IDS]'; - $awsClusterControlPlaneIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; - $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; - $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; - $awsClusterFleetProject = '[PROJECT]'; - - update_aws_cluster_sample( - $awsClusterNetworkingVpcId, - $awsClusterNetworkingPodAddressCidrBlocksElement, - $awsClusterNetworkingServiceAddressCidrBlocksElement, - $awsClusterAwsRegion, - $awsClusterControlPlaneVersion, - $awsClusterControlPlaneSubnetIdsElement, - $awsClusterControlPlaneIamInstanceProfile, - $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, - $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, - $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - $awsClusterAuthorizationAdminUsersUsername, - $awsClusterFleetProject - ); -} -// [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php deleted file mode 100644 index e17d2dfdf42c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php +++ /dev/null @@ -1,136 +0,0 @@ -setKmsKeyArn($awsNodePoolConfigConfigEncryptionKmsKeyArn); - $awsNodePoolConfig = (new AwsNodeConfig()) - ->setIamInstanceProfile($awsNodePoolConfigIamInstanceProfile) - ->setConfigEncryption($awsNodePoolConfigConfigEncryption); - $awsNodePoolAutoscaling = (new AwsNodePoolAutoscaling()) - ->setMinNodeCount($awsNodePoolAutoscalingMinNodeCount) - ->setMaxNodeCount($awsNodePoolAutoscalingMaxNodeCount); - $awsNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) - ->setMaxPodsPerNode($awsNodePoolMaxPodsConstraintMaxPodsPerNode); - $awsNodePool = (new AwsNodePool()) - ->setVersion($awsNodePoolVersion) - ->setConfig($awsNodePoolConfig) - ->setAutoscaling($awsNodePoolAutoscaling) - ->setSubnetId($awsNodePoolSubnetId) - ->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AwsNodePool $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 -{ - $awsNodePoolVersion = '[VERSION]'; - $awsNodePoolConfigIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; - $awsNodePoolConfigConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsNodePoolAutoscalingMinNodeCount = 0; - $awsNodePoolAutoscalingMaxNodeCount = 0; - $awsNodePoolSubnetId = '[SUBNET_ID]'; - $awsNodePoolMaxPodsConstraintMaxPodsPerNode = 0; - - update_aws_node_pool_sample( - $awsNodePoolVersion, - $awsNodePoolConfigIamInstanceProfile, - $awsNodePoolConfigConfigEncryptionKmsKeyArn, - $awsNodePoolAutoscalingMinNodeCount, - $awsNodePoolAutoscalingMaxNodeCount, - $awsNodePoolSubnetId, - $awsNodePoolMaxPodsConstraintMaxPodsPerNode - ); -} -// [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php deleted file mode 100644 index b1add7f7bbdd..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php +++ /dev/null @@ -1,122 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::locationName()} for help formatting this field. - * @param string $azureClientTenantId The Azure Active Directory Tenant ID. - * @param string $azureClientApplicationId The Azure Active Directory Application ID. - * @param string $azureClientId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_azure_client_sample( - string $formattedParent, - string $azureClientTenantId, - string $azureClientApplicationId, - string $azureClientId -): void { - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $azureClient = (new AzureClient()) - ->setTenantId($azureClientTenantId) - ->setApplicationId($azureClientApplicationId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureClient $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $azureClientTenantId = '[TENANT_ID]'; - $azureClientApplicationId = '[APPLICATION_ID]'; - $azureClientId = '[AZURE_CLIENT_ID]'; - - create_azure_client_sample( - $formattedParent, - $azureClientTenantId, - $azureClientApplicationId, - $azureClientId - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php deleted file mode 100644 index 54d10e1350d5..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php +++ /dev/null @@ -1,238 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::locationName()} for help formatting this field. - * @param string $azureClusterAzureRegion The Azure region where the cluster runs. - * - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * @param string $azureClusterResourceGroupId The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * @param string $azureClusterAzureClient Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * - * This field cannot be changed after creation. - * @param string $azureClusterNetworkingPodAddressCidrBlocksElement The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * - * This field cannot be changed after creation. - * @param string $azureClusterNetworkingServiceAddressCidrBlocksElement The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * - * This field cannot be changed after creating a cluster. - * @param string $azureClusterControlPlaneVersion The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. - * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be - * registered. - * - * Project names are formatted as - * `projects/`. - * @param string $azureClusterId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_azure_cluster_sample( - string $formattedParent, - string $azureClusterAzureRegion, - string $azureClusterResourceGroupId, - string $azureClusterAzureClient, - string $azureClusterNetworkingVirtualNetworkId, - string $azureClusterNetworkingPodAddressCidrBlocksElement, - string $azureClusterNetworkingServiceAddressCidrBlocksElement, - string $azureClusterControlPlaneVersion, - string $azureClusterControlPlaneSshConfigAuthorizedKey, - string $azureClusterAuthorizationAdminUsersUsername, - string $azureClusterFleetProject, - string $azureClusterId -): void { - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $azureClusterNetworkingPodAddressCidrBlocks = [ - $azureClusterNetworkingPodAddressCidrBlocksElement, - ]; - $azureClusterNetworkingServiceAddressCidrBlocks = [ - $azureClusterNetworkingServiceAddressCidrBlocksElement, - ]; - $azureClusterNetworking = (new AzureClusterNetworking()) - ->setVirtualNetworkId($azureClusterNetworkingVirtualNetworkId) - ->setPodAddressCidrBlocks($azureClusterNetworkingPodAddressCidrBlocks) - ->setServiceAddressCidrBlocks($azureClusterNetworkingServiceAddressCidrBlocks); - $azureClusterControlPlaneSshConfig = (new AzureSshConfig()) - ->setAuthorizedKey($azureClusterControlPlaneSshConfigAuthorizedKey); - $azureClusterControlPlane = (new AzureControlPlane()) - ->setVersion($azureClusterControlPlaneVersion) - ->setSshConfig($azureClusterControlPlaneSshConfig); - $azureClusterUser = (new AzureClusterUser()) - ->setUsername($azureClusterAuthorizationAdminUsersUsername); - $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; - $azureClusterAuthorization = (new AzureAuthorization()) - ->setAdminUsers($azureClusterAuthorizationAdminUsers); - $azureClusterFleet = (new Fleet()) - ->setProject($azureClusterFleetProject); - $azureCluster = (new AzureCluster()) - ->setAzureRegion($azureClusterAzureRegion) - ->setResourceGroupId($azureClusterResourceGroupId) - ->setAzureClient($azureClusterAzureClient) - ->setNetworking($azureClusterNetworking) - ->setControlPlane($azureClusterControlPlane) - ->setAuthorization($azureClusterAuthorization) - ->setFleet($azureClusterFleet); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->createAzureCluster( - $formattedParent, - $azureCluster, - $azureClusterId - ); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureCluster $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $azureClusterAzureRegion = '[AZURE_REGION]'; - $azureClusterResourceGroupId = '[RESOURCE_GROUP_ID]'; - $azureClusterAzureClient = '[AZURE_CLIENT]'; - $azureClusterNetworkingVirtualNetworkId = '[VIRTUAL_NETWORK_ID]'; - $azureClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; - $azureClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; - $azureClusterControlPlaneVersion = '[VERSION]'; - $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; - $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; - $azureClusterFleetProject = '[PROJECT]'; - $azureClusterId = '[AZURE_CLUSTER_ID]'; - - create_azure_cluster_sample( - $formattedParent, - $azureClusterAzureRegion, - $azureClusterResourceGroupId, - $azureClusterAzureClient, - $azureClusterNetworkingVirtualNetworkId, - $azureClusterNetworkingPodAddressCidrBlocksElement, - $azureClusterNetworkingServiceAddressCidrBlocksElement, - $azureClusterControlPlaneVersion, - $azureClusterControlPlaneSshConfigAuthorizedKey, - $azureClusterAuthorizationAdminUsersUsername, - $azureClusterFleetProject, - $azureClusterId - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php deleted file mode 100644 index 037860627c4f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php +++ /dev/null @@ -1,164 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - * @param string $azureNodePoolVersion The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * @param string $azureNodePoolConfigSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * @param string $azureNodePoolSubnetId The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * @param int $azureNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * @param int $azureNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * @param int $azureNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. - * @param string $azureNodePoolId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_azure_node_pool_sample( - string $formattedParent, - string $azureNodePoolVersion, - string $azureNodePoolConfigSshConfigAuthorizedKey, - string $azureNodePoolSubnetId, - int $azureNodePoolAutoscalingMinNodeCount, - int $azureNodePoolAutoscalingMaxNodeCount, - int $azureNodePoolMaxPodsConstraintMaxPodsPerNode, - string $azureNodePoolId -): void { - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $azureNodePoolConfigSshConfig = (new AzureSshConfig()) - ->setAuthorizedKey($azureNodePoolConfigSshConfigAuthorizedKey); - $azureNodePoolConfig = (new AzureNodeConfig()) - ->setSshConfig($azureNodePoolConfigSshConfig); - $azureNodePoolAutoscaling = (new AzureNodePoolAutoscaling()) - ->setMinNodeCount($azureNodePoolAutoscalingMinNodeCount) - ->setMaxNodeCount($azureNodePoolAutoscalingMaxNodeCount); - $azureNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) - ->setMaxPodsPerNode($azureNodePoolMaxPodsConstraintMaxPodsPerNode); - $azureNodePool = (new AzureNodePool()) - ->setVersion($azureNodePoolVersion) - ->setConfig($azureNodePoolConfig) - ->setSubnetId($azureNodePoolSubnetId) - ->setAutoscaling($azureNodePoolAutoscaling) - ->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->createAzureNodePool( - $formattedParent, - $azureNodePool, - $azureNodePoolId - ); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureNodePool $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 = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - $azureNodePoolVersion = '[VERSION]'; - $azureNodePoolConfigSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; - $azureNodePoolSubnetId = '[SUBNET_ID]'; - $azureNodePoolAutoscalingMinNodeCount = 0; - $azureNodePoolAutoscalingMaxNodeCount = 0; - $azureNodePoolMaxPodsConstraintMaxPodsPerNode = 0; - $azureNodePoolId = '[AZURE_NODE_POOL_ID]'; - - create_azure_node_pool_sample( - $formattedParent, - $azureNodePoolVersion, - $azureNodePoolConfigSshConfigAuthorizedKey, - $azureNodePoolSubnetId, - $azureNodePoolAutoscalingMinNodeCount, - $azureNodePoolAutoscalingMaxNodeCount, - $azureNodePoolMaxPodsConstraintMaxPodsPerNode, - $azureNodePoolId - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php deleted file mode 100644 index 03dc723aaa18..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php +++ /dev/null @@ -1,91 +0,0 @@ -/locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClientName()} for help formatting this field. - */ -function delete_azure_client_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->deleteAzureClient($formattedName); - $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 = AzureClustersClient::azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - - delete_azure_client_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php deleted file mode 100644 index 4ecd65b8fa56..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php +++ /dev/null @@ -1,94 +0,0 @@ -/locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - */ -function delete_azure_cluster_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->deleteAzureCluster($formattedName); - $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 = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - - delete_azure_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php deleted file mode 100644 index aff62d100ed7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php +++ /dev/null @@ -1,92 +0,0 @@ -/locations//azureClusters//azureNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureNodePoolName()} for help formatting this field. - */ -function delete_azure_node_pool_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->deleteAzureNodePool($formattedName); - $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 = AzureClustersClient::azureNodePoolName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]', - '[AZURE_NODE_POOL]' - ); - - delete_azure_node_pool_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php deleted file mode 100644 index cfaf60fe58c9..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php +++ /dev/null @@ -1,79 +0,0 @@ -/locations//AzureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - */ -function generate_azure_access_token_sample(string $formattedAzureCluster): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var GenerateAzureAccessTokenResponse $response */ - $response = $azureClustersClient->generateAzureAccessToken($formattedAzureCluster); - 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 -{ - $formattedAzureCluster = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - - generate_azure_access_token_sample($formattedAzureCluster); -} -// [END gkemulticloud_v1_generated_AzureClusters_GenerateAzureAccessToken_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php deleted file mode 100644 index 23be24df6692..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php +++ /dev/null @@ -1,76 +0,0 @@ -/locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClientName()} for help formatting this field. - */ -function get_azure_client_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AzureClient $response */ - $response = $azureClustersClient->getAzureClient($formattedName); - 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 = AzureClustersClient::azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - - get_azure_client_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_GetAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php deleted file mode 100644 index f56f988022c0..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php +++ /dev/null @@ -1,79 +0,0 @@ -/locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - */ -function get_azure_cluster_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AzureCluster $response */ - $response = $azureClustersClient->getAzureCluster($formattedName); - 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 = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - - get_azure_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_GetAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php deleted file mode 100644 index cf546ffefc9d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php +++ /dev/null @@ -1,80 +0,0 @@ -/locations//azureClusters//azureNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureNodePoolName()} for help formatting this field. - */ -function get_azure_node_pool_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AzureNodePool $response */ - $response = $azureClustersClient->getAzureNodePool($formattedName); - 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 = AzureClustersClient::azureNodePoolName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]', - '[AZURE_NODE_POOL]' - ); - - get_azure_node_pool_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_GetAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php deleted file mode 100644 index 1062f5f5739c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php +++ /dev/null @@ -1,75 +0,0 @@ -/locations//azureServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureServerConfigName()} for help formatting this field. - */ -function get_azure_server_config_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AzureServerConfig $response */ - $response = $azureClustersClient->getAzureServerConfig($formattedName); - 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 = AzureClustersClient::azureServerConfigName('[PROJECT]', '[LOCATION]'); - - get_azure_server_config_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_GetAzureServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php deleted file mode 100644 index 3323eb37deb6..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php +++ /dev/null @@ -1,78 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AzureClustersClient::locationName()} for help formatting this field. - */ -function list_azure_clients_sample(string $formattedParent): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $azureClustersClient->listAzureClients($formattedParent); - - /** @var AzureClient $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); - - list_azure_clients_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AzureClusters_ListAzureClients_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php deleted file mode 100644 index 51a3e3c98abd..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php +++ /dev/null @@ -1,78 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AzureClustersClient::locationName()} for help formatting this field. - */ -function list_azure_clusters_sample(string $formattedParent): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $azureClustersClient->listAzureClusters($formattedParent); - - /** @var AzureCluster $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); - - list_azure_clusters_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AzureClusters_ListAzureClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php deleted file mode 100644 index 2c81ebfa2bfa..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php +++ /dev/null @@ -1,84 +0,0 @@ -/locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - */ -function list_azure_node_pools_sample(string $formattedParent): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $azureClustersClient->listAzureNodePools($formattedParent); - - /** @var AzureNodePool $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 = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - - list_azure_node_pools_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AzureClusters_ListAzureNodePools_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php deleted file mode 100644 index 04ae46f44b2b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php +++ /dev/null @@ -1,207 +0,0 @@ -/resourceGroups/` - * @param string $azureClusterAzureClient Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * - * This field cannot be changed after creation. - * @param string $azureClusterNetworkingPodAddressCidrBlocksElement The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * - * This field cannot be changed after creation. - * @param string $azureClusterNetworkingServiceAddressCidrBlocksElement The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * - * This field cannot be changed after creating a cluster. - * @param string $azureClusterControlPlaneVersion The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. - * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be - * registered. - * - * Project names are formatted as - * `projects/`. - */ -function update_azure_cluster_sample( - string $azureClusterAzureRegion, - string $azureClusterResourceGroupId, - string $azureClusterAzureClient, - string $azureClusterNetworkingVirtualNetworkId, - string $azureClusterNetworkingPodAddressCidrBlocksElement, - string $azureClusterNetworkingServiceAddressCidrBlocksElement, - string $azureClusterControlPlaneVersion, - string $azureClusterControlPlaneSshConfigAuthorizedKey, - string $azureClusterAuthorizationAdminUsersUsername, - string $azureClusterFleetProject -): void { - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $azureClusterNetworkingPodAddressCidrBlocks = [ - $azureClusterNetworkingPodAddressCidrBlocksElement, - ]; - $azureClusterNetworkingServiceAddressCidrBlocks = [ - $azureClusterNetworkingServiceAddressCidrBlocksElement, - ]; - $azureClusterNetworking = (new AzureClusterNetworking()) - ->setVirtualNetworkId($azureClusterNetworkingVirtualNetworkId) - ->setPodAddressCidrBlocks($azureClusterNetworkingPodAddressCidrBlocks) - ->setServiceAddressCidrBlocks($azureClusterNetworkingServiceAddressCidrBlocks); - $azureClusterControlPlaneSshConfig = (new AzureSshConfig()) - ->setAuthorizedKey($azureClusterControlPlaneSshConfigAuthorizedKey); - $azureClusterControlPlane = (new AzureControlPlane()) - ->setVersion($azureClusterControlPlaneVersion) - ->setSshConfig($azureClusterControlPlaneSshConfig); - $azureClusterUser = (new AzureClusterUser()) - ->setUsername($azureClusterAuthorizationAdminUsersUsername); - $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; - $azureClusterAuthorization = (new AzureAuthorization()) - ->setAdminUsers($azureClusterAuthorizationAdminUsers); - $azureClusterFleet = (new Fleet()) - ->setProject($azureClusterFleetProject); - $azureCluster = (new AzureCluster()) - ->setAzureRegion($azureClusterAzureRegion) - ->setResourceGroupId($azureClusterResourceGroupId) - ->setAzureClient($azureClusterAzureClient) - ->setNetworking($azureClusterNetworking) - ->setControlPlane($azureClusterControlPlane) - ->setAuthorization($azureClusterAuthorization) - ->setFleet($azureClusterFleet); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureCluster $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 -{ - $azureClusterAzureRegion = '[AZURE_REGION]'; - $azureClusterResourceGroupId = '[RESOURCE_GROUP_ID]'; - $azureClusterAzureClient = '[AZURE_CLIENT]'; - $azureClusterNetworkingVirtualNetworkId = '[VIRTUAL_NETWORK_ID]'; - $azureClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; - $azureClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; - $azureClusterControlPlaneVersion = '[VERSION]'; - $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; - $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; - $azureClusterFleetProject = '[PROJECT]'; - - update_azure_cluster_sample( - $azureClusterAzureRegion, - $azureClusterResourceGroupId, - $azureClusterAzureClient, - $azureClusterNetworkingVirtualNetworkId, - $azureClusterNetworkingPodAddressCidrBlocksElement, - $azureClusterNetworkingServiceAddressCidrBlocksElement, - $azureClusterControlPlaneVersion, - $azureClusterControlPlaneSshConfigAuthorizedKey, - $azureClusterAuthorizationAdminUsersUsername, - $azureClusterFleetProject - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php deleted file mode 100644 index f3ec43e2c263..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php +++ /dev/null @@ -1,129 +0,0 @@ -setAuthorizedKey($azureNodePoolConfigSshConfigAuthorizedKey); - $azureNodePoolConfig = (new AzureNodeConfig()) - ->setSshConfig($azureNodePoolConfigSshConfig); - $azureNodePoolAutoscaling = (new AzureNodePoolAutoscaling()) - ->setMinNodeCount($azureNodePoolAutoscalingMinNodeCount) - ->setMaxNodeCount($azureNodePoolAutoscalingMaxNodeCount); - $azureNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) - ->setMaxPodsPerNode($azureNodePoolMaxPodsConstraintMaxPodsPerNode); - $azureNodePool = (new AzureNodePool()) - ->setVersion($azureNodePoolVersion) - ->setConfig($azureNodePoolConfig) - ->setSubnetId($azureNodePoolSubnetId) - ->setAutoscaling($azureNodePoolAutoscaling) - ->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureNodePool $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 -{ - $azureNodePoolVersion = '[VERSION]'; - $azureNodePoolConfigSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; - $azureNodePoolSubnetId = '[SUBNET_ID]'; - $azureNodePoolAutoscalingMinNodeCount = 0; - $azureNodePoolAutoscalingMaxNodeCount = 0; - $azureNodePoolMaxPodsConstraintMaxPodsPerNode = 0; - - update_azure_node_pool_sample( - $azureNodePoolVersion, - $azureNodePoolConfigSshConfigAuthorizedKey, - $azureNodePoolSubnetId, - $azureNodePoolAutoscalingMinNodeCount, - $azureNodePoolAutoscalingMaxNodeCount, - $azureNodePoolMaxPodsConstraintMaxPodsPerNode - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/AwsClustersClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/AwsClustersClient.php deleted file mode 100644 index 0ff18e6c88e6..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/AwsClustersClient.php +++ /dev/null @@ -1,34 +0,0 @@ -locationName('[PROJECT]', '[LOCATION]'); - * $awsCluster = new AwsCluster(); - * $awsClusterId = 'aws_cluster_id'; - * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - */ -class AwsClustersGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AwsClusters'; - - /** The default address of the service. */ - const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $awsClusterNameTemplate; - - private static $awsNodePoolNameTemplate; - - private static $awsServerConfigNameTemplate; - - private static $locationNameTemplate; - - private static $pathTemplateMap; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/aws_clusters_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/aws_clusters_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/aws_clusters_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/aws_clusters_rest_client_config.php', - ], - ], - ]; - } - - private static function getAwsClusterNameTemplate() - { - if (self::$awsClusterNameTemplate == null) { - self::$awsClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsClusters/{aws_cluster}'); - } - - return self::$awsClusterNameTemplate; - } - - private static function getAwsNodePoolNameTemplate() - { - if (self::$awsNodePoolNameTemplate == null) { - self::$awsNodePoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool}'); - } - - return self::$awsNodePoolNameTemplate; - } - - private static function getAwsServerConfigNameTemplate() - { - if (self::$awsServerConfigNameTemplate == null) { - self::$awsServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsServerConfig'); - } - - return self::$awsServerConfigNameTemplate; - } - - private static function getLocationNameTemplate() - { - if (self::$locationNameTemplate == null) { - self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); - } - - return self::$locationNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'awsCluster' => self::getAwsClusterNameTemplate(), - 'awsNodePool' => self::getAwsNodePoolNameTemplate(), - 'awsServerConfig' => self::getAwsServerConfigNameTemplate(), - 'location' => self::getLocationNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a aws_cluster - * resource. - * - * @param string $project - * @param string $location - * @param string $awsCluster - * - * @return string The formatted aws_cluster resource. - */ - public static function awsClusterName($project, $location, $awsCluster) - { - return self::getAwsClusterNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'aws_cluster' => $awsCluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * aws_node_pool resource. - * - * @param string $project - * @param string $location - * @param string $awsCluster - * @param string $awsNodePool - * - * @return string The formatted aws_node_pool resource. - */ - public static function awsNodePoolName($project, $location, $awsCluster, $awsNodePool) - { - return self::getAwsNodePoolNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'aws_cluster' => $awsCluster, - 'aws_node_pool' => $awsNodePool, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * aws_server_config resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted aws_server_config resource. - */ - public static function awsServerConfigName($project, $location) - { - return self::getAwsServerConfigNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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($project, $location) - { - return self::getLocationNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - awsCluster: projects/{project}/locations/{location}/awsClusters/{aws_cluster} - * - awsNodePool: projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool} - * - awsServerConfig: projects/{project}/locations/{location}/awsServerConfig - * - location: projects/{project}/locations/{location} - * - * 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($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Constructor. - * - * @param array $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 'gkemulticloud.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @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. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** - * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource on a given GCP project and region. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedParent = $awsClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $awsCluster = new AwsCluster(); - * $awsClusterId = 'aws_cluster_id'; - * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AwsCluster $awsCluster Required. The specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * @param string $awsClusterId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAwsCluster($parent, $awsCluster, $awsClusterId, array $optionalArgs = []) - { - $request = new CreateAwsClusterRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAwsCluster($awsCluster); - $request->setAwsClusterId($awsClusterId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], - * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedParent = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * $awsNodePool = new AwsNodePool(); - * $awsNodePoolId = 'aws_node_pool_id'; - * $operationResponse = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AwsNodePool $awsNodePool Required. The specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * @param string $awsNodePoolId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the node - * pool. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAwsNodePool($parent, $awsNodePool, $awsNodePoolId, array $optionalArgs = []) - { - $request = new CreateAwsNodePoolRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAwsNodePool($awsNodePool); - $request->setAwsNodePoolId($awsNodePoolId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource. - * - * Fails if the cluster has one or more associated - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * $operationResponse = $awsClustersClient->deleteAwsCluster($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->deleteAwsCluster($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'deleteAwsCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the resource. - * @type bool $allowMissing - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * - * Useful for idempotent deletion. - * @type string $etag - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAwsCluster($name, array $optionalArgs = []) - { - $request = new DeleteAwsClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - * $operationResponse = $awsClustersClient->deleteAwsNodePool($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->deleteAwsNodePool($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'deleteAwsNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the node - * pool. - * @type bool $allowMissing - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * - * Useful for idempotent deletion. - * @type string $etag - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAwsNodePool($name, array $optionalArgs = []) - { - $request = new DeleteAwsNodePoolRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Generates a short-lived access token to authenticate to a given - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedAwsCluster = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * $response = $awsClustersClient->generateAwsAccessToken($formattedAwsCluster); - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $awsCluster Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse - * - * @throws ApiException if the remote call fails - */ - public function generateAwsAccessToken($awsCluster, array $optionalArgs = []) - { - $request = new GenerateAwsAccessTokenRequest(); - $requestParamHeaders = []; - $request->setAwsCluster($awsCluster); - $requestParamHeaders['aws_cluster'] = $awsCluster; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GenerateAwsAccessToken', GenerateAwsAccessTokenResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * $response = $awsClustersClient->getAwsCluster($formattedName); - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AwsCluster - * - * @throws ApiException if the remote call fails - */ - public function getAwsCluster($name, array $optionalArgs = []) - { - $request = new GetAwsClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAwsCluster', AwsCluster::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - * $response = $awsClustersClient->getAwsNodePool($formattedName); - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AwsNodePool - * - * @throws ApiException if the remote call fails - */ - public function getAwsNodePool($name, array $optionalArgs = []) - { - $request = new GetAwsNodePoolRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAwsNodePool', AwsNodePool::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns information, such as supported AWS regions and Kubernetes - * versions, on a given Google Cloud location. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsServerConfigName('[PROJECT]', '[LOCATION]'); - * $response = $awsClustersClient->getAwsServerConfig($formattedName); - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AwsServerConfig - * - * @throws ApiException if the remote call fails - */ - public function getAwsServerConfig($name, array $optionalArgs = []) - { - $request = new GetAwsServerConfigRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAwsServerConfig', AwsServerConfig::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * on a given Google Cloud project and region. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedParent = $awsClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * // Iterate over pages of elements - * $pagedResponse = $awsClustersClient->listAwsClusters($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $awsClustersClient->listAwsClusters($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAwsClusters($parent, array $optionalArgs = []) - { - $request = new ListAwsClustersRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAwsClusters', $optionalArgs, ListAwsClustersResponse::class, $request); - } - - /** - * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources on a given - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedParent = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * // Iterate over pages of elements - * $pagedResponse = $awsClustersClient->listAwsNodePools($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $awsClustersClient->listAwsNodePools($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAwsNodePools($parent, array $optionalArgs = []) - { - $request = new ListAwsNodePoolsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAwsNodePools', $optionalArgs, ListAwsNodePoolsResponse::class, $request); - } - - /** - * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $awsCluster = new AwsCluster(); - * $updateMask = new FieldMask(); - * $operationResponse = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'updateAwsCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param AwsCluster $awsCluster Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually update the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAwsCluster($awsCluster, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAwsClusterRequest(); - $requestParamHeaders = []; - $request->setAwsCluster($awsCluster); - $request->setUpdateMask($updateMask); - $requestParamHeaders['aws_cluster.name'] = $awsCluster->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $awsNodePool = new AwsNodePool(); - * $updateMask = new FieldMask(); - * $operationResponse = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'updateAwsNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param AwsNodePool $awsNodePool Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but don't actually update the node pool. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAwsNodePool($awsNodePool, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAwsNodePoolRequest(); - $requestParamHeaders = []; - $request->setAwsNodePool($awsNodePool); - $request->setUpdateMask($updateMask); - $requestParamHeaders['aws_node_pool.name'] = $awsNodePool->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php deleted file mode 100644 index 4d34ddd5b376..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php +++ /dev/null @@ -1,1697 +0,0 @@ -locationName('[PROJECT]', '[LOCATION]'); - * $azureClient = new AzureClient(); - * $azureClientId = 'azure_client_id'; - * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureClient'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - */ -class AzureClustersGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AzureClusters'; - - /** The default address of the service. */ - const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $azureClientNameTemplate; - - private static $azureClusterNameTemplate; - - private static $azureNodePoolNameTemplate; - - private static $azureServerConfigNameTemplate; - - private static $locationNameTemplate; - - private static $pathTemplateMap; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/azure_clusters_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/azure_clusters_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/azure_clusters_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/azure_clusters_rest_client_config.php', - ], - ], - ]; - } - - private static function getAzureClientNameTemplate() - { - if (self::$azureClientNameTemplate == null) { - self::$azureClientNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClients/{azure_client}'); - } - - return self::$azureClientNameTemplate; - } - - private static function getAzureClusterNameTemplate() - { - if (self::$azureClusterNameTemplate == null) { - self::$azureClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClusters/{azure_cluster}'); - } - - return self::$azureClusterNameTemplate; - } - - private static function getAzureNodePoolNameTemplate() - { - if (self::$azureNodePoolNameTemplate == null) { - self::$azureNodePoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool}'); - } - - return self::$azureNodePoolNameTemplate; - } - - private static function getAzureServerConfigNameTemplate() - { - if (self::$azureServerConfigNameTemplate == null) { - self::$azureServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureServerConfig'); - } - - return self::$azureServerConfigNameTemplate; - } - - private static function getLocationNameTemplate() - { - if (self::$locationNameTemplate == null) { - self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); - } - - return self::$locationNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'azureClient' => self::getAzureClientNameTemplate(), - 'azureCluster' => self::getAzureClusterNameTemplate(), - 'azureNodePool' => self::getAzureNodePoolNameTemplate(), - 'azureServerConfig' => self::getAzureServerConfigNameTemplate(), - 'location' => self::getLocationNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a azure_client - * resource. - * - * @param string $project - * @param string $location - * @param string $azureClient - * - * @return string The formatted azure_client resource. - */ - public static function azureClientName($project, $location, $azureClient) - { - return self::getAzureClientNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'azure_client' => $azureClient, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * azure_cluster resource. - * - * @param string $project - * @param string $location - * @param string $azureCluster - * - * @return string The formatted azure_cluster resource. - */ - public static function azureClusterName($project, $location, $azureCluster) - { - return self::getAzureClusterNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'azure_cluster' => $azureCluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * azure_node_pool resource. - * - * @param string $project - * @param string $location - * @param string $azureCluster - * @param string $azureNodePool - * - * @return string The formatted azure_node_pool resource. - */ - public static function azureNodePoolName($project, $location, $azureCluster, $azureNodePool) - { - return self::getAzureNodePoolNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'azure_cluster' => $azureCluster, - 'azure_node_pool' => $azureNodePool, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * azure_server_config resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted azure_server_config resource. - */ - public static function azureServerConfigName($project, $location) - { - return self::getAzureServerConfigNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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($project, $location) - { - return self::getLocationNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - azureClient: projects/{project}/locations/{location}/azureClients/{azure_client} - * - azureCluster: projects/{project}/locations/{location}/azureClusters/{azure_cluster} - * - azureNodePool: projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool} - * - azureServerConfig: projects/{project}/locations/{location}/azureServerConfig - * - location: projects/{project}/locations/{location} - * - * 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($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Constructor. - * - * @param array $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 'gkemulticloud.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @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. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** - * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource on a given Google Cloud project and region. - * - * `AzureClient` resources hold client authentication - * information needed by the Anthos Multicloud API to manage Azure resources - * on your Azure subscription on your behalf. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $azureClient = new AzureClient(); - * $azureClientId = 'azure_client_id'; - * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureClient'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AzureClient $azureClient Required. The specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * @param string $azureClientId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the client. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAzureClient($parent, $azureClient, $azureClientId, array $optionalArgs = []) - { - $request = new CreateAzureClientRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAzureClient($azureClient); - $request->setAzureClientId($azureClientId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAzureClient', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource on a given GCP project and region. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $azureCluster = new AzureCluster(); - * $azureClusterId = 'azure_cluster_id'; - * $operationResponse = $azureClustersClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AzureCluster $azureCluster Required. The specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * @param string $azureClusterId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAzureCluster($parent, $azureCluster, $azureClusterId, array $optionalArgs = []) - { - $request = new CreateAzureClusterRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAzureCluster($azureCluster); - $request->setAzureClusterId($azureClusterId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], - * attached to a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * $azureNodePool = new AzureNodePool(); - * $azureNodePoolId = 'azure_node_pool_id'; - * $operationResponse = $azureClustersClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AzureNodePool $azureNodePool Required. The specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * @param string $azureNodePoolId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the node - * pool. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAzureNodePool($parent, $azureNodePool, $azureNodePoolId, array $optionalArgs = []) - { - $request = new CreateAzureNodePoolRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAzureNodePool($azureNodePool); - $request->setAzureNodePoolId($azureNodePoolId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource. - * - * If the client is used by one or more clusters, deletion will - * fail and a `FAILED_PRECONDITION` error will be returned. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - * $operationResponse = $azureClustersClient->deleteAzureClient($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->deleteAzureClient($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureClient'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $allowMissing - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * - * Useful for idempotent deletion. - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the resource. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAzureClient($name, array $optionalArgs = []) - { - $request = new DeleteAzureClientRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAzureClient', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * - * Fails if the cluster has one or more associated - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * $operationResponse = $azureClustersClient->deleteAzureCluster($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->deleteAzureCluster($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $allowMissing - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * - * Useful for idempotent deletion. - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the resource. - * @type string $etag - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAzureCluster($name, array $optionalArgs = []) - { - $request = new DeleteAzureClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - * $operationResponse = $azureClustersClient->deleteAzureNodePool($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->deleteAzureNodePool($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the node - * pool. - * @type bool $allowMissing - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * - * Useful for idempotent deletion. - * @type string $etag - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAzureNodePool($name, array $optionalArgs = []) - { - $request = new DeleteAzureNodePoolRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Generates a short-lived access token to authenticate to a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedAzureCluster = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * $response = $azureClustersClient->generateAzureAccessToken($formattedAzureCluster); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $azureCluster Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse - * - * @throws ApiException if the remote call fails - */ - public function generateAzureAccessToken($azureCluster, array $optionalArgs = []) - { - $request = new GenerateAzureAccessTokenRequest(); - $requestParamHeaders = []; - $request->setAzureCluster($azureCluster); - $requestParamHeaders['azure_cluster'] = $azureCluster; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GenerateAzureAccessToken', GenerateAzureAccessTokenResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - * $response = $azureClustersClient->getAzureClient($formattedName); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AzureClient - * - * @throws ApiException if the remote call fails - */ - public function getAzureClient($name, array $optionalArgs = []) - { - $request = new GetAzureClientRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAzureClient', AzureClient::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * $response = $azureClustersClient->getAzureCluster($formattedName); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AzureCluster - * - * @throws ApiException if the remote call fails - */ - public function getAzureCluster($name, array $optionalArgs = []) - { - $request = new GetAzureClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAzureCluster', AzureCluster::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - * $response = $azureClustersClient->getAzureNodePool($formattedName); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AzureNodePool - * - * @throws ApiException if the remote call fails - */ - public function getAzureNodePool($name, array $optionalArgs = []) - { - $request = new GetAzureNodePoolRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAzureNodePool', AzureNodePool::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns information, such as supported Azure regions and Kubernetes - * versions, on a given Google Cloud location. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureServerConfigName('[PROJECT]', '[LOCATION]'); - * $response = $azureClustersClient->getAzureServerConfig($formattedName); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AzureServerConfig - * - * @throws ApiException if the remote call fails - */ - public function getAzureServerConfig($name, array $optionalArgs = []) - { - $request = new GetAzureServerConfigRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAzureServerConfig', AzureServerConfig::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources on a given Google Cloud project and region. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * // Iterate over pages of elements - * $pagedResponse = $azureClustersClient->listAzureClients($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $azureClustersClient->listAzureClients($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAzureClients($parent, array $optionalArgs = []) - { - $request = new ListAzureClientsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAzureClients', $optionalArgs, ListAzureClientsResponse::class, $request); - } - - /** - * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources on a given Google Cloud project and region. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * // Iterate over pages of elements - * $pagedResponse = $azureClustersClient->listAzureClusters($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $azureClustersClient->listAzureClusters($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAzureClusters($parent, array $optionalArgs = []) - { - $request = new ListAzureClustersRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAzureClusters', $optionalArgs, ListAzureClustersResponse::class, $request); - } - - /** - * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources on a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * // Iterate over pages of elements - * $pagedResponse = $azureClustersClient->listAzureNodePools($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $azureClustersClient->listAzureNodePools($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAzureNodePools($parent, array $optionalArgs = []) - { - $request = new ListAzureNodePoolsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAzureNodePools', $optionalArgs, ListAzureNodePoolsResponse::class, $request); - } - - /** - * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $azureCluster = new AzureCluster(); - * $updateMask = new FieldMask(); - * $operationResponse = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'updateAzureCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param AzureCluster $azureCluster Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually update the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAzureCluster($azureCluster, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAzureClusterRequest(); - $requestParamHeaders = []; - $request->setAzureCluster($azureCluster); - $request->setUpdateMask($updateMask); - $requestParamHeaders['azure_cluster.name'] = $azureCluster->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $azureNodePool = new AzureNodePool(); - * $updateMask = new FieldMask(); - * $operationResponse = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'updateAzureNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param AzureNodePool $azureNodePool Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but don't actually update the node pool. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAzureNodePool($azureNodePool, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAzureNodePoolRequest(); - $requestParamHeaders = []; - $request->setAzureNodePool($azureNodePool); - $request->setUpdateMask($updateMask); - $requestParamHeaders['azure_node_pool.name'] = $azureNodePool->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json deleted file mode 100644 index a69240b06fba..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.gkemulticloud.v1", - "libraryPackage": "Google\\Cloud\\GkeMultiCloud\\V1", - "services": { - "AttachedClusters": { - "clients": { - "grpc": { - "libraryClient": "AttachedClustersGapicClient", - "rpcs": { - "CreateAttachedCluster": { - "methods": [ - "createAttachedCluster" - ] - }, - "DeleteAttachedCluster": { - "methods": [ - "deleteAttachedCluster" - ] - }, - "GenerateAttachedClusterInstallManifest": { - "methods": [ - "generateAttachedClusterInstallManifest" - ] - }, - "GetAttachedCluster": { - "methods": [ - "getAttachedCluster" - ] - }, - "GetAttachedServerConfig": { - "methods": [ - "getAttachedServerConfig" - ] - }, - "ImportAttachedCluster": { - "methods": [ - "importAttachedCluster" - ] - }, - "ListAttachedClusters": { - "methods": [ - "listAttachedClusters" - ] - }, - "UpdateAttachedCluster": { - "methods": [ - "updateAttachedCluster" - ] - } - } - } - } - }, - "AwsClusters": { - "clients": { - "grpc": { - "libraryClient": "AwsClustersGapicClient", - "rpcs": { - "CreateAwsCluster": { - "methods": [ - "createAwsCluster" - ] - }, - "CreateAwsNodePool": { - "methods": [ - "createAwsNodePool" - ] - }, - "DeleteAwsCluster": { - "methods": [ - "deleteAwsCluster" - ] - }, - "DeleteAwsNodePool": { - "methods": [ - "deleteAwsNodePool" - ] - }, - "GenerateAwsAccessToken": { - "methods": [ - "generateAwsAccessToken" - ] - }, - "GetAwsCluster": { - "methods": [ - "getAwsCluster" - ] - }, - "GetAwsNodePool": { - "methods": [ - "getAwsNodePool" - ] - }, - "GetAwsServerConfig": { - "methods": [ - "getAwsServerConfig" - ] - }, - "ListAwsClusters": { - "methods": [ - "listAwsClusters" - ] - }, - "ListAwsNodePools": { - "methods": [ - "listAwsNodePools" - ] - }, - "UpdateAwsCluster": { - "methods": [ - "updateAwsCluster" - ] - }, - "UpdateAwsNodePool": { - "methods": [ - "updateAwsNodePool" - ] - } - } - } - } - }, - "AzureClusters": { - "clients": { - "grpc": { - "libraryClient": "AzureClustersGapicClient", - "rpcs": { - "CreateAzureClient": { - "methods": [ - "createAzureClient" - ] - }, - "CreateAzureCluster": { - "methods": [ - "createAzureCluster" - ] - }, - "CreateAzureNodePool": { - "methods": [ - "createAzureNodePool" - ] - }, - "DeleteAzureClient": { - "methods": [ - "deleteAzureClient" - ] - }, - "DeleteAzureCluster": { - "methods": [ - "deleteAzureCluster" - ] - }, - "DeleteAzureNodePool": { - "methods": [ - "deleteAzureNodePool" - ] - }, - "GenerateAzureAccessToken": { - "methods": [ - "generateAzureAccessToken" - ] - }, - "GetAzureClient": { - "methods": [ - "getAzureClient" - ] - }, - "GetAzureCluster": { - "methods": [ - "getAzureCluster" - ] - }, - "GetAzureNodePool": { - "methods": [ - "getAzureNodePool" - ] - }, - "GetAzureServerConfig": { - "methods": [ - "getAzureServerConfig" - ] - }, - "ListAzureClients": { - "methods": [ - "listAzureClients" - ] - }, - "ListAzureClusters": { - "methods": [ - "listAzureClusters" - ] - }, - "ListAzureNodePools": { - "methods": [ - "listAzureNodePools" - ] - }, - "UpdateAzureCluster": { - "methods": [ - "updateAzureCluster" - ] - }, - "UpdateAzureNodePool": { - "methods": [ - "updateAzureNodePool" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json deleted file mode 100644 index c7c0634a0a98..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "interfaces": { - "google.cloud.gkemulticloud.v1.AwsClusters": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "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": { - "CreateAwsCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAwsNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAwsCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAwsNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GenerateAwsAccessToken": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAwsCluster": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAwsNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAwsServerConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAwsClusters": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAwsNodePools": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAwsCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAwsNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php deleted file mode 100644 index 9a86fcf0c4b2..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php +++ /dev/null @@ -1,88 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AwsClusters' => [ - 'CreateAwsCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'CreateAwsNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAwsCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAwsNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAwsCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAwsNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'ListAwsClusters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAwsClusters', - ], - ], - 'ListAwsNodePools' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAwsNodePools', - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php deleted file mode 100644 index e61743f714aa..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php +++ /dev/null @@ -1,205 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AwsClusters' => [ - 'CreateAwsCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/awsClusters', - 'body' => 'aws_cluster', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'aws_cluster_id', - ], - ], - 'CreateAwsNodePool' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools', - 'body' => 'aws_node_pool', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'aws_node_pool_id', - ], - ], - 'DeleteAwsCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAwsNodePool' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateAwsAccessToken' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessToken', - 'placeholders' => [ - 'aws_cluster' => [ - 'getters' => [ - 'getAwsCluster', - ], - ], - ], - ], - 'GetAwsCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAwsNodePool' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAwsServerConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsServerConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAwsClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/awsClusters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAwsNodePools' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAwsCluster' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}', - 'body' => 'aws_cluster', - 'placeholders' => [ - 'aws_cluster.name' => [ - 'getters' => [ - 'getAwsCluster', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAwsNodePool' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', - 'body' => 'aws_node_pool', - 'placeholders' => [ - 'aws_node_pool.name' => [ - 'getters' => [ - 'getAwsNodePool', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json deleted file mode 100644 index fae6b0761556..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "interfaces": { - "google.cloud.gkemulticloud.v1.AzureClusters": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "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": { - "CreateAzureClient": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAzureCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAzureNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAzureClient": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAzureCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAzureNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GenerateAzureAccessToken": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAzureClient": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAzureCluster": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAzureNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAzureServerConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAzureClients": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAzureClusters": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAzureNodePools": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAzureCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAzureNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php deleted file mode 100644 index b2d05d9d141f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php +++ /dev/null @@ -1,118 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AzureClusters' => [ - 'CreateAzureClient' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureClient', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'CreateAzureCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'CreateAzureNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAzureClient' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAzureCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAzureNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAzureCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAzureNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'ListAzureClients' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAzureClients', - ], - ], - 'ListAzureClusters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAzureClusters', - ], - ], - 'ListAzureNodePools' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAzureNodePools', - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php deleted file mode 100644 index 76e3adfb1baf..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php +++ /dev/null @@ -1,253 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AzureClusters' => [ - 'CreateAzureClient' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClients', - 'body' => 'azure_client', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'azure_client_id', - ], - ], - 'CreateAzureCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClusters', - 'body' => 'azure_cluster', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'azure_cluster_id', - ], - ], - 'CreateAzureNodePool' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools', - 'body' => 'azure_node_pool', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'azure_node_pool_id', - ], - ], - 'DeleteAzureClient' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClients/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAzureCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAzureNodePool' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateAzureAccessToken' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessToken', - 'placeholders' => [ - 'azure_cluster' => [ - 'getters' => [ - 'getAzureCluster', - ], - ], - ], - ], - 'GetAzureClient' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClients/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAzureCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAzureNodePool' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAzureServerConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureServerConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAzureClients' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClients', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAzureClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClusters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAzureNodePools' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAzureCluster' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}', - 'body' => 'azure_cluster', - 'placeholders' => [ - 'azure_cluster.name' => [ - 'getters' => [ - 'getAzureCluster', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAzureNodePool' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', - 'body' => 'azure_node_pool', - 'placeholders' => [ - 'azure_node_pool.name' => [ - 'getters' => [ - 'getAzureNodePool', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php deleted file mode 100644 index 0896a1d01b38..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php +++ /dev/null @@ -1,1504 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AwsClustersClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AwsClustersClient($options); - } - - /** @test */ - public function createAwsClusterTest() - { - $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/createAwsClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $awsRegion = 'awsRegion-1887255946'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AwsCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setAwsRegion($awsRegion); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAwsClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $awsCluster = new AwsCluster(); - $awsClusterNetworking = new AwsClusterNetworking(); - $networkingVpcId = 'networkingVpcId-1154507440'; - $awsClusterNetworking->setVpcId($networkingVpcId); - $networkingPodAddressCidrBlocks = []; - $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $awsCluster->setNetworking($awsClusterNetworking); - $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; - $awsCluster->setAwsRegion($awsClusterAwsRegion); - $awsClusterControlPlane = new AwsControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $awsClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSubnetIds = []; - $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); - $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; - $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); - $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); - $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; - $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); - $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); - $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); - $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; - $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); - $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); - $controlPlaneConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); - $awsCluster->setControlPlane($awsClusterControlPlane); - $awsClusterAuthorization = new AwsAuthorization(); - $authorizationAdminUsers = []; - $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $awsCluster->setAuthorization($awsClusterAuthorization); - $awsClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $awsClusterFleet->setProject($fleetProject); - $awsCluster->setFleet($awsClusterFleet); - $awsClusterId = 'awsClusterId938438658'; - $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - $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.gkemulticloud.v1.AwsClusters/CreateAwsCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAwsCluster(); - $this->assertProtobufEquals($awsCluster, $actualValue); - $actualValue = $actualApiRequestObject->getAwsClusterId(); - $this->assertProtobufEquals($awsClusterId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAwsClusterTest'); - $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 createAwsClusterExceptionTest() - { - $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/createAwsClusterTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $awsCluster = new AwsCluster(); - $awsClusterNetworking = new AwsClusterNetworking(); - $networkingVpcId = 'networkingVpcId-1154507440'; - $awsClusterNetworking->setVpcId($networkingVpcId); - $networkingPodAddressCidrBlocks = []; - $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $awsCluster->setNetworking($awsClusterNetworking); - $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; - $awsCluster->setAwsRegion($awsClusterAwsRegion); - $awsClusterControlPlane = new AwsControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $awsClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSubnetIds = []; - $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); - $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; - $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); - $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); - $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; - $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); - $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); - $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); - $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; - $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); - $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); - $controlPlaneConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); - $awsCluster->setControlPlane($awsClusterControlPlane); - $awsClusterAuthorization = new AwsAuthorization(); - $authorizationAdminUsers = []; - $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $awsCluster->setAuthorization($awsClusterAuthorization); - $awsClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $awsClusterFleet->setProject($fleetProject); - $awsCluster->setFleet($awsClusterFleet); - $awsClusterId = 'awsClusterId938438658'; - $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAwsClusterTest'); - 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 createAwsNodePoolTest() - { - $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/createAwsNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new AwsNodePool(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAwsNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $awsNodePool = new AwsNodePool(); - $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; - $awsNodePool->setVersion($awsNodePoolVersion); - $awsNodePoolConfig = new AwsNodeConfig(); - $configIamInstanceProfile = 'configIamInstanceProfile805825313'; - $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); - $configConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); - $awsNodePool->setConfig($awsNodePoolConfig); - $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); - $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; - $awsNodePool->setSubnetId($awsNodePoolSubnetId); - $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $awsNodePoolId = 'awsNodePoolId1958033635'; - $response = $gapicClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - $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.gkemulticloud.v1.AwsClusters/CreateAwsNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAwsNodePool(); - $this->assertProtobufEquals($awsNodePool, $actualValue); - $actualValue = $actualApiRequestObject->getAwsNodePoolId(); - $this->assertProtobufEquals($awsNodePoolId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAwsNodePoolTest'); - $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 createAwsNodePoolExceptionTest() - { - $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/createAwsNodePoolTest'); - $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $awsNodePool = new AwsNodePool(); - $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; - $awsNodePool->setVersion($awsNodePoolVersion); - $awsNodePoolConfig = new AwsNodeConfig(); - $configIamInstanceProfile = 'configIamInstanceProfile805825313'; - $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); - $configConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); - $awsNodePool->setConfig($awsNodePoolConfig); - $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); - $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; - $awsNodePool->setSubnetId($awsNodePoolSubnetId); - $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $awsNodePoolId = 'awsNodePoolId1958033635'; - $response = $gapicClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAwsNodePoolTest'); - 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 deleteAwsClusterTest() - { - $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/deleteAwsClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAwsClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->deleteAwsCluster($formattedName); - $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.gkemulticloud.v1.AwsClusters/DeleteAwsCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAwsClusterTest'); - $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 deleteAwsClusterExceptionTest() - { - $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/deleteAwsClusterTest'); - $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->deleteAwsCluster($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAwsClusterTest'); - 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 deleteAwsNodePoolTest() - { - $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/deleteAwsNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAwsNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - $response = $gapicClient->deleteAwsNodePool($formattedName); - $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.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAwsNodePoolTest'); - $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 deleteAwsNodePoolExceptionTest() - { - $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/deleteAwsNodePoolTest'); - $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->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - $response = $gapicClient->deleteAwsNodePool($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAwsNodePoolTest'); - 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 generateAwsAccessTokenTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accessToken = 'accessToken-1938933922'; - $expectedResponse = new GenerateAwsAccessTokenResponse(); - $expectedResponse->setAccessToken($accessToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAwsCluster = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->generateAwsAccessToken($formattedAwsCluster); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken', $actualFuncCall); - $actualValue = $actualRequestObject->getAwsCluster(); - $this->assertProtobufEquals($formattedAwsCluster, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateAwsAccessTokenExceptionTest() - { - $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 - $formattedAwsCluster = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - try { - $gapicClient->generateAwsAccessToken($formattedAwsCluster); - // 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 getAwsClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $awsRegion = 'awsRegion-1887255946'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AwsCluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setAwsRegion($awsRegion); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->getAwsCluster($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAwsClusterExceptionTest() - { - $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - try { - $gapicClient->getAwsCluster($formattedName); - // 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 getAwsNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new AwsNodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - $response = $gapicClient->getAwsNodePool($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAwsNodePoolExceptionTest() - { - $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->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - try { - $gapicClient->getAwsNodePool($formattedName); - // 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 getAwsServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new AwsServerConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->awsServerConfigName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->getAwsServerConfig($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAwsServerConfigExceptionTest() - { - $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->awsServerConfigName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->getAwsServerConfig($formattedName); - // 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 listAwsClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $awsClustersElement = new AwsCluster(); - $awsClusters = [ - $awsClustersElement, - ]; - $expectedResponse = new ListAwsClustersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAwsClusters($awsClusters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->listAwsClusters($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAwsClusters()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAwsClustersExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->listAwsClusters($formattedParent); - // 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 listAwsNodePoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $awsNodePoolsElement = new AwsNodePool(); - $awsNodePools = [ - $awsNodePoolsElement, - ]; - $expectedResponse = new ListAwsNodePoolsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAwsNodePools($awsNodePools); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->listAwsNodePools($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAwsNodePools()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAwsNodePoolsExceptionTest() - { - $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - try { - $gapicClient->listAwsNodePools($formattedParent); - // 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 updateAwsClusterTest() - { - $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/updateAwsClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $awsRegion = 'awsRegion-1887255946'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AwsCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setAwsRegion($awsRegion); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAwsClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $awsCluster = new AwsCluster(); - $awsClusterNetworking = new AwsClusterNetworking(); - $networkingVpcId = 'networkingVpcId-1154507440'; - $awsClusterNetworking->setVpcId($networkingVpcId); - $networkingPodAddressCidrBlocks = []; - $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $awsCluster->setNetworking($awsClusterNetworking); - $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; - $awsCluster->setAwsRegion($awsClusterAwsRegion); - $awsClusterControlPlane = new AwsControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $awsClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSubnetIds = []; - $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); - $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; - $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); - $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); - $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; - $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); - $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); - $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); - $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; - $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); - $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); - $controlPlaneConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); - $awsCluster->setControlPlane($awsClusterControlPlane); - $awsClusterAuthorization = new AwsAuthorization(); - $authorizationAdminUsers = []; - $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $awsCluster->setAuthorization($awsClusterAuthorization); - $awsClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $awsClusterFleet->setProject($fleetProject); - $awsCluster->setFleet($awsClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); - $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.gkemulticloud.v1.AwsClusters/UpdateAwsCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAwsCluster(); - $this->assertProtobufEquals($awsCluster, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAwsClusterTest'); - $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 updateAwsClusterExceptionTest() - { - $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/updateAwsClusterTest'); - $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 - $awsCluster = new AwsCluster(); - $awsClusterNetworking = new AwsClusterNetworking(); - $networkingVpcId = 'networkingVpcId-1154507440'; - $awsClusterNetworking->setVpcId($networkingVpcId); - $networkingPodAddressCidrBlocks = []; - $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $awsCluster->setNetworking($awsClusterNetworking); - $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; - $awsCluster->setAwsRegion($awsClusterAwsRegion); - $awsClusterControlPlane = new AwsControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $awsClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSubnetIds = []; - $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); - $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; - $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); - $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); - $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; - $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); - $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); - $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); - $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; - $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); - $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); - $controlPlaneConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); - $awsCluster->setControlPlane($awsClusterControlPlane); - $awsClusterAuthorization = new AwsAuthorization(); - $authorizationAdminUsers = []; - $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $awsCluster->setAuthorization($awsClusterAuthorization); - $awsClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $awsClusterFleet->setProject($fleetProject); - $awsCluster->setFleet($awsClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAwsClusterTest'); - 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 updateAwsNodePoolTest() - { - $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/updateAwsNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new AwsNodePool(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAwsNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $awsNodePool = new AwsNodePool(); - $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; - $awsNodePool->setVersion($awsNodePoolVersion); - $awsNodePoolConfig = new AwsNodeConfig(); - $configIamInstanceProfile = 'configIamInstanceProfile805825313'; - $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); - $configConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); - $awsNodePool->setConfig($awsNodePoolConfig); - $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); - $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; - $awsNodePool->setSubnetId($awsNodePoolSubnetId); - $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAwsNodePool($awsNodePool, $updateMask); - $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.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAwsNodePool(); - $this->assertProtobufEquals($awsNodePool, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAwsNodePoolTest'); - $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 updateAwsNodePoolExceptionTest() - { - $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/updateAwsNodePoolTest'); - $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 - $awsNodePool = new AwsNodePool(); - $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; - $awsNodePool->setVersion($awsNodePoolVersion); - $awsNodePoolConfig = new AwsNodeConfig(); - $configIamInstanceProfile = 'configIamInstanceProfile805825313'; - $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); - $configConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); - $awsNodePool->setConfig($awsNodePoolConfig); - $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); - $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; - $awsNodePool->setSubnetId($awsNodePoolSubnetId); - $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAwsNodePool($awsNodePool, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAwsNodePoolTest'); - 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()); - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php deleted file mode 100644 index 8141f41b1b98..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php +++ /dev/null @@ -1,1878 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AzureClustersClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AzureClustersClient($options); - } - - /** @test */ - public function createAzureClientTest() - { - $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/createAzureClientTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $tenantId = 'tenantId-1852780336'; - $applicationId = 'applicationId-1287148950'; - $pemCertificate = 'pemCertificate1234463984'; - $uid = 'uid115792'; - $expectedResponse = new AzureClient(); - $expectedResponse->setName($name); - $expectedResponse->setTenantId($tenantId); - $expectedResponse->setApplicationId($applicationId); - $expectedResponse->setPemCertificate($pemCertificate); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAzureClientTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $azureClient = new AzureClient(); - $azureClientTenantId = 'azureClientTenantId-567307073'; - $azureClient->setTenantId($azureClientTenantId); - $azureClientApplicationId = 'azureClientApplicationId264838513'; - $azureClient->setApplicationId($azureClientApplicationId); - $azureClientId = 'azureClientId315645023'; - $response = $gapicClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - $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.gkemulticloud.v1.AzureClusters/CreateAzureClient', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAzureClient(); - $this->assertProtobufEquals($azureClient, $actualValue); - $actualValue = $actualApiRequestObject->getAzureClientId(); - $this->assertProtobufEquals($azureClientId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureClientTest'); - $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 createAzureClientExceptionTest() - { - $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/createAzureClientTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $azureClient = new AzureClient(); - $azureClientTenantId = 'azureClientTenantId-567307073'; - $azureClient->setTenantId($azureClientTenantId); - $azureClientApplicationId = 'azureClientApplicationId264838513'; - $azureClient->setApplicationId($azureClientApplicationId); - $azureClientId = 'azureClientId315645023'; - $response = $gapicClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureClientTest'); - 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 createAzureClusterTest() - { - $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/createAzureClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $azureRegion = 'azureRegion-253373788'; - $resourceGroupId = 'resourceGroupId-1092054036'; - $azureClient = 'azureClient-676290693'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AzureCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setAzureRegion($azureRegion); - $expectedResponse->setResourceGroupId($resourceGroupId); - $expectedResponse->setAzureClient($azureClient); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAzureClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $azureCluster = new AzureCluster(); - $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; - $azureCluster->setAzureRegion($azureClusterAzureRegion); - $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; - $azureCluster->setResourceGroupId($azureClusterResourceGroupId); - $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; - $azureCluster->setAzureClient($azureClusterAzureClient); - $azureClusterNetworking = new AzureClusterNetworking(); - $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; - $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); - $networkingPodAddressCidrBlocks = []; - $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $azureCluster->setNetworking($azureClusterNetworking); - $azureClusterControlPlane = new AzureControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $azureClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); - $azureCluster->setControlPlane($azureClusterControlPlane); - $azureClusterAuthorization = new AzureAuthorization(); - $authorizationAdminUsers = []; - $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $azureCluster->setAuthorization($azureClusterAuthorization); - $azureClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $azureClusterFleet->setProject($fleetProject); - $azureCluster->setFleet($azureClusterFleet); - $azureClusterId = 'azureClusterId332577072'; - $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); - $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.gkemulticloud.v1.AzureClusters/CreateAzureCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAzureCluster(); - $this->assertProtobufEquals($azureCluster, $actualValue); - $actualValue = $actualApiRequestObject->getAzureClusterId(); - $this->assertProtobufEquals($azureClusterId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureClusterTest'); - $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 createAzureClusterExceptionTest() - { - $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/createAzureClusterTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $azureCluster = new AzureCluster(); - $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; - $azureCluster->setAzureRegion($azureClusterAzureRegion); - $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; - $azureCluster->setResourceGroupId($azureClusterResourceGroupId); - $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; - $azureCluster->setAzureClient($azureClusterAzureClient); - $azureClusterNetworking = new AzureClusterNetworking(); - $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; - $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); - $networkingPodAddressCidrBlocks = []; - $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $azureCluster->setNetworking($azureClusterNetworking); - $azureClusterControlPlane = new AzureControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $azureClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); - $azureCluster->setControlPlane($azureClusterControlPlane); - $azureClusterAuthorization = new AzureAuthorization(); - $authorizationAdminUsers = []; - $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $azureCluster->setAuthorization($azureClusterAuthorization); - $azureClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $azureClusterFleet->setProject($fleetProject); - $azureCluster->setFleet($azureClusterFleet); - $azureClusterId = 'azureClusterId332577072'; - $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureClusterTest'); - 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 createAzureNodePoolTest() - { - $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/createAzureNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $azureAvailabilityZone = 'azureAvailabilityZone541920864'; - $expectedResponse = new AzureNodePool(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAzureNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $azureNodePool = new AzureNodePool(); - $azureNodePoolVersion = 'azureNodePoolVersion349490987'; - $azureNodePool->setVersion($azureNodePoolVersion); - $azureNodePoolConfig = new AzureNodeConfig(); - $configSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureNodePoolConfig->setSshConfig($configSshConfig); - $azureNodePool->setConfig($azureNodePoolConfig); - $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; - $azureNodePool->setSubnetId($azureNodePoolSubnetId); - $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); - $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $azureNodePoolId = 'azureNodePoolId-454365551'; - $response = $gapicClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); - $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.gkemulticloud.v1.AzureClusters/CreateAzureNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAzureNodePool(); - $this->assertProtobufEquals($azureNodePool, $actualValue); - $actualValue = $actualApiRequestObject->getAzureNodePoolId(); - $this->assertProtobufEquals($azureNodePoolId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureNodePoolTest'); - $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 createAzureNodePoolExceptionTest() - { - $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/createAzureNodePoolTest'); - $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $azureNodePool = new AzureNodePool(); - $azureNodePoolVersion = 'azureNodePoolVersion349490987'; - $azureNodePool->setVersion($azureNodePoolVersion); - $azureNodePoolConfig = new AzureNodeConfig(); - $configSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureNodePoolConfig->setSshConfig($configSshConfig); - $azureNodePool->setConfig($azureNodePoolConfig); - $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; - $azureNodePool->setSubnetId($azureNodePoolSubnetId); - $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); - $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $azureNodePoolId = 'azureNodePoolId-454365551'; - $response = $gapicClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureNodePoolTest'); - 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 deleteAzureClientTest() - { - $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/deleteAzureClientTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAzureClientTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - $response = $gapicClient->deleteAzureClient($formattedName); - $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.gkemulticloud.v1.AzureClusters/DeleteAzureClient', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureClientTest'); - $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 deleteAzureClientExceptionTest() - { - $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/deleteAzureClientTest'); - $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->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - $response = $gapicClient->deleteAzureClient($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureClientTest'); - 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 deleteAzureClusterTest() - { - $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/deleteAzureClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAzureClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->deleteAzureCluster($formattedName); - $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.gkemulticloud.v1.AzureClusters/DeleteAzureCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureClusterTest'); - $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 deleteAzureClusterExceptionTest() - { - $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/deleteAzureClusterTest'); - $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->deleteAzureCluster($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureClusterTest'); - 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 deleteAzureNodePoolTest() - { - $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/deleteAzureNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAzureNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - $response = $gapicClient->deleteAzureNodePool($formattedName); - $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.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureNodePoolTest'); - $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 deleteAzureNodePoolExceptionTest() - { - $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/deleteAzureNodePoolTest'); - $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->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - $response = $gapicClient->deleteAzureNodePool($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureNodePoolTest'); - 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 generateAzureAccessTokenTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accessToken = 'accessToken-1938933922'; - $expectedResponse = new GenerateAzureAccessTokenResponse(); - $expectedResponse->setAccessToken($accessToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAzureCluster = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->generateAzureAccessToken($formattedAzureCluster); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken', $actualFuncCall); - $actualValue = $actualRequestObject->getAzureCluster(); - $this->assertProtobufEquals($formattedAzureCluster, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateAzureAccessTokenExceptionTest() - { - $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 - $formattedAzureCluster = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - try { - $gapicClient->generateAzureAccessToken($formattedAzureCluster); - // 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 getAzureClientTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $tenantId = 'tenantId-1852780336'; - $applicationId = 'applicationId-1287148950'; - $pemCertificate = 'pemCertificate1234463984'; - $uid = 'uid115792'; - $expectedResponse = new AzureClient(); - $expectedResponse->setName($name2); - $expectedResponse->setTenantId($tenantId); - $expectedResponse->setApplicationId($applicationId); - $expectedResponse->setPemCertificate($pemCertificate); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - $response = $gapicClient->getAzureClient($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAzureClientExceptionTest() - { - $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->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - try { - $gapicClient->getAzureClient($formattedName); - // 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 getAzureClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $azureRegion = 'azureRegion-253373788'; - $resourceGroupId = 'resourceGroupId-1092054036'; - $azureClient = 'azureClient-676290693'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AzureCluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setAzureRegion($azureRegion); - $expectedResponse->setResourceGroupId($resourceGroupId); - $expectedResponse->setAzureClient($azureClient); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->getAzureCluster($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAzureClusterExceptionTest() - { - $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - try { - $gapicClient->getAzureCluster($formattedName); - // 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 getAzureNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $azureAvailabilityZone = 'azureAvailabilityZone541920864'; - $expectedResponse = new AzureNodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - $response = $gapicClient->getAzureNodePool($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAzureNodePoolExceptionTest() - { - $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->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - try { - $gapicClient->getAzureNodePool($formattedName); - // 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 getAzureServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new AzureServerConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->azureServerConfigName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->getAzureServerConfig($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAzureServerConfigExceptionTest() - { - $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->azureServerConfigName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->getAzureServerConfig($formattedName); - // 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 listAzureClientsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $azureClientsElement = new AzureClient(); - $azureClients = [ - $azureClientsElement, - ]; - $expectedResponse = new ListAzureClientsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAzureClients($azureClients); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->listAzureClients($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAzureClients()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAzureClientsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->listAzureClients($formattedParent); - // 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 listAzureClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $azureClustersElement = new AzureCluster(); - $azureClusters = [ - $azureClustersElement, - ]; - $expectedResponse = new ListAzureClustersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAzureClusters($azureClusters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->listAzureClusters($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAzureClusters()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAzureClustersExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->listAzureClusters($formattedParent); - // 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 listAzureNodePoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $azureNodePoolsElement = new AzureNodePool(); - $azureNodePools = [ - $azureNodePoolsElement, - ]; - $expectedResponse = new ListAzureNodePoolsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAzureNodePools($azureNodePools); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->listAzureNodePools($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAzureNodePools()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAzureNodePoolsExceptionTest() - { - $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - try { - $gapicClient->listAzureNodePools($formattedParent); - // 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 updateAzureClusterTest() - { - $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/updateAzureClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $azureRegion = 'azureRegion-253373788'; - $resourceGroupId = 'resourceGroupId-1092054036'; - $azureClient = 'azureClient-676290693'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AzureCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setAzureRegion($azureRegion); - $expectedResponse->setResourceGroupId($resourceGroupId); - $expectedResponse->setAzureClient($azureClient); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAzureClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $azureCluster = new AzureCluster(); - $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; - $azureCluster->setAzureRegion($azureClusterAzureRegion); - $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; - $azureCluster->setResourceGroupId($azureClusterResourceGroupId); - $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; - $azureCluster->setAzureClient($azureClusterAzureClient); - $azureClusterNetworking = new AzureClusterNetworking(); - $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; - $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); - $networkingPodAddressCidrBlocks = []; - $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $azureCluster->setNetworking($azureClusterNetworking); - $azureClusterControlPlane = new AzureControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $azureClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); - $azureCluster->setControlPlane($azureClusterControlPlane); - $azureClusterAuthorization = new AzureAuthorization(); - $authorizationAdminUsers = []; - $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $azureCluster->setAuthorization($azureClusterAuthorization); - $azureClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $azureClusterFleet->setProject($fleetProject); - $azureCluster->setFleet($azureClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); - $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.gkemulticloud.v1.AzureClusters/UpdateAzureCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAzureCluster(); - $this->assertProtobufEquals($azureCluster, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAzureClusterTest'); - $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 updateAzureClusterExceptionTest() - { - $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/updateAzureClusterTest'); - $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 - $azureCluster = new AzureCluster(); - $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; - $azureCluster->setAzureRegion($azureClusterAzureRegion); - $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; - $azureCluster->setResourceGroupId($azureClusterResourceGroupId); - $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; - $azureCluster->setAzureClient($azureClusterAzureClient); - $azureClusterNetworking = new AzureClusterNetworking(); - $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; - $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); - $networkingPodAddressCidrBlocks = []; - $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $azureCluster->setNetworking($azureClusterNetworking); - $azureClusterControlPlane = new AzureControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $azureClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); - $azureCluster->setControlPlane($azureClusterControlPlane); - $azureClusterAuthorization = new AzureAuthorization(); - $authorizationAdminUsers = []; - $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $azureCluster->setAuthorization($azureClusterAuthorization); - $azureClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $azureClusterFleet->setProject($fleetProject); - $azureCluster->setFleet($azureClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAzureClusterTest'); - 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 updateAzureNodePoolTest() - { - $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/updateAzureNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $azureAvailabilityZone = 'azureAvailabilityZone541920864'; - $expectedResponse = new AzureNodePool(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAzureNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $azureNodePool = new AzureNodePool(); - $azureNodePoolVersion = 'azureNodePoolVersion349490987'; - $azureNodePool->setVersion($azureNodePoolVersion); - $azureNodePoolConfig = new AzureNodeConfig(); - $configSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureNodePoolConfig->setSshConfig($configSshConfig); - $azureNodePool->setConfig($azureNodePoolConfig); - $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; - $azureNodePool->setSubnetId($azureNodePoolSubnetId); - $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); - $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAzureNodePool($azureNodePool, $updateMask); - $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.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAzureNodePool(); - $this->assertProtobufEquals($azureNodePool, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAzureNodePoolTest'); - $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 updateAzureNodePoolExceptionTest() - { - $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/updateAzureNodePoolTest'); - $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 - $azureNodePool = new AzureNodePool(); - $azureNodePoolVersion = 'azureNodePoolVersion349490987'; - $azureNodePool->setVersion($azureNodePoolVersion); - $azureNodePoolConfig = new AzureNodeConfig(); - $configSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureNodePoolConfig->setSshConfig($configSshConfig); - $azureNodePool->setConfig($azureNodePoolConfig); - $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; - $azureNodePool->setSubnetId($azureNodePoolSubnetId); - $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); - $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAzureNodePool($azureNodePool, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAzureNodePoolTest'); - 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()); - } -} From 7500030e50233024fef6a220ac2ac704b2dbc5b9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Jan 2023 21:37:59 +0000 Subject: [PATCH 3/4] feat: Add location methods PiperOrigin-RevId: 499263614 Source-Link: https://github.com/googleapis/googleapis/commit/ba2db0d89a145c14ef11c0ec2eda0c80fe16f17e Source-Link: https://github.com/googleapis/googleapis-gen/commit/503d1e8eff04535fc5d4b74fe1c894e67fd596b2 Copy-Tag: eyJwIjoiR2tlTXVsdGlDbG91ZC8uT3dsQm90LnlhbWwiLCJoIjoiNTAzZDFlOGVmZjA0NTM1ZmM1ZDRiNzRmZTFjODk0ZTY3ZmQ1OTZiMiJ9 --- .../Gkemulticloud/V1/AttachedResources.php | Bin 0 -> 3188 bytes .../Gkemulticloud/V1/AttachedService.php | 89 + .../Cloud/Gkemulticloud/V1/AwsResources.php | Bin 0 -> 7021 bytes .../Cloud/Gkemulticloud/V1/AwsService.php | 117 + .../Cloud/Gkemulticloud/V1/AzureResources.php | Bin 0 -> 7067 bytes .../Cloud/Gkemulticloud/V1/AzureService.php | 142 ++ .../Gkemulticloud/V1/CommonResources.php | Bin 0 -> 2183 bytes .../GkeMultiCloud/V1/AttachedCluster.php | 877 ++++++++ .../V1/AttachedCluster/State.php | 96 + .../GkeMultiCloud/V1/AttachedClusterError.php | 67 + .../GkeMultiCloud/V1/AttachedClusterUser.php | 67 + .../V1/AttachedCluster_State.php | 16 + .../V1/AttachedClustersAuthorization.php | 83 + .../V1/AttachedClustersGrpcClient.php | 181 ++ .../GkeMultiCloud/V1/AttachedOidcConfig.php | 129 ++ .../V1/AttachedPlatformVersionInfo.php | 67 + .../GkeMultiCloud/V1/AttachedServerConfig.php | 102 + .../GkeMultiCloud/V1/AwsAuthorization.php | 83 + .../AwsAutoscalingGroupMetricsCollection.php | 118 ++ .../Cloud/GkeMultiCloud/V1/AwsCluster.php | 879 ++++++++ .../GkeMultiCloud/V1/AwsCluster/State.php | 96 + .../GkeMultiCloud/V1/AwsClusterError.php | 67 + .../GkeMultiCloud/V1/AwsClusterNetworking.php | 161 ++ .../Cloud/GkeMultiCloud/V1/AwsClusterUser.php | 67 + .../GkeMultiCloud/V1/AwsCluster_State.php | 16 + .../V1/AwsClustersGrpcClient.php | 246 +++ .../GkeMultiCloud/V1/AwsConfigEncryption.php | 67 + .../GkeMultiCloud/V1/AwsControlPlane.php | 693 ++++++ .../V1/AwsDatabaseEncryption.php | 67 + .../GkeMultiCloud/V1/AwsInstancePlacement.php | 70 + .../V1/AwsInstancePlacement/Tenancy.php | 75 + .../V1/AwsInstancePlacement_Tenancy.php | 16 + .../GkeMultiCloud/V1/AwsK8sVersionInfo.php | 67 + .../Cloud/GkeMultiCloud/V1/AwsNodeConfig.php | 607 ++++++ .../Cloud/GkeMultiCloud/V1/AwsNodePool.php | 639 ++++++ .../GkeMultiCloud/V1/AwsNodePool/State.php | 95 + .../V1/AwsNodePoolAutoscaling.php | 110 + .../GkeMultiCloud/V1/AwsNodePoolError.php | 67 + .../GkeMultiCloud/V1/AwsNodePool_State.php | 16 + .../Cloud/GkeMultiCloud/V1/AwsProxyConfig.php | 121 ++ .../GkeMultiCloud/V1/AwsServerConfig.php | 135 ++ .../V1/AwsServicesAuthentication.php | 109 + .../Cloud/GkeMultiCloud/V1/AwsSshConfig.php | 67 + .../GkeMultiCloud/V1/AwsVolumeTemplate.php | 197 ++ .../V1/AwsVolumeTemplate/VolumeType.php | 67 + .../V1/AwsVolumeTemplate_VolumeType.php | 16 + .../GkeMultiCloud/V1/AzureAuthorization.php | 83 + .../Cloud/GkeMultiCloud/V1/AzureClient.php | 333 +++ .../Cloud/GkeMultiCloud/V1/AzureCluster.php | 1035 +++++++++ .../GkeMultiCloud/V1/AzureCluster/State.php | 96 + .../GkeMultiCloud/V1/AzureClusterError.php | 67 + .../V1/AzureClusterNetworking.php | 241 +++ .../V1/AzureClusterResources.php | 102 + .../GkeMultiCloud/V1/AzureClusterUser.php | 67 + .../GkeMultiCloud/V1/AzureCluster_State.php | 16 + .../V1/AzureClustersGrpcClient.php | 326 +++ .../V1/AzureConfigEncryption.php | 131 ++ .../GkeMultiCloud/V1/AzureControlPlane.php | 613 ++++++ .../V1/AzureDatabaseEncryption.php | 85 + .../GkeMultiCloud/V1/AzureDiskTemplate.php | 75 + .../GkeMultiCloud/V1/AzureK8sVersionInfo.php | 67 + .../GkeMultiCloud/V1/AzureNodeConfig.php | 436 ++++ .../Cloud/GkeMultiCloud/V1/AzureNodePool.php | 669 ++++++ .../GkeMultiCloud/V1/AzureNodePool/State.php | 95 + .../V1/AzureNodePoolAutoscaling.php | 111 + .../GkeMultiCloud/V1/AzureNodePoolError.php | 67 + .../GkeMultiCloud/V1/AzureNodePool_State.php | 16 + .../GkeMultiCloud/V1/AzureProxyConfig.php | 129 ++ .../GkeMultiCloud/V1/AzureServerConfig.php | 152 ++ .../Cloud/GkeMultiCloud/V1/AzureSshConfig.php | 75 + .../V1/CreateAttachedClusterRequest.php | 227 ++ .../V1/CreateAwsClusterRequest.php | 227 ++ .../V1/CreateAwsNodePoolRequest.php | 231 ++ .../V1/CreateAzureClientRequest.php | 227 ++ .../V1/CreateAzureClusterRequest.php | 227 ++ .../V1/CreateAzureNodePoolRequest.php | 227 ++ .../V1/DeleteAttachedClusterRequest.php | 271 +++ .../V1/DeleteAwsClusterRequest.php | 221 ++ .../V1/DeleteAwsNodePoolRequest.php | 225 ++ .../V1/DeleteAzureClientRequest.php | 175 ++ .../V1/DeleteAzureClusterRequest.php | 221 ++ .../V1/DeleteAzureNodePoolRequest.php | 229 ++ .../Google/Cloud/GkeMultiCloud/V1/Fleet.php | 131 ++ ...eAttachedClusterInstallManifestRequest.php | 208 ++ ...AttachedClusterInstallManifestResponse.php | 72 + .../V1/GenerateAwsAccessTokenRequest.php | 91 + .../V1/GenerateAwsAccessTokenResponse.php | 111 + .../V1/GenerateAzureAccessTokenRequest.php | 91 + .../V1/GenerateAzureAccessTokenResponse.php | 111 + .../V1/GetAttachedClusterRequest.php | 91 + .../V1/GetAttachedServerConfigRequest.php | 92 + .../GkeMultiCloud/V1/GetAwsClusterRequest.php | 91 + .../V1/GetAwsNodePoolRequest.php | 91 + .../V1/GetAwsServerConfigRequest.php | 91 + .../V1/GetAzureClientRequest.php | 95 + .../V1/GetAzureClusterRequest.php | 91 + .../V1/GetAzureNodePoolRequest.php | 91 + .../V1/GetAzureServerConfigRequest.php | 91 + .../V1/ImportAttachedClusterRequest.php | 239 +++ .../V1/ListAttachedClustersRequest.php | 179 ++ .../V1/ListAttachedClustersResponse.php | 109 + .../V1/ListAwsClustersRequest.php | 179 ++ .../V1/ListAwsClustersResponse.php | 109 + .../V1/ListAwsNodePoolsRequest.php | 183 ++ .../V1/ListAwsNodePoolsResponse.php | 109 + .../V1/ListAzureClientsRequest.php | 179 ++ .../V1/ListAzureClientsResponse.php | 109 + .../V1/ListAzureClustersRequest.php | 179 ++ .../V1/ListAzureClustersResponse.php | 109 + .../V1/ListAzureNodePoolsRequest.php | 183 ++ .../V1/ListAzureNodePoolsResponse.php | 109 + .../V1/LoggingComponentConfig.php | 67 + .../V1/LoggingComponentConfig/Component.php | 64 + .../V1/LoggingComponentConfig_Component.php | 16 + .../Cloud/GkeMultiCloud/V1/LoggingConfig.php | 77 + .../V1/ManagedPrometheusConfig.php | 68 + .../GkeMultiCloud/V1/MaxPodsConstraint.php | 67 + .../GkeMultiCloud/V1/MonitoringConfig.php | 77 + .../Cloud/GkeMultiCloud/V1/NodeTaint.php | 135 ++ .../GkeMultiCloud/V1/NodeTaint/Effect.php | 77 + .../GkeMultiCloud/V1/NodeTaint_Effect.php | 16 + .../GkeMultiCloud/V1/OperationMetadata.php | 315 +++ .../GkeMultiCloud/V1/ReplicaPlacement.php | 113 + .../V1/UpdateAttachedClusterRequest.php | 199 ++ .../V1/UpdateAwsClusterRequest.php | 259 +++ .../V1/UpdateAwsNodePoolRequest.php | 255 +++ .../V1/UpdateAzureClusterRequest.php | 219 ++ .../V1/UpdateAzureNodePoolRequest.php | 187 ++ .../V1/WorkloadIdentityConfig.php | 139 ++ .../create_attached_cluster.php | 144 ++ .../delete_attached_cluster.php | 91 + ...rate_attached_cluster_install_manifest.php | 106 + .../get_attached_cluster.php | 79 + .../get_attached_server_config.php | 75 + .../import_attached_cluster.php | 115 + .../list_attached_clusters.php | 78 + .../update_attached_cluster.php | 113 + .../AwsClustersClient/create_aws_cluster.php | 224 ++ .../create_aws_node_pool.php | 163 ++ .../AwsClustersClient/delete_aws_cluster.php | 90 + .../delete_aws_node_pool.php | 92 + .../generate_aws_access_token.php | 79 + .../V1/AwsClustersClient/get_aws_cluster.php | 75 + .../AwsClustersClient/get_aws_node_pool.php | 80 + .../get_aws_server_config.php | 75 + .../AwsClustersClient/list_aws_clusters.php | 78 + .../AwsClustersClient/list_aws_node_pools.php | 80 + .../AwsClustersClient/update_aws_cluster.php | 197 ++ .../update_aws_node_pool.php | 136 ++ .../create_azure_client.php | 122 ++ .../create_azure_cluster.php | 238 +++ .../create_azure_node_pool.php | 164 ++ .../delete_azure_client.php | 91 + .../delete_azure_cluster.php | 94 + .../delete_azure_node_pool.php | 92 + .../generate_azure_access_token.php | 79 + .../AzureClustersClient/get_azure_client.php | 76 + .../AzureClustersClient/get_azure_cluster.php | 79 + .../get_azure_node_pool.php | 80 + .../get_azure_server_config.php | 75 + .../list_azure_clients.php | 78 + .../list_azure_clusters.php | 78 + .../list_azure_node_pools.php | 84 + .../update_azure_cluster.php | 207 ++ .../update_azure_node_pool.php | 129 ++ .../v1/src/V1/AttachedClustersClient.php | 34 + .../v1/src/V1/AwsClustersClient.php | 34 + .../v1/src/V1/AzureClustersClient.php | 34 + .../V1/Gapic/AttachedClustersGapicClient.php | 1017 +++++++++ .../src/V1/Gapic/AwsClustersGapicClient.php | 1365 ++++++++++++ .../src/V1/Gapic/AzureClustersGapicClient.php | 1697 +++++++++++++++ .../v1/src/V1/gapic_metadata.json | 216 ++ .../attached_clusters_client_config.json | 84 + .../attached_clusters_descriptor_config.php | 58 + .../attached_clusters_rest_client_config.php | 153 ++ .../resources/aws_clusters_client_config.json | 104 + .../aws_clusters_descriptor_config.php | 88 + .../aws_clusters_rest_client_config.php | 205 ++ .../azure_clusters_client_config.json | 124 ++ .../azure_clusters_descriptor_config.php | 118 ++ .../azure_clusters_rest_client_config.php | 253 +++ .../Unit/V1/AttachedClustersClientTest.php | 930 ++++++++ .../tests/Unit/V1/AwsClustersClientTest.php | 1504 +++++++++++++ .../tests/Unit/V1/AzureClustersClientTest.php | 1878 +++++++++++++++++ 184 files changed, 34658 insertions(+) create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureService.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersAuthorization.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClustersGrpcClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsK8sVersionInfo.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsProxyConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureAuthorization.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClustersGrpcClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureProxyConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/OperationMetadata.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AwsClustersClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AzureClustersClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AttachedClustersGapicClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php create mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php new file mode 100644 index 0000000000000000000000000000000000000000..8f1647b3e2c62e53e93e5f15576601aceb817c4e GIT binary patch literal 3188 zcmbVOZ*S8^7+;d6luIeW17?aUjtq$+b&gWlgj^U((==p26Q!m5BTJEMU)-aP&pV%s zO4WU!z1_E%_96BfP5TVHJNuk81X9*laqs#4?s3lBr^HEf{(QJWzb9-KgS zh+s$wBM$N5K|B~B3LP>Gv5%+$;Z_IkboO9#tG#!ZLn9JX2bs_##PdNtcGB-TH|cier*E) z$G4*h)>GD=A_b=a^1m=X@Ua6UW^)(dJskCMfEl)Z{EmnC6b@`ZLY(D8+d&*S43hu~ zKqqj}>I0Z?3fp@j;gURs%Dt{oi7RBa1BPf|`_>kU9Ew9mXqTIsriWOjt@zLCgY;TK zhX-&q@zFFtaPlc+G)CjMLr4*eX|N&v76fP6FKdc;^$=Uz82RodI<${5p{6;CYDDre zs1o(!sOj0V8e}*mfuf5p&X>u%hk1=Kdl*i~%Cvm*Jx-HQcil|$ZCvGNnX9 zTloustEvkcejM>K)E2>B-{b5In$h4gujTv~rL1F7OlMKpE= zRxlN`GAP8@)h~^_;+j&#Wpl8P15aPzCku(~BT#ZE;?Taxlzv%yy{zt5X*9Be&QNj4 z=U$2e7enzp^Kt3vCE=KM2WUs}0iQyMp(sniqBu(~`5Bb#ARuBUk|5HrzyeSAGv(U! ziq6ulWT}rBngOFHf;y*J7SP`kdgK$^?PC`O46_qeS4%RQZ)aTeV+wDl=uvGIv^H4s ziRW>t73WpSxi*9IWda&e<+SHu9#KkYq+gfuKb%1^Q5H>sP2~IuT(M(zNGN_M71eJ@ zpPqakVN@UINYw0rYkU@9{)UW2{FP*{&R~C);l_eqUI*pLylEv+I6^1sjJN`d$F?7% zWICAn$GJ)jin0Z?8{pdRUVX3Gf4#HYZ8qB5?dDeb3*Hoq-Ck$Ez1!~Ww0BzN9A~`L zd%Yt+^4e8U>NOjkokshmI4$s@w6MF^>2}4}oOT%$o4sDAS1yW!t!ArN-{Q3M=5O!o zr(o^;U`+-RpQ(|-$7FRPCE5$#Rd0~PqUve->#XV%Cn@vlsrq@A?I39_b9-BDCFuY< zs|>-)1poOAX)k#fxkDWEdoT)vFf5qc#S@8oO0_NO|x(p_3C(<2LuZ`1GdFrhF_ ri89S|CZ@SxJD8WwJ-nZ7QftX}I=0M;#}+$N7FlVTtea=x41oUt;KmsM literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php new file mode 100644 index 000000000000..70e751523d92 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php @@ -0,0 +1,89 @@ +internalAddGeneratedFile( + ' +ì +4google/cloud/gkemulticloud/v1/attached_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto6google/cloud/gkemulticloud/v1/attached_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.proto"¶ +-GenerateAttachedClusterInstallManifestRequestD +parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster +attached_cluster_id ( BàA +platform_version ( BàA"B +.GenerateAttachedClusterInstallManifestResponse +manifest ( "ì +CreateAttachedClusterRequestD +parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedClusterM +attached_cluster ( 2..google.cloud.gkemulticloud.v1.AttachedClusterBàA +attached_cluster_id ( BàA + validate_only ("Ô +ImportAttachedClusterRequestD +parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster + validate_only ( +fleet_membership ( BàA +platform_version ( BàA + distribution ( BàA"º +UpdateAttachedClusterRequestM +attached_cluster ( 2..google.cloud.gkemulticloud.v1.AttachedClusterBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"_ +GetAttachedClusterRequestB +name ( B4àAúA. +,gkemulticloud.googleapis.com/AttachedCluster"Š +ListAttachedClustersRequestD +parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster + page_size ( + +page_token ( "‚ +ListAttachedClustersResponseI +attached_clusters ( 2..google.cloud.gkemulticloud.v1.AttachedCluster +next_page_token ( "µ +DeleteAttachedClusterRequestB +name ( B4àAúA. +,gkemulticloud.googleapis.com/AttachedCluster + validate_only ( + allow_missing ( + ignore_errors ( +etag ( "i +GetAttachedServerConfigRequestG +name ( B9àAúA3 +1gkemulticloud.googleapis.com/AttachedServerConfig2µ +AttachedClusters™ +CreateAttachedCluster;.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.google.longrunning.Operation"£‚Óä“H"4/v1/{parent=projects/*/locations/*}/attachedClusters:attached_clusterÚA+parent,attached_cluster,attached_cluster_idÊA$ +AttachedClusterOperationMetadata› +UpdateAttachedCluster;.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.google.longrunning.Operation"¥‚Óä“Y2E/v1/{attached_cluster.name=projects/*/locations/*/attachedClusters/*}:attached_clusterÚAattached_cluster,update_maskÊA$ +AttachedClusterOperationMetadataý +ImportAttachedCluster;.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.google.longrunning.Operation"‡‚Óä“@";/v1/{parent=projects/*/locations/*}/attachedClusters:import:*ÚAparent,fleet_membershipÊA$ +AttachedClusterOperationMetadataà +GetAttachedCluster8.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest..google.cloud.gkemulticloud.v1.AttachedCluster"C‚Óä“64/v1/{name=projects/*/locations/*/attachedClusters/*}ÚAnameÖ +ListAttachedClusters:.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest;.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse"E‚Óä“64/v1/{parent=projects/*/locations/*}/attachedClustersÚAparentå +DeleteAttachedCluster;.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.google.longrunning.Operation"p‚Óä“6*4/v1/{name=projects/*/locations/*/attachedClusters/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataÔ +GetAttachedServerConfig=.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest3.google.cloud.gkemulticloud.v1.AttachedServerConfig"E‚Óä“86/v1/{name=projects/*/locations/*/attachedServerConfig}ÚAname¶ +&GenerateAttachedClusterInstallManifestL.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequestM.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse"o‚Óä“LJ/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifestÚAparent,attached_cluster_idPÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBê +!com.google.cloud.gkemulticloud.v1BAttachedServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php new file mode 100644 index 0000000000000000000000000000000000000000..1f0d035c6472f51b924d20339dd0909b2a24eb93 GIT binary patch literal 7021 zcmdT}&2rnw5e`ZHSWQWmApg*EybIH+vRrGEE80n1^g1b;q-m}tk)bH1Hem$?fg=hl z5J2Haw$`N=$RW>>$~CpGkVBp#w^Vtrshrb20}vo38?-Bz=p+KuJw4rDfAh`Yo8Q>S zHr$gN%w&%0vA%qGCVR(BwjIl}G|P|={i7r1$eJ~@b%QwtS+2F@-Bwqw*P7kCXzE(N zqp`9)u&jZ>ike~h{o>$+4SmDY#jn$?qWZ>F945xP1@0ZdRENy9RgKAw_KO|nseRQ` zdkyZWS0zWiM%+>FVCxxxW~iy@58UJkm(9kv6^;Dc#-q2k|H+4@}4gCjP z*mLyDU4*^BwaUkDDBvkN)dj zlDCSj_g?DE=)Yjc>Zxuy<#M#D$jOIH!=z4cb$OwBRcko3%+Q@Xy}wa2DySW3Y*K~n`~)4TvAx|!U*~!E8j+P46GKXvqEejrw(#U6qwY7tZJGT zk)vh0xn((nGnd1eFUNNb0)E4-wOFz;FxfLGg zFB0bXU0~h}tgGBuEc_na&;-&IO;t4Jc>0m9Q5{!lQDV?jm_0HW^KufOZzEy8mo%0v z(^3M0$9*Ig z(sdqE5@L5ocCo0|ORzFoHz^C56LuCb#uCh)s)o-5SCrFFQ+Xd|Ipz`Wt9#u_x328( z?zQXH=F4Wiw(>KC`(nG(I%w`STf5EO#!3o3&Uf~A`H!@86|$XrwY6JqZqwTgQq+~b zZmZpiUOB(bz;TGHOPEJ1u<) zlFKyTp|%=0mT&U`v*Cc0bQiAa>JX()5Fcja2)92@bi6@`m9vgzdCI9}_((cLUD?vt z$uS=A@m)4VE*Bh_B40yQH$z`UdY|p<0M$a^lbD{2B&V%gqK5a*-hz}sXM$597XHO`;$gc4U~OQmFY!qa3ryC6mAGElA$G5&yTr_d11 z0GYV83sc@V>tDgbDAS3Y)PY;nGnb~2wq+C?Oi`V&ru_m|`D2&4)XxgnNs%PV{{gx2 zjXS0lqy}!1{UO5J$9lU+0R*5a>JTu@K3egL=6m;H8NJ7zQ<&s6l51k*7F@@H7okjI z?qujH$kh`o%m0*uRkRszPx9~LNkJY*W}5^gH|pT{fd{5!Z7 zWinEt(i+U2+8WYfoT)e9rfu~VwckfMj$E(z9pw-=gA*5bxDlyt!fmVs_4B18Goz9D z|I9-cXWzB@j1F=WdONmTkfaXiwgPja2XjB?jhCb*0{>APr==F+(Dy7?!^0~I$Xnb` zl8}nUiKq^ZIm)CPurS(Ra&u9vwNMw6R$HECQwUQL7si1Cj%l(91x(89as?~|*QYAr zYdj%|R-pnW3AI3-5LduAcymwD38NKHN-5C^9atNxZxw_c;tj=z=ivV6b+FB4)J%h;rn`jAqM(GkjEeW(rsl})GP z;QnGnjF%7u1V46uGCe+;&0$@5JMkn$Axeyaaj?Wfik_}(P_8Mi#JV)1v z$_xX~S9B5*7cbT1+Q+t?2Ax&#PM3UDN3J+T*B?PPhO;E`_o+(pMvM$&0ioyZci_6~+qUK4WxRq6g*SwB$tK8Pq5S>($^afFvE*2!zxo8Gj2q@RxXPS} z@9M+>IsX6_G2x@*taJ+&nO5Sm)mC*UCeHHTa7`R*6-mNlFT)ElFOs+@RhENi;Ypl} z_Iwf6a3YcZ=!o(Wnf$jDSB@9XAJT7O-eV@7=EW_@RC4%&mqJ&#;2U=S70d^}@hHF6 zt?yQLtKUsroZvM{t^TsIzuiT7y95h(@6oK{{Yq^mEnR_`SFOG7N+y2*8@S9Ea4+v9 zTKB+FP2W)IZXlLsy2A*XIMTeSd|q63#O|E%ss;zTF7mA~&)?%mBH9i}>~bY>VbF_z zrQj}J#(bO&UeEz$boq}Z_pEm6_umE=&I1dtc?Si{859T1M0|QyF}mvcz&E64W2paY z`c8v?C@S#p4~51F+o3N`;@82}Kf?FD;7byHN{UAG@LSURv@Bed%iOA59vf0FA8Z}Y j@!%fcAAL-CC_d1{zUSb*3*H7?@-2st6klA<;T+(VS0 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php new file mode 100644 index 000000000000..8f2027b59b8d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php @@ -0,0 +1,117 @@ +internalAddGeneratedFile( + ' +Ù* +/google/cloud/gkemulticloud/v1/aws_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto1google/cloud/gkemulticloud/v1/aws_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"Ó +CreateAwsClusterRequest? +parent ( B/àAúA)\'gkemulticloud.googleapis.com/AwsClusterC + aws_cluster ( 2).google.cloud.gkemulticloud.v1.AwsClusterBàA +aws_cluster_id ( BàA + validate_only ("« +UpdateAwsClusterRequestC + aws_cluster ( 2).google.cloud.gkemulticloud.v1.AwsClusterBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"U +GetAwsClusterRequest= +name ( B/àAúA) +\'gkemulticloud.googleapis.com/AwsCluster"€ +ListAwsClustersRequest? +parent ( B/àAúA)\'gkemulticloud.googleapis.com/AwsCluster + page_size ( + +page_token ( "s +ListAwsClustersResponse? + aws_clusters ( 2).google.cloud.gkemulticloud.v1.AwsCluster +next_page_token ( "” +DeleteAwsClusterRequest= +name ( B/àAúA) +\'gkemulticloud.googleapis.com/AwsCluster + validate_only ( + allow_missing ( +etag ( "Ú +CreateAwsNodePoolRequest@ +parent ( B0àAúA*(gkemulticloud.googleapis.com/AwsNodePoolF + aws_node_pool ( 2*.google.cloud.gkemulticloud.v1.AwsNodePoolBàA +aws_node_pool_id ( BàA + validate_only ("¯ +UpdateAwsNodePoolRequestF + aws_node_pool ( 2*.google.cloud.gkemulticloud.v1.AwsNodePoolBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"W +GetAwsNodePoolRequest> +name ( B0àAúA* +(gkemulticloud.googleapis.com/AwsNodePool"‚ +ListAwsNodePoolsRequest@ +parent ( B0àAúA*(gkemulticloud.googleapis.com/AwsNodePool + page_size ( + +page_token ( "w +ListAwsNodePoolsResponseB +aws_node_pools ( 2*.google.cloud.gkemulticloud.v1.AwsNodePool +next_page_token ( "– +DeleteAwsNodePoolRequest> +name ( B0àAúA* +(gkemulticloud.googleapis.com/AwsNodePool + validate_only ( + allow_missing ( +etag ( "_ +GetAwsServerConfigRequestB +name ( B4àAúA. +,gkemulticloud.googleapis.com/AwsServerConfig"e +GenerateAwsAccessTokenRequestD + aws_cluster ( B/àAúA) +\'gkemulticloud.googleapis.com/AwsCluster"u +GenerateAwsAccessTokenResponse + access_token ( BàA8 +expiration_time ( 2.google.protobuf.TimestampBàA2þ + AwsClustersö +CreateAwsCluster6.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest.google.longrunning.Operation"Š‚Óä“>"//v1/{parent=projects/*/locations/*}/awsClusters: aws_clusterÚA!parent,aws_cluster,aws_cluster_idÊA + +AwsClusterOperationMetadataø +UpdateAwsCluster6.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest.google.longrunning.Operation"Œ‚Óä“J2;/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}: aws_clusterÚAaws_cluster,update_maskÊA + +AwsClusterOperationMetadata¯ + GetAwsCluster3.google.cloud.gkemulticloud.v1.GetAwsClusterRequest).google.cloud.gkemulticloud.v1.AwsCluster">‚Óä“1//v1/{name=projects/*/locations/*/awsClusters/*}ÚAname +ListAwsClusters5.google.cloud.gkemulticloud.v1.ListAwsClustersRequest6.google.cloud.gkemulticloud.v1.ListAwsClustersResponse"@‚Óä“1//v1/{parent=projects/*/locations/*}/awsClustersÚAparentÖ +DeleteAwsCluster6.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest.google.longrunning.Operation"k‚Óä“1*//v1/{name=projects/*/locations/*/awsClusters/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataì +GenerateAwsAccessToken<.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest=.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse"U‚Óä“OM/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessTokenŽ +CreateAwsNodePool7.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest.google.longrunning.Operation" ‚Óä“O">/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools: aws_node_poolÚA%parent,aws_node_pool,aws_node_pool_idÊA + AwsNodePoolOperationMetadata +UpdateAwsNodePool7.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest.google.longrunning.Operation"¢‚Óä“]2L/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}: aws_node_poolÚAaws_node_pool,update_maskÊA + AwsNodePoolOperationMetadataÁ +GetAwsNodePool4.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest*.google.cloud.gkemulticloud.v1.AwsNodePool"M‚Óä“@>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}ÚAnameÔ +ListAwsNodePools6.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest7.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse"O‚Óä“@>/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePoolsÚAparentç +DeleteAwsNodePool7.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest.google.longrunning.Operation"z‚Óä“@*>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataÀ +GetAwsServerConfig8.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest..google.cloud.gkemulticloud.v1.AwsServerConfig"@‚Óä“31/v1/{name=projects/*/locations/*/awsServerConfig}ÚAnamePÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBå +!com.google.cloud.gkemulticloud.v1BAwsServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php new file mode 100644 index 0000000000000000000000000000000000000000..5f0ffa7e86d117db00181d1384ed1f112601cadf GIT binary patch literal 7067 zcmc&(UsD^&5sxH;VZ`6%Y}Q;H@9D@LzO$u+a}pvSNdyQ=K7$k?bE%Z7wpOc=*s$8! z+CRkD#ka^qp7WTORHZ7F?~qS%c??zg3aNC@>^}+FTAYXQ#A>E{dU}4{{p*=;erccC zN4Na zX<6wr);DQMH<{lp_0Q?RH$6jqU2K-LH@-tvhl<&5k?SYK(gxJEHJvJljol;aX0S(M`>Dl?tkCh8oFRqQIZ+cT7W9Tu+0=m36~a4a@Kh%{1P? z=5~~xX1Wwq+??Cox;t>?oma4fGHArd_i<>R6iD-lwka z7`Dfp223rN`_zlPioa|;4wglAMo-xgHkQjbjNDN?$EV5F6~&>R?^w^d-KgLy`ma64 za~0cY9~ji^?$R^u!eCCh9PcVt@-ETPsp+N0A60vg4F=2#)w${QMec1G01!_b*yCmS zu{`~S5gbCL+l_pF0C3%iyo5gcoc!}E^7RMcRC*|ciX6_xA#fKjHrE~mIyKuUg%B4A zUwiicby_iL{&6IXR%WG_WL{^M=P*;XP0gb66j%9GDwRU8fpS9I z5t-L~?~FOd8^{W<>1nQQGmW-NQc$R?k|_*bD&GY)3tOqw1jkf7K|xfLlkSljYISV} z*p+8M6F;Dwv_x_~_W z3`J7D4S6<@noB1I0E6`0m*>$i>6GL(%VL;indQn0N)A^3CR}-Zm<*kGu@Z|{;iNCo zwv5zn6B%J-GOY{n1DF}!r3#zx8GTvemQKRecY$~`8}E}(?RswgNds>41RR7r@a*r*5G zsL}+Zjv~2)U29upX%r7qp5)HyWsuP3$<&2r`c$N{a&|jY@W~X9CJ3bElUAiwRbL&S zG^%^GgIaZe=?4%i#molL7Zu8YK|Hw*y9)_rmD?my}2}n1N+s(W@R7LPM7`bibEa`mjIFIAp5&TNa&^HSxQw1!{1Te zb4zc7|E@|V1I%IIl-`E_UI~U2X%6 zL9T^hQeD3T7U1fbuSLZv{Arpj3(FIUS^9|Fy`YYZ**Ib8eKH&CNK`GHJy2cXaB;!P zNC$+t?pYWVBKtj^fIn`@iF+2KFDt!(1k0GGUNF;#G%Cths?gXs-18P4K#dYvJ%hRi znqh^yZc(>x>iP{?K|0*gT&hw_cP?#Sy|4h}w|<&tqx*q)HIha|pp|m~#@A716*XW| z>~h~VP%idf29uu7Q*6@41#V-yq{oFvEj%K3pxU@lW3jT7(`*)uLdL)gf3XF^iMrAt zl0$9i3^XJZIvqe|aiNx>@=4on3PI2-caA!!2M!``?W90Y-Gg5WY!={qsvG` z!H@_N2xpCVQ`&`Qm|6#D0o2Gh3}{jmGTFkfAf@80#CZYv8^iDfV_b&Fqd+Ej^l~+Y zB3b1cZh}Z!A=8kXG0bD-FJ0mq+28IH8q4G;tb z1ajhN-jmOf=nEPJWGAHV4|!aqYCA(n$K3rxQpEp@YX32FUHLl#s5Bb3AbjEInR!+C%M@9Rl7mM8WC0ZD z`!*m&$i?$p+iCGE>>H&-P=JjA^s1_NY18-yVw6^6mCA2@7_A;AnV1Z z<5rY$?J3D86ij58Eh0yN9jOo!5F#wQ9N#+gA)z6FImgQKK}dOtLBy~aEc_=Eu(cCt z9jOyU!tiC}3$g&cyU|sHhEH^z`E)ht+imw$^ocdA$Dr3;b$#1r4m?$;TJWZT7nv?l zNN8ot)^+8ajNH(UYtM)5{rRo3MpCr!8Cl_O9kFw9q`fUXB@29B)Ow;{p~&-FN!Uwt z)xm2*;WFgX;_fB75t2S555guN_`2^P^^Y!VqqLKgw#k=z@&;8+GTxh#5wpn^*28u^ zaqR=QC3oQ--i34_+V#SZ0|tk1MmX^bb7R`>zcS<#xDt7PTvZ!U;dncE zb;4(-ct#uEovyQrP*E;(sd9N}O1XTx*_r0Xef@d#?C?Z9internalAddGeneratedFile( + ' +Ê8 +1google/cloud/gkemulticloud/v1/azure_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto3google/cloud/gkemulticloud/v1/azure_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"Ý +CreateAzureClusterRequestA +parent ( B1àAúA+)gkemulticloud.googleapis.com/AzureClusterG + azure_cluster ( 2+.google.cloud.gkemulticloud.v1.AzureClusterBàA +azure_cluster_id ( BàA + validate_only ("± +UpdateAzureClusterRequestG + azure_cluster ( 2+.google.cloud.gkemulticloud.v1.AzureClusterBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"Y +GetAzureClusterRequest? +name ( B1àAúA+ +)gkemulticloud.googleapis.com/AzureCluster"„ +ListAzureClustersRequestA +parent ( B1àAúA+)gkemulticloud.googleapis.com/AzureCluster + page_size ( + +page_token ( "y +ListAzureClustersResponseC +azure_clusters ( 2+.google.cloud.gkemulticloud.v1.AzureCluster +next_page_token ( "˜ +DeleteAzureClusterRequest? +name ( B1àAúA+ +)gkemulticloud.googleapis.com/AzureCluster + allow_missing ( + validate_only ( +etag ( "ä +CreateAzureNodePoolRequestB +parent ( B2àAúA,*gkemulticloud.googleapis.com/AzureNodePoolJ +azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolBàA +azure_node_pool_id ( BàA + validate_only ("µ +UpdateAzureNodePoolRequestJ +azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolBàA + validate_only (4 + update_mask ( 2.google.protobuf.FieldMaskBàA"[ +GetAzureNodePoolRequest@ +name ( B2àAúA, +*gkemulticloud.googleapis.com/AzureNodePool"† +ListAzureNodePoolsRequestB +parent ( B2àAúA,*gkemulticloud.googleapis.com/AzureNodePool + page_size ( + +page_token ( "} +ListAzureNodePoolsResponseF +azure_node_pools ( 2,.google.cloud.gkemulticloud.v1.AzureNodePool +next_page_token ( "š +DeleteAzureNodePoolRequest@ +name ( B2àAúA, +*gkemulticloud.googleapis.com/AzureNodePool + validate_only ( + allow_missing ( +etag ( "c +GetAzureServerConfigRequestD +name ( B6àAúA0 +.gkemulticloud.googleapis.com/AzureServerConfig"Ø +CreateAzureClientRequest@ +parent ( B0àAúA*(gkemulticloud.googleapis.com/AzureClientE + azure_client ( 2*.google.cloud.gkemulticloud.v1.AzureClientBàA +azure_client_id ( BàA + validate_only ("W +GetAzureClientRequest> +name ( B0àAúA* +(gkemulticloud.googleapis.com/AzureClient"‚ +ListAzureClientsRequest@ +parent ( B0àAúA*(gkemulticloud.googleapis.com/AzureClient + page_size ( + +page_token ( "v +ListAzureClientsResponseA + azure_clients ( 2*.google.cloud.gkemulticloud.v1.AzureClient +next_page_token ( "ˆ +DeleteAzureClientRequest> +name ( B0àAúA* +(gkemulticloud.googleapis.com/AzureClient + allow_missing ( + validate_only ("k +GenerateAzureAccessTokenRequestH + azure_cluster ( B1àAúA+ +)gkemulticloud.googleapis.com/AzureCluster"w + GenerateAzureAccessTokenResponse + access_token ( BàA8 +expiration_time ( 2.google.protobuf.TimestampBàA2Ý + AzureClustersý +CreateAzureClient7.google.cloud.gkemulticloud.v1.CreateAzureClientRequest.google.longrunning.Operation"‚Óä“@"0/v1/{parent=projects/*/locations/*}/azureClients: azure_clientÚA#parent,azure_client,azure_client_idÊA + AzureClientOperationMetadata³ +GetAzureClient4.google.cloud.gkemulticloud.v1.GetAzureClientRequest*.google.cloud.gkemulticloud.v1.AzureClient"?‚Óä“20/v1/{name=projects/*/locations/*/azureClients/*}ÚAnameÆ +ListAzureClients6.google.cloud.gkemulticloud.v1.ListAzureClientsRequest7.google.cloud.gkemulticloud.v1.ListAzureClientsResponse"A‚Óä“20/v1/{parent=projects/*/locations/*}/azureClientsÚAparentÙ +DeleteAzureClient7.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest.google.longrunning.Operation"l‚Óä“2*0/v1/{name=projects/*/locations/*/azureClients/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadata„ +CreateAzureCluster8.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest.google.longrunning.Operation"”‚Óä“B"1/v1/{parent=projects/*/locations/*}/azureClusters: azure_clusterÚA%parent,azure_cluster,azure_cluster_idÊA! + AzureClusterOperationMetadata† +UpdateAzureCluster8.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest.google.longrunning.Operation"–‚Óä“P2?/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}: azure_clusterÚAazure_cluster,update_maskÊA! + AzureClusterOperationMetadata· +GetAzureCluster5.google.cloud.gkemulticloud.v1.GetAzureClusterRequest+.google.cloud.gkemulticloud.v1.AzureCluster"@‚Óä“31/v1/{name=projects/*/locations/*/azureClusters/*}ÚAnameÊ +ListAzureClusters7.google.cloud.gkemulticloud.v1.ListAzureClustersRequest8.google.cloud.gkemulticloud.v1.ListAzureClustersResponse"B‚Óä“31/v1/{parent=projects/*/locations/*}/azureClustersÚAparentÜ +DeleteAzureCluster8.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest.google.longrunning.Operation"m‚Óä“3*1/v1/{name=projects/*/locations/*/azureClusters/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataø +GenerateAzureAccessToken>.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest?.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse"[‚Óä“US/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessTokenž +CreateAzureNodePool9.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest.google.longrunning.Operation"¬‚Óä“U"B/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools:azure_node_poolÚA)parent,azure_node_pool,azure_node_pool_idÊA" + AzureNodePoolOperationMetadata  +UpdateAzureNodePool9.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest.google.longrunning.Operation"®‚Óä“e2R/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}:azure_node_poolÚAazure_node_pool,update_maskÊA" + AzureNodePoolOperationMetadataË +GetAzureNodePool6.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest,.google.cloud.gkemulticloud.v1.AzureNodePool"Q‚Óä“DB/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}ÚAnameÞ +ListAzureNodePools8.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest9.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse"S‚Óä“DB/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePoolsÚAparentï +DeleteAzureNodePool9.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest.google.longrunning.Operation"~‚Óä“D*B/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}ÚAnameÊA* +google.protobuf.EmptyOperationMetadataÈ +GetAzureServerConfig:.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest0.google.cloud.gkemulticloud.v1.AzureServerConfig"B‚Óä“53/v1/{name=projects/*/locations/*/azureServerConfig}ÚAnamePÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBç +!com.google.cloud.gkemulticloud.v1BAzureServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php new file mode 100644 index 0000000000000000000000000000000000000000..c405f78106ee45076528d9adfc59a50461a802b6 GIT binary patch literal 2183 zcmbVNUsKyg5U=g9q1d(maUL4A?TI#n=Oel#Hk9SvtfOS*M;P zH?+e{KTkhKAN!b3(C2)Lu5_{t4K$tj$-3SB?e1@Xcl*`z;52{-WSjX+(ug^ve@>!P zMgl1!VGED+#>^ciP)*RXKWCA z5m#Ts)f&bRgl|cv+(SK00N~RB3j=C1vfbHgv4}b}qP^`Dt5;93dfS(=dPl440JcZN zkknJm{ShSm1_XaW-1oRm!iZve@{orX_j$yr$A884HpmI}LWUS``<}$U9dY54B%tlv zY~?Xgn2GPhKp-6(WK>)yVF=mj?f4OsKJ|JH7TS^rk&qp9H4K+UIj_md%Hu3;0>@9t zimK5t-YRl~L^5WVvlAj&6ia_Stvdm@$p7`Op>8way(VX#v&By7kPB%Thh-< zXeub2M=ctatu$8s0Tx~edFBb~>^RJicywMD{t0(A4SDy3RLx=aF$^%QDhui4qim=E#6A{Q?@1ekVz@z$TTrFRp8c;$^PQh_~-#F zNcMA#>S2y$Q@l!^mv*{1iB8igWc76cX7-SlZc11gN@wg`4I!}?aXJ%2>cvb=K%F&U zlHq$~tGaKm)kfT0FAhD&*UdC6MX4Ucr25nrKr@?7v);81_YOK{eW$r&Hp(ApAHnQi z+d8O!V>S+V&2k}e?ChIObKkmrUes;_;DPzQSwHNWc0yxV1quB;VBQsjg_iD!rZQKUGBS?Hrr56-dy3MVl6w>Yo>=U-_di9lSM1Q>YoKz zxZb3_gbMR%-(#343koq=Y326X^Y==oY~(;@d3m2g%ZvvQ}^N7 zJGyA8_)Z?4arPP9y}^VEnNplN=~$+>-W1?I()Zt)w(cMqxCry5g()M^DZKnPyW_6# zsPF1Rx;2;i*iR&C%0vSm-mqQQuRMx>6z^@P`%_Q%r;huxmF!~mb+r1|$ll8qY_eg; x9z9&KZ;C`g7)Bap7*|{j<7l-%nHKltQU1(-u9nuN9e3k?OFh*Vx_}FSe*njUxCQ_K literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php new file mode 100644 index 000000000000..9f956818f542 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php @@ -0,0 +1,877 @@ +google.cloud.gkemulticloud.v1.AttachedCluster + */ +class AttachedCluster extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. OpenID Connect (OIDC) configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $oidc_config = null; + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $platform_version = ''; + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $distribution = ''; + /** + * Output only. The region where this cluster runs. + * For EKS clusters, this is a AWS region. For AKS clusters, + * this is an Azure region. + * + * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cluster_region = ''; + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fleet = null; + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this cluster was registered. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + */ + protected $etag = ''; + /** + * Output only. The Kubernetes version of the cluster. + * + * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $kubernetes_version = ''; + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $workload_identity_config = null; + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $logging_config = null; + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Optional. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $authorization = null; + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $monitoring_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type string $description + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * @type \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig $oidc_config + * Required. OpenID Connect (OIDC) configuration for the cluster. + * @type string $platform_version + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @type string $distribution + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * @type string $cluster_region + * Output only. The region where this cluster runs. + * For EKS clusters, this is a AWS region. For AKS clusters, + * this is an Azure region. + * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet + * Required. Fleet configuration. + * @type int $state + * Output only. The current state of the cluster. + * @type string $uid + * Output only. A globally unique identifier for the cluster. + * @type bool $reconciling + * Output only. If set, there are currently changes in flight to the cluster. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this cluster was registered. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this cluster was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type string $kubernetes_version + * Output only. The Kubernetes version of the cluster. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config + * Output only. Workload Identity settings. + * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config + * Optional. Logging configuration for this cluster. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization $authorization + * Optional. Configuration related to the cluster RBAC settings. + * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config + * Optional. Monitoring configuration for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field 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; + } + + /** + * Required. OpenID Connect (OIDC) configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig|null + */ + public function getOidcConfig() + { + return $this->oidc_config; + } + + public function hasOidcConfig() + { + return isset($this->oidc_config); + } + + public function clearOidcConfig() + { + unset($this->oidc_config); + } + + /** + * Required. OpenID Connect (OIDC) configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig $var + * @return $this + */ + public function setOidcConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig::class); + $this->oidc_config = $var; + + return $this; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPlatformVersion() + { + return $this->platform_version; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPlatformVersion($var) + { + GPBUtil::checkString($var, True); + $this->platform_version = $var; + + return $this; + } + + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDistribution() + { + return $this->distribution; + } + + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDistribution($var) + { + GPBUtil::checkString($var, True); + $this->distribution = $var; + + return $this; + } + + /** + * Output only. The region where this cluster runs. + * For EKS clusters, this is a AWS region. For AKS clusters, + * this is an Azure region. + * + * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getClusterRegion() + { + return $this->cluster_region; + } + + /** + * Output only. The region where this cluster runs. + * For EKS clusters, this is a AWS region. For AKS clusters, + * this is an Azure region. + * + * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setClusterRegion($var) + { + GPBUtil::checkString($var, True); + $this->cluster_region = $var; + + return $this; + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null + */ + public function getFleet() + { + return $this->fleet; + } + + public function hasFleet() + { + return isset($this->fleet); + } + + public function clearFleet() + { + unset($this->fleet); + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var + * @return $this + */ + public function setFleet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); + $this->fleet = $var; + + return $this; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this cluster was registered. + * + * 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 at which this cluster was registered. + * + * 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 at which this cluster was last 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 at which this cluster was last 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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. The Kubernetes version of the cluster. + * + * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getKubernetesVersion() + { + return $this->kubernetes_version; + } + + /** + * Output only. The Kubernetes version of the cluster. + * + * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setKubernetesVersion($var) + { + GPBUtil::checkString($var, True); + $this->kubernetes_version = $var; + + return $this; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null + */ + public function getWorkloadIdentityConfig() + { + return $this->workload_identity_config; + } + + public function hasWorkloadIdentityConfig() + { + return isset($this->workload_identity_config); + } + + public function clearWorkloadIdentityConfig() + { + unset($this->workload_identity_config); + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); + $this->workload_identity_config = $var; + + return $this; + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedClusterError::class); + $this->errors = $arr; + + return $this; + } + + /** + * Optional. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization|null + */ + public function getAuthorization() + { + return $this->authorization; + } + + public function hasAuthorization() + { + return isset($this->authorization); + } + + public function clearAuthorization() + { + unset($this->authorization); + } + + /** + * Optional. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization $var + * @return $this + */ + public function setAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization::class); + $this->authorization = $var; + + return $this; + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php new file mode 100644 index 000000000000..51a928e34a8a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php @@ -0,0 +1,96 @@ +google.cloud.gkemulticloud.v1.AttachedCluster.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the cluster is being registered. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the cluster has been register and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading software components. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the cluster is being de-registered. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the cluster is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the cluster requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AttachedCluster_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php new file mode 100644 index 000000000000..7e2ea588596e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AttachedClusterError + */ +class AttachedClusterError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php new file mode 100644 index 000000000000..f020f59ff48b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AttachedClusterUser + */ +class AttachedClusterUser extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php new file mode 100644 index 000000000000..57e11504c53e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AttachedClustersAuthorization + */ +class AttachedClustersAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $admin_users; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdminUsers() + { + return $this->admin_users; + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdminUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser::class); + $this->admin_users = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php new file mode 100644 index 000000000000..dcd909c8a16e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php @@ -0,0 +1,181 @@ +_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAttachedClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAttachedClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Imports creates a new + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + * Attached Clusters created before the introduction of the Anthos Multi-Cloud + * API can be imported through this method. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\ImportAttachedClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ImportAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\ImportAttachedClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAttachedClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\GetAttachedClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources on a given Google Cloud project and region. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAttachedClusters(\Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAttachedClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAttachedClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Returns information, such as supported Kubernetes versions, on a given + * Google Cloud location. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAttachedServerConfigRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAttachedServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAttachedServerConfigRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AttachedServerConfig', 'decode'], + $metadata, $options); + } + + /** + * Generates the install manifest to be installed on the target cluster. + * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GenerateAttachedClusterInstallManifest(\Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestResponse', 'decode'], + $metadata, $options); + } + +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php new file mode 100644 index 000000000000..82a830dd5f33 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php @@ -0,0 +1,129 @@ +google.cloud.gkemulticloud.v1.AttachedOidcConfig + */ +class AttachedOidcConfig extends \Google\Protobuf\Internal\Message +{ + /** + * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + * + * Generated from protobuf field string issuer_url = 1; + */ + protected $issuer_url = ''; + /** + * Optional. OIDC verification keys in JWKS format (RFC 7517). + * It contains a list of OIDC verification keys that can be used to verify + * OIDC JWTs. + * This field is required for cluster that doesn't have a publicly available + * discovery endpoint. When provided, it will be directly used + * to verify the OIDC JWT asserted by the IDP. + * + * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $jwks = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issuer_url + * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + * @type string $jwks + * Optional. OIDC verification keys in JWKS format (RFC 7517). + * It contains a list of OIDC verification keys that can be used to verify + * OIDC JWTs. + * This field is required for cluster that doesn't have a publicly available + * discovery endpoint. When provided, it will be directly used + * to verify the OIDC JWT asserted by the IDP. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + * + * Generated from protobuf field string issuer_url = 1; + * @return string + */ + public function getIssuerUrl() + { + return $this->issuer_url; + } + + /** + * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + * + * Generated from protobuf field string issuer_url = 1; + * @param string $var + * @return $this + */ + public function setIssuerUrl($var) + { + GPBUtil::checkString($var, True); + $this->issuer_url = $var; + + return $this; + } + + /** + * Optional. OIDC verification keys in JWKS format (RFC 7517). + * It contains a list of OIDC verification keys that can be used to verify + * OIDC JWTs. + * This field is required for cluster that doesn't have a publicly available + * discovery endpoint. When provided, it will be directly used + * to verify the OIDC JWT asserted by the IDP. + * + * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getJwks() + { + return $this->jwks; + } + + /** + * Optional. OIDC verification keys in JWKS format (RFC 7517). + * It contains a list of OIDC verification keys that can be used to verify + * OIDC JWTs. + * This field is required for cluster that doesn't have a publicly available + * discovery endpoint. When provided, it will be directly used + * to verify the OIDC JWT asserted by the IDP. + * + * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setJwks($var) + { + GPBUtil::checkString($var, False); + $this->jwks = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php new file mode 100644 index 000000000000..a81ade67a335 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo + */ +class AttachedPlatformVersionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Platform version name. + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Platform version name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * Platform version name. + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Platform version name. + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php new file mode 100644 index 000000000000..3257fd12cab9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php @@ -0,0 +1,102 @@ +google.cloud.gkemulticloud.v1.AttachedServerConfig + */ +class AttachedServerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the config. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * List of valid platform versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + */ + private $valid_versions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the config. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions + * List of valid platform versions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the config. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the config. + * + * 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; + } + + /** + * List of valid platform versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidVersions() + { + return $this->valid_versions; + } + + /** + * List of valid platform versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo::class); + $this->valid_versions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php new file mode 100644 index 000000000000..02a19ba26a49 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php @@ -0,0 +1,83 @@ +google.cloud.gkemulticloud.v1.AwsAuthorization + */ +class AwsAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $admin_users; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdminUsers() + { + return $this->admin_users; + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterUser>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdminUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterUser::class); + $this->admin_users = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php new file mode 100644 index 000000000000..dddb1fd5dc97 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php @@ -0,0 +1,118 @@ +google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + */ +class AwsAutoscalingGroupMetricsCollection extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The frequency at which EC2 Auto Scaling sends aggregated data to + * AWS CloudWatch. The only valid value is "1Minute". + * + * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $granularity = ''; + /** + * Optional. The metrics to enable. For a list of valid metrics, see + * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + * If you specify Granularity and don't specify any metrics, all metrics are + * enabled. + * + * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $metrics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $granularity + * Required. The frequency at which EC2 Auto Scaling sends aggregated data to + * AWS CloudWatch. The only valid value is "1Minute". + * @type array|\Google\Protobuf\Internal\RepeatedField $metrics + * Optional. The metrics to enable. For a list of valid metrics, see + * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + * If you specify Granularity and don't specify any metrics, all metrics are + * enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The frequency at which EC2 Auto Scaling sends aggregated data to + * AWS CloudWatch. The only valid value is "1Minute". + * + * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getGranularity() + { + return $this->granularity; + } + + /** + * Required. The frequency at which EC2 Auto Scaling sends aggregated data to + * AWS CloudWatch. The only valid value is "1Minute". + * + * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setGranularity($var) + { + GPBUtil::checkString($var, True); + $this->granularity = $var; + + return $this; + } + + /** + * Optional. The metrics to enable. For a list of valid metrics, see + * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + * If you specify Granularity and don't specify any metrics, all metrics are + * enabled. + * + * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Optional. The metrics to enable. For a list of valid metrics, see + * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + * If you specify Granularity and don't specify any metrics, all metrics are + * enabled. + * + * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metrics = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php new file mode 100644 index 000000000000..b069eab6fc8b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php @@ -0,0 +1,879 @@ +google.cloud.gkemulticloud.v1.AwsCluster + */ +class AwsCluster extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $networking = null; + /** + * Required. The AWS region where the cluster runs. + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * + * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_region = ''; + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $control_plane = null; + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorization = null; + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $endpoint = ''; + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + */ + protected $etag = ''; + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $workload_identity_config = null; + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cluster_ca_certificate = ''; + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fleet = null; + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $logging_config = null; + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $monitoring_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type string $description + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking $networking + * Required. Cluster-wide networking configuration. + * @type string $aws_region + * Required. The AWS region where the cluster runs. + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane $control_plane + * Required. Configuration related to the cluster control plane. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization $authorization + * Required. Configuration related to the cluster RBAC settings. + * @type int $state + * Output only. The current state of the cluster. + * @type string $endpoint + * Output only. The endpoint of the cluster's API server. + * @type string $uid + * Output only. A globally unique identifier for the cluster. + * @type bool $reconciling + * Output only. If set, there are currently changes in flight to the cluster. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this cluster was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this cluster was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config + * Output only. Workload Identity settings. + * @type string $cluster_ca_certificate + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet + * Required. Fleet configuration. + * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config + * Optional. Logging configuration for this cluster. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config + * Optional. Monitoring configuration for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field 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; + } + + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking|null + */ + public function getNetworking() + { + return $this->networking; + } + + public function hasNetworking() + { + return isset($this->networking); + } + + public function clearNetworking() + { + unset($this->networking); + } + + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking $var + * @return $this + */ + public function setNetworking($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking::class); + $this->networking = $var; + + return $this; + } + + /** + * Required. The AWS region where the cluster runs. + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * + * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAwsRegion() + { + return $this->aws_region; + } + + /** + * Required. The AWS region where the cluster runs. + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * + * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAwsRegion($var) + { + GPBUtil::checkString($var, True); + $this->aws_region = $var; + + return $this; + } + + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane|null + */ + public function getControlPlane() + { + return $this->control_plane; + } + + public function hasControlPlane() + { + return isset($this->control_plane); + } + + public function clearControlPlane() + { + unset($this->control_plane); + } + + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane $var + * @return $this + */ + public function setControlPlane($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane::class); + $this->control_plane = $var; + + return $this; + } + + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization|null + */ + public function getAuthorization() + { + return $this->authorization; + } + + public function hasAuthorization() + { + return isset($this->authorization); + } + + public function clearAuthorization() + { + unset($this->authorization); + } + + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization $var + * @return $this + */ + public function setAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization::class); + $this->authorization = $var; + + return $this; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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 at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null + */ + public function getWorkloadIdentityConfig() + { + return $this->workload_identity_config; + } + + public function hasWorkloadIdentityConfig() + { + return isset($this->workload_identity_config); + } + + public function clearWorkloadIdentityConfig() + { + unset($this->workload_identity_config); + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); + $this->workload_identity_config = $var; + + return $this; + } + + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getClusterCaCertificate() + { + return $this->cluster_ca_certificate; + } + + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setClusterCaCertificate($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ca_certificate = $var; + + return $this; + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null + */ + public function getFleet() + { + return $this->fleet; + } + + public function hasFleet() + { + return isset($this->fleet); + } + + public function clearFleet() + { + unset($this->fleet); + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var + * @return $this + */ + public function setFleet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); + $this->fleet = $var; + + return $this; + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterError::class); + $this->errors = $arr; + + return $this; + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php new file mode 100644 index 000000000000..59e416b25a7b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php @@ -0,0 +1,96 @@ +google.cloud.gkemulticloud.v1.AwsCluster.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the cluster is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the cluster has been created and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading the control plane replicas. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the cluster is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the cluster is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the cluster requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AwsCluster_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php new file mode 100644 index 000000000000..f40a291a78f8 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsClusterError + */ +class AwsClusterError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php new file mode 100644 index 000000000000..f4b4ded352a1 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php @@ -0,0 +1,161 @@ +google.cloud.gkemulticloud.v1.AwsClusterNetworking + */ +class AwsClusterNetworking extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * This field cannot be changed after creation. + * + * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vpc_id = ''; + /** + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $pod_address_cidr_blocks; + /** + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $service_address_cidr_blocks; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $vpc_id + * Required. The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * This field cannot be changed after creation. + * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * This field cannot be changed after creation. + * + * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVpcId() + { + return $this->vpc_id; + } + + /** + * Required. The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * This field cannot be changed after creation. + * + * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVpcId($var) + { + GPBUtil::checkString($var, True); + $this->vpc_id = $var; + + return $this; + } + + /** + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPodAddressCidrBlocks() + { + return $this->pod_address_cidr_blocks; + } + + /** + * Required. All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPodAddressCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pod_address_cidr_blocks = $arr; + + return $this; + } + + /** + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getServiceAddressCidrBlocks() + { + return $this->service_address_cidr_blocks; + } + + /** + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setServiceAddressCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_address_cidr_blocks = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php new file mode 100644 index 000000000000..005bd094c801 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsClusterUser + */ +class AwsClusterUser extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php new file mode 100644 index 000000000000..5b0cb23eabe2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php @@ -0,0 +1,16 @@ +_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAwsClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAwsCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAwsCluster(\Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AwsCluster', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * on a given Google Cloud project and region. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAwsClusters(\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. + * + * Fails if the cluster has one or more associated + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAwsClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAwsCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAwsClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Generates a short-lived access token to authenticate to a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GenerateAwsAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse', 'decode'], + $metadata, $options); + } + + /** + * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], + * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\CreateAwsNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\CreateAwsNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources on a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAwsNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAwsNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\DeleteAwsNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Returns information, such as supported AWS regions and Kubernetes + * versions, on a given Google Cloud location. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsServerConfigRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAwsServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAwsServerConfigRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AwsServerConfig', 'decode'], + $metadata, $options); + } + +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php new file mode 100644 index 000000000000..ed4be8aef12a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsConfigEncryption + */ +class AwsConfigEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ARN of the AWS KMS key used to encrypt user data. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $kms_key_arn = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kms_key_arn + * Required. The ARN of the AWS KMS key used to encrypt user data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt user data. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKmsKeyArn() + { + return $this->kms_key_arn; + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt user data. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKmsKeyArn($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_arn = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php new file mode 100644 index 000000000000..826ee8af1a67 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php @@ -0,0 +1,693 @@ +google.cloud.gkemulticloud.v1.AwsControlPlane + */ +class AwsControlPlane extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = ''; + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the cluster's version. + * + * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instance_type = ''; + /** + * Optional. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ssh_config = null; + /** + * Required. The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * + * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $subnet_ids; + /** + * Optional. The IDs of additional security groups to add to control plane + * replicas. The Anthos Multi-Cloud API will automatically create and manage + * security groups with the minimum rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $security_group_ids; + /** + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * + * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $iam_instance_profile = ''; + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $root_volume = null; + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 8 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $main_volume = null; + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_encryption = null; + /** + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Required. Authentication configuration for management of AWS resources. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_services_authentication = null; + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_config = null; + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config_encryption = null; + /** + * Optional. The placement to use on control plane instances. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instance_placement = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * @type string $instance_type + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the cluster's version. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config + * Optional. SSH configuration for how to access the underlying control plane + * machines. + * @type array|\Google\Protobuf\Internal\RepeatedField $subnet_ids + * Required. The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids + * Optional. The IDs of additional security groups to add to control plane + * replicas. The Anthos Multi-Cloud API will automatically create and manage + * security groups with the minimum rules needed for a functioning cluster. + * @type string $iam_instance_profile + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $main_volume + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 8 GiB with the GP2 volume type. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $database_encryption + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication $aws_services_authentication + * Required. Authentication configuration for management of AWS resources. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption + * Required. Config encryption for user data. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement + * Optional. The placement to use on control plane instances. + * When unspecified, the VPC's default tenancy will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the cluster's version. + * + * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getInstanceType() + { + return $this->instance_type; + } + + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the cluster's version. + * + * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setInstanceType($var) + { + GPBUtil::checkString($var, True); + $this->instance_type = $var; + + return $this; + } + + /** + * Optional. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null + */ + public function getSshConfig() + { + return $this->ssh_config; + } + + public function hasSshConfig() + { + return isset($this->ssh_config); + } + + public function clearSshConfig() + { + unset($this->ssh_config); + } + + /** + * Optional. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $var + * @return $this + */ + public function setSshConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig::class); + $this->ssh_config = $var; + + return $this; + } + + /** + * Required. The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * + * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubnetIds() + { + return $this->subnet_ids; + } + + /** + * Required. The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * + * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubnetIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->subnet_ids = $arr; + + return $this; + } + + /** + * Optional. The IDs of additional security groups to add to control plane + * replicas. The Anthos Multi-Cloud API will automatically create and manage + * security groups with the minimum rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecurityGroupIds() + { + return $this->security_group_ids; + } + + /** + * Optional. The IDs of additional security groups to add to control plane + * replicas. The Anthos Multi-Cloud API will automatically create and manage + * security groups with the minimum rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecurityGroupIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->security_group_ids = $arr; + + return $this; + } + + /** + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * + * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getIamInstanceProfile() + { + return $this->iam_instance_profile; + } + + /** + * Required. The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * + * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setIamInstanceProfile($var) + { + GPBUtil::checkString($var, True); + $this->iam_instance_profile = $var; + + return $this; + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null + */ + public function getRootVolume() + { + return $this->root_volume; + } + + public function hasRootVolume() + { + return isset($this->root_volume); + } + + public function clearRootVolume() + { + unset($this->root_volume); + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var + * @return $this + */ + public function setRootVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); + $this->root_volume = $var; + + return $this; + } + + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 8 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null + */ + public function getMainVolume() + { + return $this->main_volume; + } + + public function hasMainVolume() + { + return isset($this->main_volume); + } + + public function clearMainVolume() + { + unset($this->main_volume); + } + + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * Volumes will be provisioned in the availability zone associated + * with the corresponding subnet. + * When unspecified, it defaults to 8 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var + * @return $this + */ + public function setMainVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); + $this->main_volume = $var; + + return $this; + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption|null + */ + public function getDatabaseEncryption() + { + return $this->database_encryption; + } + + public function hasDatabaseEncryption() + { + return isset($this->database_encryption); + } + + public function clearDatabaseEncryption() + { + unset($this->database_encryption); + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $var + * @return $this + */ + public function setDatabaseEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption::class); + $this->database_encryption = $var; + + return $this; + } + + /** + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A set of AWS resource tags to propagate to all underlying managed + * AWS resources. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Required. Authentication configuration for management of AWS resources. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication|null + */ + public function getAwsServicesAuthentication() + { + return $this->aws_services_authentication; + } + + public function hasAwsServicesAuthentication() + { + return isset($this->aws_services_authentication); + } + + public function clearAwsServicesAuthentication() + { + unset($this->aws_services_authentication); + } + + /** + * Required. Authentication configuration for management of AWS resources. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication $var + * @return $this + */ + public function setAwsServicesAuthentication($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication::class); + $this->aws_services_authentication = $var; + + return $this; + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null + */ + public function getProxyConfig() + { + return $this->proxy_config; + } + + public function hasProxyConfig() + { + return isset($this->proxy_config); + } + + public function clearProxyConfig() + { + unset($this->proxy_config); + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $var + * @return $this + */ + public function setProxyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig::class); + $this->proxy_config = $var; + + return $this; + } + + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null + */ + public function getConfigEncryption() + { + return $this->config_encryption; + } + + public function hasConfigEncryption() + { + return isset($this->config_encryption); + } + + public function clearConfigEncryption() + { + unset($this->config_encryption); + } + + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $var + * @return $this + */ + public function setConfigEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption::class); + $this->config_encryption = $var; + + return $this; + } + + /** + * Optional. The placement to use on control plane instances. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null + */ + public function getInstancePlacement() + { + return $this->instance_placement; + } + + public function hasInstancePlacement() + { + return isset($this->instance_placement); + } + + public function clearInstancePlacement() + { + unset($this->instance_placement); + } + + /** + * Optional. The placement to use on control plane instances. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $var + * @return $this + */ + public function setInstancePlacement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement::class); + $this->instance_placement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php new file mode 100644 index 000000000000..e7e0ce60bd12 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsDatabaseEncryption + */ +class AwsDatabaseEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $kms_key_arn = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kms_key_arn + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKmsKeyArn() + { + return $this->kms_key_arn; + } + + /** + * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. + * + * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKmsKeyArn($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_arn = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php new file mode 100644 index 000000000000..e2eccd85ae67 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php @@ -0,0 +1,70 @@ +google.cloud.gkemulticloud.v1.AwsInstancePlacement + */ +class AwsInstancePlacement extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The tenancy for instance. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tenancy = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $tenancy + * Required. The tenancy for instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The tenancy for instance. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getTenancy() + { + return $this->tenancy; + } + + /** + * Required. The tenancy for instance. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setTenancy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement\Tenancy::class); + $this->tenancy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php new file mode 100644 index 000000000000..7c147a1fef41 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php @@ -0,0 +1,75 @@ +google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy + */ +class Tenancy +{ + /** + * Not set. + * + * Generated from protobuf enum TENANCY_UNSPECIFIED = 0; + */ + const TENANCY_UNSPECIFIED = 0; + /** + * Use default VPC tenancy. + * + * Generated from protobuf enum DEFAULT = 1; + */ + const PBDEFAULT = 1; + /** + * Run a dedicated instance. + * + * Generated from protobuf enum DEDICATED = 2; + */ + const DEDICATED = 2; + /** + * Launch this instance to a dedicated host. + * + * Generated from protobuf enum HOST = 3; + */ + const HOST = 3; + + private static $valueToName = [ + self::TENANCY_UNSPECIFIED => 'TENANCY_UNSPECIFIED', + self::PBDEFAULT => 'DEFAULT', + self::DEDICATED => 'DEDICATED', + self::HOST => 'HOST', + ]; + + 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(Tenancy::class, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement_Tenancy::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php new file mode 100644 index 000000000000..1c6525314c65 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AwsK8sVersionInfo + */ +class AwsK8sVersionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Kubernetes version name. + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Kubernetes version name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Kubernetes version name. + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Kubernetes version name. + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php new file mode 100644 index 000000000000..453635f072b7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php @@ -0,0 +1,607 @@ +google.cloud.gkemulticloud.v1.AwsNodeConfig + */ +class AwsNodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the node pool's version. + * + * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instance_type = ''; + /** + * Optional. Template for the root volume provisioned for node pool nodes. + * Volumes will be provisioned in the availability zone assigned + * to the node pool subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $root_volume = null; + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $taints; + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * + * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $iam_instance_profile = ''; + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image_type = ''; + /** + * Optional. The SSH configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ssh_config = null; + /** + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $security_group_ids; + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_config = null; + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config_encryption = null; + /** + * Optional. Placement related info for this node. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $instance_placement = null; + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $autoscaling_metrics_collection = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instance_type + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the node pool's version. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume + * Optional. Template for the root volume provisioned for node pool nodes. + * Volumes will be provisioned in the availability zone assigned + * to the node pool subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * @type array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints + * Optional. The initial taints assigned to nodes of this node pool. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * @type string $iam_instance_profile + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * @type string $image_type + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config + * Optional. The SSH configuration. + * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption + * Required. Config encryption for user data. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement + * Optional. Placement related info for this node. + * When unspecified, the VPC's default tenancy will be used. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $autoscaling_metrics_collection + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the node pool's version. + * + * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getInstanceType() + { + return $this->instance_type; + } + + /** + * Optional. The AWS instance type. + * When unspecified, it uses a default based on the node pool's version. + * + * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setInstanceType($var) + { + GPBUtil::checkString($var, True); + $this->instance_type = $var; + + return $this; + } + + /** + * Optional. Template for the root volume provisioned for node pool nodes. + * Volumes will be provisioned in the availability zone assigned + * to the node pool subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null + */ + public function getRootVolume() + { + return $this->root_volume; + } + + public function hasRootVolume() + { + return isset($this->root_volume); + } + + public function clearRootVolume() + { + unset($this->root_volume); + } + + /** + * Optional. Template for the root volume provisioned for node pool nodes. + * Volumes will be provisioned in the availability zone assigned + * to the node pool subnet. + * When unspecified, it defaults to 32 GiB with the GP2 volume type. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var + * @return $this + */ + public function setRootVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); + $this->root_volume = $var; + + return $this; + } + + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaints() + { + return $this->taints; + } + + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\NodeTaint::class); + $this->taints = $arr; + + return $this; + } + + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 4 [(.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; + } + + /** + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. Key/value metadata to assign to each underlying AWS resource. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * + * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getIamInstanceProfile() + { + return $this->iam_instance_profile; + } + + /** + * Required. The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * + * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setIamInstanceProfile($var) + { + GPBUtil::checkString($var, True); + $this->iam_instance_profile = $var; + + return $this; + } + + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * Optional. The SSH configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null + */ + public function getSshConfig() + { + return $this->ssh_config; + } + + public function hasSshConfig() + { + return isset($this->ssh_config); + } + + public function clearSshConfig() + { + unset($this->ssh_config); + } + + /** + * Optional. The SSH configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $var + * @return $this + */ + public function setSshConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig::class); + $this->ssh_config = $var; + + return $this; + } + + /** + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecurityGroupIds() + { + return $this->security_group_ids; + } + + /** + * Optional. The IDs of additional security groups to add to nodes in this + * pool. The manager will automatically create security groups with minimum + * rules needed for a functioning cluster. + * + * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecurityGroupIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->security_group_ids = $arr; + + return $this; + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null + */ + public function getProxyConfig() + { + return $this->proxy_config; + } + + public function hasProxyConfig() + { + return isset($this->proxy_config); + } + + public function clearProxyConfig() + { + unset($this->proxy_config); + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $var + * @return $this + */ + public function setProxyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig::class); + $this->proxy_config = $var; + + return $this; + } + + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null + */ + public function getConfigEncryption() + { + return $this->config_encryption; + } + + public function hasConfigEncryption() + { + return isset($this->config_encryption); + } + + public function clearConfigEncryption() + { + unset($this->config_encryption); + } + + /** + * Required. Config encryption for user data. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $var + * @return $this + */ + public function setConfigEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption::class); + $this->config_encryption = $var; + + return $this; + } + + /** + * Optional. Placement related info for this node. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null + */ + public function getInstancePlacement() + { + return $this->instance_placement; + } + + public function hasInstancePlacement() + { + return isset($this->instance_placement); + } + + public function clearInstancePlacement() + { + unset($this->instance_placement); + } + + /** + * Optional. Placement related info for this node. + * When unspecified, the VPC's default tenancy will be used. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $var + * @return $this + */ + public function setInstancePlacement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement::class); + $this->instance_placement = $var; + + return $this; + } + + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection|null + */ + public function getAutoscalingMetricsCollection() + { + return $this->autoscaling_metrics_collection; + } + + public function hasAutoscalingMetricsCollection() + { + return isset($this->autoscaling_metrics_collection); + } + + public function clearAutoscalingMetricsCollection() + { + unset($this->autoscaling_metrics_collection); + } + + /** + * Optional. Configuration related to CloudWatch metrics collection on the + * Auto Scaling group of the node pool. + * When unspecified, metrics collection is disabled. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $var + * @return $this + */ + public function setAutoscalingMetricsCollection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection::class); + $this->autoscaling_metrics_collection = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php new file mode 100644 index 000000000000..2c71f5573170 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php @@ -0,0 +1,639 @@ +google.cloud.gkemulticloud.v1.AwsNodePool + */ +class AwsNodePool extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = ''; + /** + * Required. The configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config = null; + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autoscaling = null; + /** + * Required. The subnet where the node pool node run. + * + * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subnet_id = ''; + /** + * Output only. The lifecycle state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently changes in flight to the node + * pool. + * + * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this node pool was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this node pool was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 21; + */ + protected $etag = ''; + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_pods_constraint = null; + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * @type string $version + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig $config + * Required. The configuration of the node pool. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling $autoscaling + * Required. Autoscaler configuration for this node pool. + * @type string $subnet_id + * Required. The subnet where the node pool node run. + * @type int $state + * Output only. The lifecycle state of the node pool. + * @type string $uid + * Output only. A globally unique identifier for the node pool. + * @type bool $reconciling + * Output only. If set, there are currently changes in flight to the node + * pool. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this node pool was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this node pool was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * 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; + } + + /** + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Required. The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Required. The configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Required. The configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * Required. The subnet where the node pool node run. + * + * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSubnetId() + { + return $this->subnet_id; + } + + /** + * Required. The subnet where the node pool node run. + * + * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->subnet_id = $var; + + return $this; + } + + /** + * Output only. The lifecycle state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The lifecycle state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently changes in flight to the node + * pool. + * + * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently changes in flight to the node + * pool. + * + * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this node pool was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.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 at which this node pool was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.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 at which this node pool was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.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 at which this node pool was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 21; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 21; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Key can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint|null + */ + public function getMaxPodsConstraint() + { + return $this->max_pods_constraint; + } + + public function hasMaxPodsConstraint() + { + return isset($this->max_pods_constraint); + } + + public function clearMaxPodsConstraint() + { + unset($this->max_pods_constraint); + } + + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $var + * @return $this + */ + public function setMaxPodsConstraint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint::class); + $this->max_pods_constraint = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError::class); + $this->errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php new file mode 100644 index 000000000000..6c57e22b0028 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php @@ -0,0 +1,95 @@ +google.cloud.gkemulticloud.v1.AwsNodePool.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the node pool is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the node pool has been created + * and is fully usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that the node pool is being reconciled. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the node pool is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the node pool is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the node pool requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AwsNodePool_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php new file mode 100644 index 000000000000..fa2cda6ccf53 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php @@ -0,0 +1,110 @@ +google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling + */ +class AwsNodePoolAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $min_node_count = 0; + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_node_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_node_count + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @type int $max_node_count + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php new file mode 100644 index 000000000000..c5a04b7d3934 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsNodePoolError + */ +class AwsNodePoolError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php new file mode 100644 index 000000000000..2e4dbf88c811 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AwsProxyConfig + */ +class AwsProxyConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy + * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file + * + * Generated from protobuf field string secret_arn = 1; + */ + protected $secret_arn = ''; + /** + * The version string of the AWS Secret Manager secret that contains the + * HTTP(S) proxy configuration. + * + * Generated from protobuf field string secret_version = 2; + */ + protected $secret_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $secret_arn + * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy + * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file + * @type string $secret_version + * The version string of the AWS Secret Manager secret that contains the + * HTTP(S) proxy configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy + * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file + * + * Generated from protobuf field string secret_arn = 1; + * @return string + */ + public function getSecretArn() + { + return $this->secret_arn; + } + + /** + * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy + * configuration. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file + * + * Generated from protobuf field string secret_arn = 1; + * @param string $var + * @return $this + */ + public function setSecretArn($var) + { + GPBUtil::checkString($var, True); + $this->secret_arn = $var; + + return $this; + } + + /** + * The version string of the AWS Secret Manager secret that contains the + * HTTP(S) proxy configuration. + * + * Generated from protobuf field string secret_version = 2; + * @return string + */ + public function getSecretVersion() + { + return $this->secret_version; + } + + /** + * The version string of the AWS Secret Manager secret that contains the + * HTTP(S) proxy configuration. + * + * Generated from protobuf field string secret_version = 2; + * @param string $var + * @return $this + */ + public function setSecretVersion($var) + { + GPBUtil::checkString($var, True); + $this->secret_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php new file mode 100644 index 000000000000..c00bfe0636c7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php @@ -0,0 +1,135 @@ +google.cloud.gkemulticloud.v1.AwsServerConfig + */ +class AwsServerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the config. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; + */ + private $valid_versions; + /** + * The list of supported AWS regions. + * + * Generated from protobuf field repeated string supported_aws_regions = 3; + */ + private $supported_aws_regions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the config. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions + * List of valid Kubernetes versions. + * @type array|\Google\Protobuf\Internal\RepeatedField $supported_aws_regions + * The list of supported AWS regions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the config. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the config. + * + * 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; + } + + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidVersions() + { + return $this->valid_versions; + } + + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo::class); + $this->valid_versions = $arr; + + return $this; + } + + /** + * The list of supported AWS regions. + * + * Generated from protobuf field repeated string supported_aws_regions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSupportedAwsRegions() + { + return $this->supported_aws_regions; + } + + /** + * The list of supported AWS regions. + * + * Generated from protobuf field repeated string supported_aws_regions = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSupportedAwsRegions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->supported_aws_regions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php new file mode 100644 index 000000000000..cef249ad091f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.AwsServicesAuthentication + */ +class AwsServicesAuthentication extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * + * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $role_arn = ''; + /** + * Optional. An identifier for the assumed role session. + * When unspecified, it defaults to `multicloud-service-agent`. + * + * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $role_session_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $role_arn + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * @type string $role_session_name + * Optional. An identifier for the assumed role session. + * When unspecified, it defaults to `multicloud-service-agent`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * + * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRoleArn() + { + return $this->role_arn; + } + + /** + * Required. The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * + * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRoleArn($var) + { + GPBUtil::checkString($var, True); + $this->role_arn = $var; + + return $this; + } + + /** + * Optional. An identifier for the assumed role session. + * When unspecified, it defaults to `multicloud-service-agent`. + * + * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRoleSessionName() + { + return $this->role_session_name; + } + + /** + * Optional. An identifier for the assumed role session. + * When unspecified, it defaults to `multicloud-service-agent`. + * + * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRoleSessionName($var) + { + GPBUtil::checkString($var, True); + $this->role_session_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php new file mode 100644 index 000000000000..a3e356328b16 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsSshConfig + */ +class AwsSshConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the EC2 key pair used to login into cluster machines. + * + * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ec2_key_pair = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ec2_key_pair + * Required. The name of the EC2 key pair used to login into cluster machines. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the EC2 key pair used to login into cluster machines. + * + * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEc2KeyPair() + { + return $this->ec2_key_pair; + } + + /** + * Required. The name of the EC2 key pair used to login into cluster machines. + * + * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEc2KeyPair($var) + { + GPBUtil::checkString($var, True); + $this->ec2_key_pair = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php new file mode 100644 index 000000000000..99028858b4e9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php @@ -0,0 +1,197 @@ +google.cloud.gkemulticloud.v1.AwsVolumeTemplate + */ +class AwsVolumeTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The size of the volume, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $size_gib = 0; + /** + * Optional. Type of the EBS volume. + * When unspecified, it defaults to GP2 volume. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $volume_type = 0; + /** + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. + * + * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $iops = 0; + /** + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. + * If not specified, the default Amazon managed key associated to + * the AWS region where this cluster runs will be used. + * + * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $kms_key_arn = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $size_gib + * Optional. The size of the volume, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * @type int $volume_type + * Optional. Type of the EBS volume. + * When unspecified, it defaults to GP2 volume. + * @type int $iops + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. + * @type string $kms_key_arn + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. + * If not specified, the default Amazon managed key associated to + * the AWS region where this cluster runs will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The size of the volume, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSizeGib() + { + return $this->size_gib; + } + + /** + * Optional. The size of the volume, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSizeGib($var) + { + GPBUtil::checkInt32($var); + $this->size_gib = $var; + + return $this; + } + + /** + * Optional. Type of the EBS volume. + * When unspecified, it defaults to GP2 volume. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getVolumeType() + { + return $this->volume_type; + } + + /** + * Optional. Type of the EBS volume. + * When unspecified, it defaults to GP2 volume. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setVolumeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate\VolumeType::class); + $this->volume_type = $var; + + return $this; + } + + /** + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. + * + * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getIops() + { + return $this->iops; + } + + /** + * Optional. The number of I/O operations per second (IOPS) to provision for + * GP3 volume. + * + * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setIops($var) + { + GPBUtil::checkInt32($var); + $this->iops = $var; + + return $this; + } + + /** + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. + * If not specified, the default Amazon managed key associated to + * the AWS region where this cluster runs will be used. + * + * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKmsKeyArn() + { + return $this->kms_key_arn; + } + + /** + * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + * used to encrypt AWS EBS volumes. + * If not specified, the default Amazon managed key associated to + * the AWS region where this cluster runs will be used. + * + * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKmsKeyArn($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_arn = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php new file mode 100644 index 000000000000..8a88654de373 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType + */ +class VolumeType +{ + /** + * Not set. + * + * Generated from protobuf enum VOLUME_TYPE_UNSPECIFIED = 0; + */ + const VOLUME_TYPE_UNSPECIFIED = 0; + /** + * GP2 (General Purpose SSD volume type). + * + * Generated from protobuf enum GP2 = 1; + */ + const GP2 = 1; + /** + * GP3 (General Purpose SSD volume type). + * + * Generated from protobuf enum GP3 = 2; + */ + const GP3 = 2; + + private static $valueToName = [ + self::VOLUME_TYPE_UNSPECIFIED => 'VOLUME_TYPE_UNSPECIFIED', + self::GP2 => 'GP2', + self::GP3 => 'GP3', + ]; + + 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(VolumeType::class, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate_VolumeType::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php new file mode 100644 index 000000000000..dc53da62729d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AzureAuthorization + */ +class AzureAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $admin_users; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdminUsers() + { + return $this->admin_users; + } + + /** + * Required. Users that can perform operations as a cluster admin. A managed + * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + * to the users. Up to ten admin users can be provided. + * For more info on RBAC, see + * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterUser>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdminUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterUser::class); + $this->admin_users = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php new file mode 100644 index 000000000000..0b11e8856493 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php @@ -0,0 +1,333 @@ +google.cloud.gkemulticloud.v1.AzureClient + */ +class AzureClient extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * `AzureClient` resource names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The Azure Active Directory Tenant ID. + * + * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tenant_id = ''; + /** + * Required. The Azure Active Directory Application ID. + * + * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $application_id = ''; + /** + * Optional. Annotations on the resource. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Output only. The PEM encoded x509 certificate. + * + * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pem_certificate = ''; + /** + * Output only. A globally unique identifier for the client. + * + * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time at which this resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * `AzureClient` resource names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type string $tenant_id + * Required. The Azure Active Directory Tenant ID. + * @type string $application_id + * Required. The Azure Active Directory Application ID. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the resource. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type string $pem_certificate + * Output only. The PEM encoded x509 certificate. + * @type string $uid + * Output only. A globally unique identifier for the client. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this resource was created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * `AzureClient` resource names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * `AzureClient` resource names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * Required. The Azure Active Directory Tenant ID. + * + * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTenantId() + { + return $this->tenant_id; + } + + /** + * Required. The Azure Active Directory Tenant ID. + * + * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTenantId($var) + { + GPBUtil::checkString($var, True); + $this->tenant_id = $var; + + return $this; + } + + /** + * Required. The Azure Active Directory Application ID. + * + * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getApplicationId() + { + return $this->application_id; + } + + /** + * Required. The Azure Active Directory Application ID. + * + * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setApplicationId($var) + { + GPBUtil::checkString($var, True); + $this->application_id = $var; + + return $this; + } + + /** + * Optional. Annotations on the resource. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the resource. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. The PEM encoded x509 certificate. + * + * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPemCertificate() + { + return $this->pem_certificate; + } + + /** + * Output only. The PEM encoded x509 certificate. + * + * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPemCertificate($var) + { + GPBUtil::checkString($var, True); + $this->pem_certificate = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the client. + * + * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the client. + * + * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time at which this resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 at which this resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php new file mode 100644 index 000000000000..017ffe4961e7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php @@ -0,0 +1,1035 @@ +google.cloud.gkemulticloud.v1.AzureCluster + */ +class AzureCluster extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The Azure region where the cluster runs. + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * + * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_region = ''; + /** + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * + * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource_group_id = ''; + /** + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_client = ''; + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $networking = null; + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $control_plane = null; + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorization = null; + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $endpoint = ''; + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + */ + protected $etag = ''; + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $workload_identity_config = null; + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cluster_ca_certificate = ''; + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fleet = null; + /** + * Output only. Managed Azure resources for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $managed_resources = null; + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $logging_config = null; + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $monitoring_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type string $description + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * @type string $azure_region + * Required. The Azure region where the cluster runs. + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * @type string $resource_group_id + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * @type string $azure_client + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking $networking + * Required. Cluster-wide networking configuration. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane $control_plane + * Required. Configuration related to the cluster control plane. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization $authorization + * Required. Configuration related to the cluster RBAC settings. + * @type int $state + * Output only. The current state of the cluster. + * @type string $endpoint + * Output only. The endpoint of the cluster's API server. + * @type string $uid + * Output only. A globally unique identifier for the cluster. + * @type bool $reconciling + * Output only. If set, there are currently changes in flight to the cluster. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this cluster was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this cluster was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config + * Output only. Workload Identity settings. + * @type string $cluster_ca_certificate + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet + * Required. Fleet configuration. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $managed_resources + * Output only. Managed Azure resources for this cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config + * Optional. Logging configuration for this cluster. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the cluster. + * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config + * Optional. Monitoring configuration for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Cluster names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A human readable description of this cluster. + * Cannot be longer than 255 UTF-8 encoded bytes. + * + * Generated from protobuf field 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; + } + + /** + * Required. The Azure region where the cluster runs. + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * + * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureRegion() + { + return $this->azure_region; + } + + /** + * Required. The Azure region where the cluster runs. + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * + * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureRegion($var) + { + GPBUtil::checkString($var, True); + $this->azure_region = $var; + + return $this; + } + + /** + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * + * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getResourceGroupId() + { + return $this->resource_group_id; + } + + /** + * Required. The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * + * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setResourceGroupId($var) + { + GPBUtil::checkString($var, True); + $this->resource_group_id = $var; + + return $this; + } + + /** + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureClient() + { + return $this->azure_client; + } + + /** + * Required. Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureClient($var) + { + GPBUtil::checkString($var, True); + $this->azure_client = $var; + + return $this; + } + + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking|null + */ + public function getNetworking() + { + return $this->networking; + } + + public function hasNetworking() + { + return isset($this->networking); + } + + public function clearNetworking() + { + unset($this->networking); + } + + /** + * Required. Cluster-wide networking configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking $var + * @return $this + */ + public function setNetworking($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking::class); + $this->networking = $var; + + return $this; + } + + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane|null + */ + public function getControlPlane() + { + return $this->control_plane; + } + + public function hasControlPlane() + { + return isset($this->control_plane); + } + + public function clearControlPlane() + { + unset($this->control_plane); + } + + /** + * Required. Configuration related to the cluster control plane. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane $var + * @return $this + */ + public function setControlPlane($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane::class); + $this->control_plane = $var; + + return $this; + } + + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization|null + */ + public function getAuthorization() + { + return $this->authorization; + } + + public function hasAuthorization() + { + return isset($this->authorization); + } + + public function clearAuthorization() + { + unset($this->authorization); + } + + /** + * Required. Configuration related to the cluster RBAC settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization $var + * @return $this + */ + public function setAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization::class); + $this->authorization = $var; + + return $this; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Output only. The endpoint of the cluster's API server. + * + * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the cluster. + * + * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently changes in flight to the cluster. + * + * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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 at which this cluster was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 13; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the cluster. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null + */ + public function getWorkloadIdentityConfig() + { + return $this->workload_identity_config; + } + + public function hasWorkloadIdentityConfig() + { + return isset($this->workload_identity_config); + } + + public function clearWorkloadIdentityConfig() + { + unset($this->workload_identity_config); + } + + /** + * Output only. Workload Identity settings. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); + $this->workload_identity_config = $var; + + return $this; + } + + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getClusterCaCertificate() + { + return $this->cluster_ca_certificate; + } + + /** + * Output only. PEM encoded x509 certificate of the cluster root of trust. + * + * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setClusterCaCertificate($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ca_certificate = $var; + + return $this; + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null + */ + public function getFleet() + { + return $this->fleet; + } + + public function hasFleet() + { + return isset($this->fleet); + } + + public function clearFleet() + { + unset($this->fleet); + } + + /** + * Required. Fleet configuration. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var + * @return $this + */ + public function setFleet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); + $this->fleet = $var; + + return $this; + } + + /** + * Output only. Managed Azure resources for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources|null + */ + public function getManagedResources() + { + return $this->managed_resources; + } + + public function hasManagedResources() + { + return isset($this->managed_resources); + } + + public function clearManagedResources() + { + unset($this->managed_resources); + } + + /** + * Output only. Managed Azure resources for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $var + * @return $this + */ + public function setManagedResources($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources::class); + $this->managed_resources = $var; + + return $this; + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Optional. Logging configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the cluster. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterError::class); + $this->errors = $arr; + + return $this; + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. Monitoring configuration for this cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php new file mode 100644 index 000000000000..e62a7b58f248 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php @@ -0,0 +1,96 @@ +google.cloud.gkemulticloud.v1.AzureCluster.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the cluster is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the cluster has been created and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading the control plane replicas. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the cluster is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the cluster is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the cluster requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AzureCluster_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php new file mode 100644 index 000000000000..cf9a9b6b2e5d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AzureClusterError + */ +class AzureClusterError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php new file mode 100644 index 000000000000..c4425dee6e7c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php @@ -0,0 +1,241 @@ +google.cloud.gkemulticloud.v1.AzureClusterNetworking + */ +class AzureClusterNetworking extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * This field cannot be changed after creation. + * + * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $virtual_network_id = ''; + /** + * Required. The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $pod_address_cidr_blocks; + /** + * Required. The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creating a cluster. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $service_address_cidr_blocks; + /** + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to + * AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" + * + * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_load_balancer_subnet_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $virtual_network_id + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * This field cannot be changed after creation. + * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks + * Required. The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creation. + * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks + * Required. The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creating a cluster. + * @type string $service_load_balancer_subnet_id + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to + * AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * This field cannot be changed after creation. + * + * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVirtualNetworkId() + { + return $this->virtual_network_id; + } + + /** + * Required. The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * This field cannot be changed after creation. + * + * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVirtualNetworkId($var) + { + GPBUtil::checkString($var, True); + $this->virtual_network_id = $var; + + return $this; + } + + /** + * Required. The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPodAddressCidrBlocks() + { + return $this->pod_address_cidr_blocks; + } + + /** + * Required. The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creation. + * + * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPodAddressCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pod_address_cidr_blocks = $arr; + + return $this; + } + + /** + * Required. The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creating a cluster. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getServiceAddressCidrBlocks() + { + return $this->service_address_cidr_blocks; + } + + /** + * Required. The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * This field cannot be changed after creating a cluster. + * + * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setServiceAddressCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_address_cidr_blocks = $arr; + + return $this; + } + + /** + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to + * AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" + * + * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceLoadBalancerSubnetId() + { + return $this->service_load_balancer_subnet_id; + } + + /** + * Optional. The ARM ID of the subnet where Kubernetes private service type + * load balancers are deployed. When unspecified, it defaults to + * AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" + * + * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceLoadBalancerSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->service_load_balancer_subnet_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php new file mode 100644 index 000000000000..ca301cadedac --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php @@ -0,0 +1,102 @@ +google.cloud.gkemulticloud.v1.AzureClusterResources + */ +class AzureClusterResources extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The ARM ID of the cluster network security group. + * + * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $network_security_group_id = ''; + /** + * Output only. The ARM ID of the control plane application security group. + * + * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $control_plane_application_security_group_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $network_security_group_id + * Output only. The ARM ID of the cluster network security group. + * @type string $control_plane_application_security_group_id + * Output only. The ARM ID of the control plane application security group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The ARM ID of the cluster network security group. + * + * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNetworkSecurityGroupId() + { + return $this->network_security_group_id; + } + + /** + * Output only. The ARM ID of the cluster network security group. + * + * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNetworkSecurityGroupId($var) + { + GPBUtil::checkString($var, True); + $this->network_security_group_id = $var; + + return $this; + } + + /** + * Output only. The ARM ID of the control plane application security group. + * + * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getControlPlaneApplicationSecurityGroupId() + { + return $this->control_plane_application_security_group_id; + } + + /** + * Output only. The ARM ID of the control plane application security group. + * + * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setControlPlaneApplicationSecurityGroupId($var) + { + GPBUtil::checkString($var, True); + $this->control_plane_application_security_group_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php new file mode 100644 index 000000000000..3aecd59fbf61 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AzureClusterUser + */ +class AzureClusterUser extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $username = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php new file mode 100644 index 000000000000..8920c0ef3e68 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php @@ -0,0 +1,16 @@ +_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureClient', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAzureClient(\Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AzureClient', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources on a given Google Cloud project and region. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAzureClients(\Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAzureClientsResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource. + * + * If the client is used by one or more clusters, deletion will + * fail and a `FAILED_PRECONDITION` error will be returned. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureClientRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAzureClient(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClientRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureClient', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource on a given GCP project and region. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\CreateAzureClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\CreateAzureClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAzureCluster(\Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AzureCluster', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources on a given Google Cloud project and region. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAzureClusters(\Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAzureClustersResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * + * Fails if the cluster has one or more associated + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAzureCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureCluster', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Generates a short-lived access token to authenticate to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GenerateAzureAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse', 'decode'], + $metadata, $options); + } + + /** + * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], + * attached to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\CreateAzureNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\CreateAzureNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAzureNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Describes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', 'decode'], + $metadata, $options); + } + + /** + * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources on a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListAzureNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsResponse', 'decode'], + $metadata, $options); + } + + /** + * Deletes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool', + $argument, + ['\Google\LongRunning\Operation', 'decode'], + $metadata, $options); + } + + /** + * Returns information, such as supported Azure regions and Kubernetes + * versions, on a given Google Cloud location. + * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureServerConfigRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetAzureServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAzureServerConfigRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig', + $argument, + ['\Google\Cloud\GkeMultiCloud\V1\AzureServerConfig', 'decode'], + $metadata, $options); + } + +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php new file mode 100644 index 000000000000..f90fcdd501a4 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php @@ -0,0 +1,131 @@ +google.cloud.gkemulticloud.v1.AzureConfigEncryption + */ +class AzureConfigEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * + * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $key_id = ''; + /** + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. + * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) + * in ASN.1 DER form. The string must be comprised of a single PEM block of + * type "PUBLIC KEY". + * + * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $public_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key_id + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * @type string $public_key + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. + * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) + * in ASN.1 DER form. The string must be comprised of a single PEM block of + * type "PUBLIC KEY". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * + * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKeyId() + { + return $this->key_id; + } + + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + * data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * + * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKeyId($var) + { + GPBUtil::checkString($var, True); + $this->key_id = $var; + + return $this; + } + + /** + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. + * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) + * in ASN.1 DER form. The string must be comprised of a single PEM block of + * type "PUBLIC KEY". + * + * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPublicKey() + { + return $this->public_key; + } + + /** + * Optional. RSA key of the Azure Key Vault public key to use for encrypting + * the data. + * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) + * in ASN.1 DER form. The string must be comprised of a single PEM block of + * type "PUBLIC KEY". + * + * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPublicKey($var) + { + GPBUtil::checkString($var, True); + $this->public_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php new file mode 100644 index 000000000000..92f3fed0095f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php @@ -0,0 +1,613 @@ +google.cloud.gkemulticloud.v1.AzureControlPlane + */ +class AzureControlPlane extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = ''; + /** + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless + * `AzureControlPlane.replica_placements` is specified. This subnet will also + * be used as default for `AzureControlPlane.endpoint_subnet_id` if + * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will + * be used as default for + * `AzureClusterNetworking.service_load_balancer_subnet_id`. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. + * + * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $subnet_id = ''; + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * For available VM sizes, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vm_size = ''; + /** + * Required. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ssh_config = null; + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * When unspecified, it defaults to 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $root_volume = null; + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * When unspecified, it defaults to a 8-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $main_volume = null; + /** + * Optional. Configuration related to application-layer secrets encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $database_encryption = null; + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_config = null; + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $config_encryption = null; + /** + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. + * + * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Optional. Configuration for where to place the control plane replicas. + * Up to three replica placement instances can be specified. If + * replica_placements is set, the replica placement instances will be applied + * to the three control plane replicas as evenly as possible. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $replica_placements; + /** + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" + * + * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $endpoint_subnet_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * @type string $subnet_id + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless + * `AzureControlPlane.replica_placements` is specified. This subnet will also + * be used as default for `AzureControlPlane.endpoint_subnet_id` if + * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will + * be used as default for + * `AzureClusterNetworking.service_load_balancer_subnet_id`. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. + * @type string $vm_size + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * For available VM sizes, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. + * When unspecified, it defaults to `Standard_DS2_v2`. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $ssh_config + * Required. SSH configuration for how to access the underlying control plane + * machines. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $root_volume + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * When unspecified, it defaults to 32-GiB Azure Disk. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $main_volume + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * When unspecified, it defaults to a 8-GiB Azure Disk. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption $database_encryption + * Optional. Configuration related to application-layer secrets encryption. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $proxy_config + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption + * Optional. Configuration related to vm config encryption. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. + * @type array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $replica_placements + * Optional. Configuration for where to place the control plane replicas. + * Up to three replica placement instances can be specified. If + * replica_placements is set, the replica placement instances will be applied + * to the three control plane replicas as evenly as possible. + * @type string $endpoint_subnet_id + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Required. The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * + * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless + * `AzureControlPlane.replica_placements` is specified. This subnet will also + * be used as default for `AzureControlPlane.endpoint_subnet_id` if + * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will + * be used as default for + * `AzureClusterNetworking.service_load_balancer_subnet_id`. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. + * + * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSubnetId() + { + return $this->subnet_id; + } + + /** + * Optional. The ARM ID of the default subnet for the control plane. The + * control plane VMs are deployed in this subnet, unless + * `AzureControlPlane.replica_placements` is specified. This subnet will also + * be used as default for `AzureControlPlane.endpoint_subnet_id` if + * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will + * be used as default for + * `AzureClusterNetworking.service_load_balancer_subnet_id`. + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. + * + * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->subnet_id = $var; + + return $this; + } + + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * For available VM sizes, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVmSize() + { + return $this->vm_size; + } + + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * For available VM sizes, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVmSize($var) + { + GPBUtil::checkString($var, True); + $this->vm_size = $var; + + return $this; + } + + /** + * Required. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig|null + */ + public function getSshConfig() + { + return $this->ssh_config; + } + + public function hasSshConfig() + { + return isset($this->ssh_config); + } + + public function clearSshConfig() + { + unset($this->ssh_config); + } + + /** + * Required. SSH configuration for how to access the underlying control plane + * machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $var + * @return $this + */ + public function setSshConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig::class); + $this->ssh_config = $var; + + return $this; + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * When unspecified, it defaults to 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null + */ + public function getRootVolume() + { + return $this->root_volume; + } + + public function hasRootVolume() + { + return isset($this->root_volume); + } + + public function clearRootVolume() + { + unset($this->root_volume); + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * control plane replica. + * When unspecified, it defaults to 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var + * @return $this + */ + public function setRootVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); + $this->root_volume = $var; + + return $this; + } + + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * When unspecified, it defaults to a 8-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null + */ + public function getMainVolume() + { + return $this->main_volume; + } + + public function hasMainVolume() + { + return isset($this->main_volume); + } + + public function clearMainVolume() + { + unset($this->main_volume); + } + + /** + * Optional. Configuration related to the main volume provisioned for each + * control plane replica. + * The main volume is in charge of storing all of the cluster's etcd state. + * When unspecified, it defaults to a 8-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var + * @return $this + */ + public function setMainVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); + $this->main_volume = $var; + + return $this; + } + + /** + * Optional. Configuration related to application-layer secrets encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption|null + */ + public function getDatabaseEncryption() + { + return $this->database_encryption; + } + + public function hasDatabaseEncryption() + { + return isset($this->database_encryption); + } + + public function clearDatabaseEncryption() + { + unset($this->database_encryption); + } + + /** + * Optional. Configuration related to application-layer secrets encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption $var + * @return $this + */ + public function setDatabaseEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption::class); + $this->database_encryption = $var; + + return $this; + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig|null + */ + public function getProxyConfig() + { + return $this->proxy_config; + } + + public function hasProxyConfig() + { + return isset($this->proxy_config); + } + + public function clearProxyConfig() + { + unset($this->proxy_config); + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $var + * @return $this + */ + public function setProxyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig::class); + $this->proxy_config = $var; + + return $this; + } + + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption|null + */ + public function getConfigEncryption() + { + return $this->config_encryption; + } + + public function hasConfigEncryption() + { + return isset($this->config_encryption); + } + + public function clearConfigEncryption() + { + unset($this->config_encryption); + } + + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $var + * @return $this + */ + public function setConfigEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption::class); + $this->config_encryption = $var; + + return $this; + } + + /** + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. + * + * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A set of tags to apply to all underlying control plane Azure + * resources. + * + * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Optional. Configuration for where to place the control plane replicas. + * Up to three replica placement instances can be specified. If + * replica_placements is set, the replica placement instances will be applied + * to the three control plane replicas as evenly as possible. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReplicaPlacements() + { + return $this->replica_placements; + } + + /** + * Optional. Configuration for where to place the control plane replicas. + * Up to three replica placement instances can be specified. If + * replica_placements is set, the replica placement instances will be applied + * to the three control plane replicas as evenly as possible. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReplicaPlacements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement::class); + $this->replica_placements = $arr; + + return $this; + } + + /** + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" + * + * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEndpointSubnetId() + { + return $this->endpoint_subnet_id; + } + + /** + * Optional. The ARM ID of the subnet where the control plane load balancer is + * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. + * Example: + * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" + * + * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEndpointSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->endpoint_subnet_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php new file mode 100644 index 000000000000..21c7b8009267 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php @@ -0,0 +1,85 @@ +google.cloud.gkemulticloud.v1.AzureDatabaseEncryption + */ +class AzureDatabaseEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * Encryption will always take the latest version of the key and hence + * specific version is not supported. + * + * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $key_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key_id + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * Encryption will always take the latest version of the key and hence + * specific version is not supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * Encryption will always take the latest version of the key and hence + * specific version is not supported. + * + * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKeyId() + { + return $this->key_id; + } + + /** + * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. + * For example: + * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` + * Encryption will always take the latest version of the key and hence + * specific version is not supported. + * + * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKeyId($var) + { + GPBUtil::checkString($var, True); + $this->key_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php new file mode 100644 index 000000000000..f3c1a39446b7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php @@ -0,0 +1,75 @@ +google.cloud.gkemulticloud.v1.AzureDiskTemplate + */ +class AzureDiskTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The size of the disk, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $size_gib = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $size_gib + * Optional. The size of the disk, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The size of the disk, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSizeGib() + { + return $this->size_gib; + } + + /** + * Optional. The size of the disk, in GiBs. + * When unspecified, a default value is provided. See the specific reference + * in the parent resource. + * + * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSizeGib($var) + { + GPBUtil::checkInt32($var); + $this->size_gib = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php new file mode 100644 index 000000000000..c5f4598bb33e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AzureK8sVersionInfo + */ +class AzureK8sVersionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * A supported Kubernetes version (for example, `1.19.10-gke.1000`) + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * A supported Kubernetes version (for example, `1.19.10-gke.1000`) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * A supported Kubernetes version (for example, `1.19.10-gke.1000`) + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * A supported Kubernetes version (for example, `1.19.10-gke.1000`) + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php new file mode 100644 index 000000000000..6008f9ede920 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php @@ -0,0 +1,436 @@ +google.cloud.gkemulticloud.v1.AzureNodeConfig + */ +class AzureNodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * See [Supported VM + * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vm_size = ''; + /** + * Optional. Configuration related to the root volume provisioned for each + * node pool machine. + * When unspecified, it defaults to a 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $root_volume = null; + /** + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image_type = ''; + /** + * Required. SSH configuration for how to access the node pool machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ssh_config = null; + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_config = null; + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $config_encryption = null; + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $taints; + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $vm_size + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * See [Supported VM + * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. + * When unspecified, it defaults to `Standard_DS2_v2`. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $root_volume + * Optional. Configuration related to the root volume provisioned for each + * node pool machine. + * When unspecified, it defaults to a 32-GiB Azure Disk. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * @type string $image_type + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $ssh_config + * Required. SSH configuration for how to access the node pool machines. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $proxy_config + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption + * Optional. Configuration related to vm config encryption. + * @type array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints + * Optional. The initial taints assigned to nodes of this node pool. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * See [Supported VM + * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVmSize() + { + return $this->vm_size; + } + + /** + * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. + * See [Supported VM + * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. + * When unspecified, it defaults to `Standard_DS2_v2`. + * + * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVmSize($var) + { + GPBUtil::checkString($var, True); + $this->vm_size = $var; + + return $this; + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * node pool machine. + * When unspecified, it defaults to a 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null + */ + public function getRootVolume() + { + return $this->root_volume; + } + + public function hasRootVolume() + { + return isset($this->root_volume); + } + + public function clearRootVolume() + { + unset($this->root_volume); + } + + /** + * Optional. Configuration related to the root volume provisioned for each + * node pool machine. + * When unspecified, it defaults to a 32-GiB Azure Disk. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var + * @return $this + */ + public function setRootVolume($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); + $this->root_volume = $var; + + return $this; + } + + /** + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. A set of tags to apply to all underlying Azure resources for this + * node pool. This currently only includes Virtual Machine Scale Sets. + * Specify at most 50 pairs containing alphanumerics, spaces, and symbols + * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + * 255 Unicode characters. + * + * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * Optional. The OS image type to use on node pool instances. + * Can have a value of `ubuntu`, or `windows` if the cluster enables + * the Windows node pool preview feature. + * When unspecified, it defaults to `ubuntu`. + * + * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * Required. SSH configuration for how to access the node pool machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig|null + */ + public function getSshConfig() + { + return $this->ssh_config; + } + + public function hasSshConfig() + { + return isset($this->ssh_config); + } + + public function clearSshConfig() + { + unset($this->ssh_config); + } + + /** + * Required. SSH configuration for how to access the node pool machines. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $var + * @return $this + */ + public function setSshConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig::class); + $this->ssh_config = $var; + + return $this; + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig|null + */ + public function getProxyConfig() + { + return $this->proxy_config; + } + + public function hasProxyConfig() + { + return isset($this->proxy_config); + } + + public function clearProxyConfig() + { + unset($this->proxy_config); + } + + /** + * Optional. Proxy configuration for outbound HTTP(S) traffic. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $var + * @return $this + */ + public function setProxyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig::class); + $this->proxy_config = $var; + + return $this; + } + + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption|null + */ + public function getConfigEncryption() + { + return $this->config_encryption; + } + + public function hasConfigEncryption() + { + return isset($this->config_encryption); + } + + public function clearConfigEncryption() + { + unset($this->config_encryption); + } + + /** + * Optional. Configuration related to vm config encryption. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $var + * @return $this + */ + public function setConfigEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption::class); + $this->config_encryption = $var; + + return $this; + } + + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaints() + { + return $this->taints; + } + + /** + * Optional. The initial taints assigned to nodes of this node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\NodeTaint::class); + $this->taints = $arr; + + return $this; + } + + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The initial labels assigned to nodes of this node pool. An object + * containing a list of "key": value pairs. Example: { "name": "wrench", + * "mass": "1.3kg", "count": "3" }. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php new file mode 100644 index 000000000000..957f0cef0a6c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php @@ -0,0 +1,669 @@ +google.cloud.gkemulticloud.v1.AzureNodePool + */ +class AzureNodePool extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $version = ''; + /** + * Required. The node configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config = null; + /** + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * + * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subnet_id = ''; + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autoscaling = null; + /** + * Output only. The current state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. If set, there are currently pending changes to the node + * pool. + * + * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reconciling = false; + /** + * Output only. The time at which this node pool 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 at which this node pool was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12; + */ + protected $etag = ''; + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_pods_constraint = null; + /** + * Optional. The Azure availability zone of the nodes in this nodepool. + * When unspecified, it defaults to `1`. + * + * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $azure_availability_zone = ''; + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * @type string $version + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $config + * Required. The node configuration of the node pool. + * @type string $subnet_id + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $autoscaling + * Required. Autoscaler configuration for this node pool. + * @type int $state + * Output only. The current state of the node pool. + * @type string $uid + * Output only. A globally unique identifier for the node pool. + * @type bool $reconciling + * Output only. If set, there are currently pending changes to the node + * pool. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this node pool was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which this node pool was last updated. + * @type string $etag + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * @type string $azure_availability_zone + * Optional. The Azure availability zone of the nodes in this nodepool. + * When unspecified, it defaults to `1`. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors + * Output only. A set of errors found in the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this resource. + * Node pool names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * For more details on Google Cloud resource names, + * see [Resource Names](https://cloud.google.com/apis/design/resource_names) + * + * 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; + } + + /** + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Required. The node configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Required. The node configuration of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * + * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSubnetId() + { + return $this->subnet_id; + } + + /** + * Required. The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * + * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->subnet_id = $var; + + return $this; + } + + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Required. Autoscaler configuration for this node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * Output only. The current state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A globally unique identifier for the node pool. + * + * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. If set, there are currently pending changes to the node + * pool. + * + * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getReconciling() + { + return $this->reconciling; + } + + /** + * Output only. If set, there are currently pending changes to the node + * pool. + * + * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setReconciling($var) + { + GPBUtil::checkBool($var); + $this->reconciling = $var; + + return $this; + } + + /** + * Output only. The time at which this node pool 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 at which this node pool 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 at which this node pool was last 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 at which this node pool was last 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; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Allows clients to perform consistent read-modify-writes + * through optimistic concurrency control. + * Can be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. Annotations on the node pool. + * This field has the same restrictions as Kubernetes annotations. + * The total size of all keys and values combined is limited to 256k. + * Keys can have 2 segments: prefix (optional) and name (required), + * separated by a slash (/). + * Prefix must be a DNS subdomain. + * Name must be 63 characters or less, begin and end with alphanumerics, + * with dashes (-), underscores (_), dots (.), and alphanumerics between. + * + * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint|null + */ + public function getMaxPodsConstraint() + { + return $this->max_pods_constraint; + } + + public function hasMaxPodsConstraint() + { + return isset($this->max_pods_constraint); + } + + public function clearMaxPodsConstraint() + { + unset($this->max_pods_constraint); + } + + /** + * Required. The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $var + * @return $this + */ + public function setMaxPodsConstraint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint::class); + $this->max_pods_constraint = $var; + + return $this; + } + + /** + * Optional. The Azure availability zone of the nodes in this nodepool. + * When unspecified, it defaults to `1`. + * + * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAzureAvailabilityZone() + { + return $this->azure_availability_zone; + } + + /** + * Optional. The Azure availability zone of the nodes in this nodepool. + * When unspecified, it defaults to `1`. + * + * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAzureAvailabilityZone($var) + { + GPBUtil::checkString($var, True); + $this->azure_availability_zone = $var; + + return $this; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A set of errors found in the node pool. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError::class); + $this->errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php new file mode 100644 index 000000000000..1d994d640f61 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php @@ -0,0 +1,95 @@ +google.cloud.gkemulticloud.v1.AzureNodePool.State + */ +class State +{ + /** + * Not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the node pool is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the node pool has been created and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that the node pool is being reconciled. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the node pool is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the node pool is in a broken unrecoverable + * state. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the node pool requires user action to + * restore full functionality. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + 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\GkeMultiCloud\V1\AzureNodePool_State::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php new file mode 100644 index 000000000000..2688e11da544 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php @@ -0,0 +1,111 @@ +google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling + */ +class AzureNodePoolAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $min_node_count = 0; + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_node_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_node_count + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @type int $max_node_count + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Required. Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Required. Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php new file mode 100644 index 000000000000..854ce75b671a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.AzureNodePoolError + */ +class AzureNodePoolError extends \Google\Protobuf\Internal\Message +{ + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Human-friendly description of the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly description of the error. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php new file mode 100644 index 000000000000..564057a0a4f3 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.AzureProxyConfig + */ +class AzureProxyConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The ARM ID the of the resource group containing proxy keyvault. + * Resource group ids are formatted as + * `/subscriptions//resourceGroups/`. + * + * Generated from protobuf field string resource_group_id = 1; + */ + protected $resource_group_id = ''; + /** + * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + * Secret ids are formatted as + * `https://.vault.azure.net/secrets//`. + * + * Generated from protobuf field string secret_id = 2; + */ + protected $secret_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_group_id + * The ARM ID the of the resource group containing proxy keyvault. + * Resource group ids are formatted as + * `/subscriptions//resourceGroups/`. + * @type string $secret_id + * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + * Secret ids are formatted as + * `https://.vault.azure.net/secrets//`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The ARM ID the of the resource group containing proxy keyvault. + * Resource group ids are formatted as + * `/subscriptions//resourceGroups/`. + * + * Generated from protobuf field string resource_group_id = 1; + * @return string + */ + public function getResourceGroupId() + { + return $this->resource_group_id; + } + + /** + * The ARM ID the of the resource group containing proxy keyvault. + * Resource group ids are formatted as + * `/subscriptions//resourceGroups/`. + * + * Generated from protobuf field string resource_group_id = 1; + * @param string $var + * @return $this + */ + public function setResourceGroupId($var) + { + GPBUtil::checkString($var, True); + $this->resource_group_id = $var; + + return $this; + } + + /** + * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + * Secret ids are formatted as + * `https://.vault.azure.net/secrets//`. + * + * Generated from protobuf field string secret_id = 2; + * @return string + */ + public function getSecretId() + { + return $this->secret_id; + } + + /** + * The URL the of the proxy setting secret with its version. + * The secret must be a JSON encoded proxy configuration + * as described in + * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + * Secret ids are formatted as + * `https://.vault.azure.net/secrets//`. + * + * Generated from protobuf field string secret_id = 2; + * @param string $var + * @return $this + */ + public function setSecretId($var) + { + GPBUtil::checkString($var, True); + $this->secret_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php new file mode 100644 index 000000000000..d05c8963587f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php @@ -0,0 +1,152 @@ +google.cloud.gkemulticloud.v1.AzureServerConfig + */ +class AzureServerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The `AzureServerConfig` resource name. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; + */ + private $valid_versions; + /** + * The list of supported Azure regions. + * + * Generated from protobuf field repeated string supported_azure_regions = 3; + */ + private $supported_azure_regions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The `AzureServerConfig` resource name. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions + * List of valid Kubernetes versions. + * @type array|\Google\Protobuf\Internal\RepeatedField $supported_azure_regions + * The list of supported Azure regions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * The `AzureServerConfig` resource name. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The `AzureServerConfig` resource name. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidVersions() + { + return $this->valid_versions; + } + + /** + * List of valid Kubernetes versions. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo::class); + $this->valid_versions = $arr; + + return $this; + } + + /** + * The list of supported Azure regions. + * + * Generated from protobuf field repeated string supported_azure_regions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSupportedAzureRegions() + { + return $this->supported_azure_regions; + } + + /** + * The list of supported Azure regions. + * + * Generated from protobuf field repeated string supported_azure_regions = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSupportedAzureRegions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->supported_azure_regions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php new file mode 100644 index 000000000000..1327e9f14c97 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php @@ -0,0 +1,75 @@ +google.cloud.gkemulticloud.v1.AzureSshConfig + */ +class AzureSshConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * + * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorized_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $authorized_key + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * + * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAuthorizedKey() + { + return $this->authorized_key; + } + + /** + * Required. The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * + * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAuthorizedKey($var) + { + GPBUtil::checkString($var, True); + $this->authorized_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php new file mode 100644 index 000000000000..2e04dc9e7bd6 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest + */ +class CreateAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attached_cluster = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attached_cluster_id = ''; + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $attached_cluster + * Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * @type string $attached_cluster_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AttachedCluster|null + */ + public function getAttachedCluster() + { + return $this->attached_cluster; + } + + public function hasAttachedCluster() + { + return isset($this->attached_cluster); + } + + public function clearAttachedCluster() + { + unset($this->attached_cluster); + } + + /** + * Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $var + * @return $this + */ + public function setAttachedCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); + $this->attached_cluster = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAttachedClusterId() + { + return $this->attached_cluster_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAttachedClusterId($var) + { + GPBUtil::checkString($var, True); + $this->attached_cluster_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php new file mode 100644 index 000000000000..62f0e71056dd --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAwsClusterRequest + */ +class CreateAwsClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_cluster = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_cluster_id = ''; + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * @type string $aws_cluster_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null + */ + public function getAwsCluster() + { + return $this->aws_cluster; + } + + public function hasAwsCluster() + { + return isset($this->aws_cluster); + } + + public function clearAwsCluster() + { + unset($this->aws_cluster); + } + + /** + * Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var + * @return $this + */ + public function setAwsCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); + $this->aws_cluster = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAwsClusterId() + { + return $this->aws_cluster_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAwsClusterId($var) + { + GPBUtil::checkString($var, True); + $this->aws_cluster_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php new file mode 100644 index 000000000000..8509d663ab0f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php @@ -0,0 +1,231 @@ +google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest + */ +class CreateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_node_pool = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_node_pool_id = ''; + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * @type string $aws_node_pool_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the node + * pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null + */ + public function getAwsNodePool() + { + return $this->aws_node_pool; + } + + public function hasAwsNodePool() + { + return isset($this->aws_node_pool); + } + + public function clearAwsNodePool() + { + unset($this->aws_node_pool); + } + + /** + * Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var + * @return $this + */ + public function setAwsNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); + $this->aws_node_pool = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAwsNodePoolId() + { + return $this->aws_node_pool_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAwsNodePoolId($var) + { + GPBUtil::checkString($var, True); + $this->aws_node_pool_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php new file mode 100644 index 000000000000..79a670bcfe0b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAzureClientRequest + */ +class CreateAzureClientRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_client = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_client_id = ''; + /** + * If set, only validate the request, but do not actually create the client. + * + * Generated from protobuf field bool validate_only = 3; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureClient $azure_client + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * @type string $azure_client_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the client. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureClient|null + */ + public function getAzureClient() + { + return $this->azure_client; + } + + public function hasAzureClient() + { + return isset($this->azure_client); + } + + public function clearAzureClient() + { + unset($this->azure_client); + } + + /** + * Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureClient $var + * @return $this + */ + public function setAzureClient($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClient::class); + $this->azure_client = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureClientId() + { + return $this->azure_client_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureClientId($var) + { + GPBUtil::checkString($var, True); + $this->azure_client_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the client. + * + * Generated from protobuf field bool validate_only = 3; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the client. + * + * Generated from protobuf field bool validate_only = 3; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php new file mode 100644 index 000000000000..cd34124a8b15 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAzureClusterRequest + */ +class CreateAzureClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_cluster = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_cluster_id = ''; + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * @type string $azure_cluster_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null + */ + public function getAzureCluster() + { + return $this->azure_cluster; + } + + public function hasAzureCluster() + { + return isset($this->azure_cluster); + } + + public function clearAzureCluster() + { + unset($this->azure_cluster); + } + + /** + * Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var + * @return $this + */ + public function setAzureCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); + $this->azure_cluster = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureClusterId() + { + return $this->azure_cluster_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureClusterId($var) + { + GPBUtil::checkString($var, True); + $this->azure_cluster_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the cluster. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php new file mode 100644 index 000000000000..19fd796cdee5 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php @@ -0,0 +1,227 @@ +google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest + */ +class CreateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_node_pool = null; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_node_pool_id = ''; + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * @type string $azure_node_pool_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @type bool $validate_only + * If set, only validate the request, but do not actually create the node + * pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null + */ + public function getAzureNodePool() + { + return $this->azure_node_pool; + } + + public function hasAzureNodePool() + { + return isset($this->azure_node_pool); + } + + public function clearAzureNodePool() + { + unset($this->azure_node_pool); + } + + /** + * Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var + * @return $this + */ + public function setAzureNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); + $this->azure_node_pool = $var; + + return $this; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureNodePoolId() + { + return $this->azure_node_pool_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureNodePoolId($var) + { + GPBUtil::checkString($var, True); + $this->azure_node_pool_id = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually create the node + * pool. + * + * Generated from protobuf field bool validate_only = 4; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php new file mode 100644 index 000000000000..5203109f005f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php @@ -0,0 +1,271 @@ +google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest + */ +class DeleteAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + /** + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5; + */ + protected $ignore_errors = false; + /** + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the resource. + * @type bool $allow_missing + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * @type bool $ignore_errors + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * @type string $etag + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5; + * @return bool + */ + public function getIgnoreErrors() + { + return $this->ignore_errors; + } + + /** + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5; + * @param bool $var + * @return $this + */ + public function setIgnoreErrors($var) + { + GPBUtil::checkBool($var); + $this->ignore_errors = $var; + + return $this; + } + + /** + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php new file mode 100644 index 000000000000..8c731da6dff7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php @@ -0,0 +1,221 @@ +google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest + */ +class DeleteAwsClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + /** + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the resource. + * @type bool $allow_missing + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * @type string $etag + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php new file mode 100644 index 000000000000..333666be0668 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php @@ -0,0 +1,225 @@ +google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest + */ +class DeleteAwsNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + /** + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the node + * pool. + * @type bool $allow_missing + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * @type string $etag + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php new file mode 100644 index 000000000000..926bfcb4f6c8 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php @@ -0,0 +1,175 @@ +google.cloud.gkemulticloud.v1.DeleteAzureClientRequest + */ +class DeleteAzureClientRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + */ + protected $allow_missing = false; + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type bool $allow_missing + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php new file mode 100644 index 000000000000..ad770b028af7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php @@ -0,0 +1,221 @@ +google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest + */ +class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + */ + protected $allow_missing = false; + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + */ + protected $validate_only = false; + /** + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type bool $allow_missing + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the resource. + * @type string $etag + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 2; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the resource. + * + * Generated from protobuf field bool validate_only = 3; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php new file mode 100644 index 000000000000..4c7e541bd178 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php @@ -0,0 +1,229 @@ +google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest + */ +class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + */ + protected $allow_missing = false; + /** + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually delete the node + * pool. + * @type bool $allow_missing + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * @type string $etag + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually delete the node + * pool. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * Useful for idempotent deletion. + * + * Generated from protobuf field bool allow_missing = 3; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * Allows clients to perform deletions through optimistic concurrency control. + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 4; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php new file mode 100644 index 000000000000..ddc8d53d7ae1 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php @@ -0,0 +1,131 @@ +google.cloud.gkemulticloud.v1.Fleet + */ +class Fleet extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Fleet host project where this cluster will be + * registered. + * Project names are formatted as + * `projects/`. + * + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project = ''; + /** + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. + * Membership names are formatted as + * `projects//locations/global/membership/`. + * + * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $membership = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project + * Required. The name of the Fleet host project where this cluster will be + * registered. + * Project names are formatted as + * `projects/`. + * @type string $membership + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. + * Membership names are formatted as + * `projects//locations/global/membership/`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Fleet host project where this cluster will be + * registered. + * Project names are formatted as + * `projects/`. + * + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * Required. The name of the Fleet host project where this cluster will be + * registered. + * Project names are formatted as + * `projects/`. + * + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. + * Membership names are formatted as + * `projects//locations/global/membership/`. + * + * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMembership() + { + return $this->membership; + } + + /** + * Output only. The name of the managed Hub Membership resource associated to + * this cluster. + * Membership names are formatted as + * `projects//locations/global/membership/`. + * + * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkString($var, True); + $this->membership = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php new file mode 100644 index 000000000000..67e0ad776fc6 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php @@ -0,0 +1,208 @@ +google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + */ +class GenerateAttachedClusterInstallManifestRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * + * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attached_cluster_id = ''; + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $platform_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type string $attached_cluster_id + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * @type string $platform_version + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * + * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAttachedClusterId() + { + return $this->attached_cluster_id; + } + + /** + * Required. A client provided ID the resource. Must be unique within the + * parent resource. + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * + * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAttachedClusterId($var) + { + GPBUtil::checkString($var, True); + $this->attached_cluster_id = $var; + + return $this; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPlatformVersion() + { + return $this->platform_version; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPlatformVersion($var) + { + GPBUtil::checkString($var, True); + $this->platform_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php new file mode 100644 index 000000000000..558f3fe1e5d2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php @@ -0,0 +1,72 @@ +google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + */ +class GenerateAttachedClusterInstallManifestResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A set of Kubernetes resources (in YAML format) to be applied + * to the cluster to be attached. + * + * Generated from protobuf field string manifest = 1; + */ + protected $manifest = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $manifest + * A set of Kubernetes resources (in YAML format) to be applied + * to the cluster to be attached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * A set of Kubernetes resources (in YAML format) to be applied + * to the cluster to be attached. + * + * Generated from protobuf field string manifest = 1; + * @return string + */ + public function getManifest() + { + return $this->manifest; + } + + /** + * A set of Kubernetes resources (in YAML format) to be applied + * to the cluster to be attached. + * + * Generated from protobuf field string manifest = 1; + * @param string $var + * @return $this + */ + public function setManifest($var) + { + GPBUtil::checkString($var, True); + $this->manifest = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php new file mode 100644 index 000000000000..d3d109e81257 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest + */ +class GenerateAwsAccessTokenRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $aws_cluster = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $aws_cluster + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getAwsCluster() + { + return $this->aws_cluster; + } + + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAwsCluster($var) + { + GPBUtil::checkString($var, True); + $this->aws_cluster = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php new file mode 100644 index 000000000000..35f1695ffc34 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php @@ -0,0 +1,111 @@ +google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse + */ +class GenerateAwsAccessTokenResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access_token = ''; + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expiration_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $access_token + * Output only. Access token to authenticate to k8s api-server. + * @type \Google\Protobuf\Timestamp $expiration_time + * Output only. Timestamp at which the token will expire. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAccessToken() + { + return $this->access_token; + } + + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAccessToken($var) + { + GPBUtil::checkString($var, True); + $this->access_token = $var; + + return $this; + } + + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpirationTime() + { + return $this->expiration_time; + } + + public function hasExpirationTime() + { + return isset($this->expiration_time); + } + + public function clearExpirationTime() + { + unset($this->expiration_time); + } + + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expiration_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php new file mode 100644 index 000000000000..f655c348d217 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest + */ +class GenerateAzureAccessTokenRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $azure_cluster = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $azure_cluster + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getAzureCluster() + { + return $this->azure_cluster; + } + + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAzureCluster($var) + { + GPBUtil::checkString($var, True); + $this->azure_cluster = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php new file mode 100644 index 000000000000..4371394919c5 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php @@ -0,0 +1,111 @@ +google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse + */ +class GenerateAzureAccessTokenResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access_token = ''; + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expiration_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $access_token + * Output only. Access token to authenticate to k8s api-server. + * @type \Google\Protobuf\Timestamp $expiration_time + * Output only. Timestamp at which the token will expire. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAccessToken() + { + return $this->access_token; + } + + /** + * Output only. Access token to authenticate to k8s api-server. + * + * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAccessToken($var) + { + GPBUtil::checkString($var, True); + $this->access_token = $var; + + return $this; + } + + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpirationTime() + { + return $this->expiration_time; + } + + public function hasExpirationTime() + { + return isset($this->expiration_time); + } + + public function clearExpirationTime() + { + unset($this->expiration_time); + } + + /** + * Output only. Timestamp at which the token will expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expiration_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php new file mode 100644 index 000000000000..3ec2e3c44c68 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAttachedClusterRequest + */ +class GetAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php new file mode 100644 index 000000000000..d8eb050d9aad --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php @@ -0,0 +1,92 @@ +google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest + */ +class GetAttachedServerConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php new file mode 100644 index 000000000000..c1bdee5e88d9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAwsClusterRequest + */ +class GetAwsClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php new file mode 100644 index 000000000000..080416baaf93 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest + */ +class GetAwsNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php new file mode 100644 index 000000000000..e8b728cd3e58 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest + */ +class GetAwsServerConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php new file mode 100644 index 000000000000..87a4874bbe65 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php @@ -0,0 +1,95 @@ +google.cloud.gkemulticloud.v1.GetAzureClientRequest + */ +class GetAzureClientRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php new file mode 100644 index 000000000000..fc806adc7c00 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAzureClusterRequest + */ +class GetAzureClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php new file mode 100644 index 000000000000..feb41baef9dc --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest + */ +class GetAzureNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php new file mode 100644 index 000000000000..c46bc07a1d07 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php @@ -0,0 +1,91 @@ +google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest + */ +class GetAzureServerConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php new file mode 100644 index 000000000000..8c30d8f35007 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php @@ -0,0 +1,239 @@ +google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest + */ +class ImportAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * If set, only validate the request, but do not actually import the cluster. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. The name of the fleet membership resource to import. + * + * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $fleet_membership = ''; + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $platform_version = ''; + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $distribution = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type bool $validate_only + * If set, only validate the request, but do not actually import the cluster. + * @type string $fleet_membership + * Required. The name of the fleet membership resource to import. + * @type string $platform_version + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @type string $distribution + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * If set, only validate the request, but do not actually import the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually import the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. The name of the fleet membership resource to import. + * + * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFleetMembership() + { + return $this->fleet_membership; + } + + /** + * Required. The name of the fleet membership resource to import. + * + * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFleetMembership($var) + { + GPBUtil::checkString($var, True); + $this->fleet_membership = $var; + + return $this; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPlatformVersion() + { + return $this->platform_version; + } + + /** + * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * + * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPlatformVersion($var) + { + GPBUtil::checkString($var, True); + $this->platform_version = $var; + + return $this; + } + + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDistribution() + { + return $this->distribution; + } + + /** + * Required. The Kubernetes distribution of the underlying attached cluster. + * Supported values: ["eks", "aks"]. + * + * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDistribution($var) + { + GPBUtil::checkString($var, True); + $this->distribution = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php new file mode 100644 index 000000000000..32fbfe164090 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php @@ -0,0 +1,179 @@ +google.cloud.gkemulticloud.v1.ListAttachedClustersRequest + */ +class ListAttachedClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php new file mode 100644 index 000000000000..08b8a9bece9f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAttachedClustersResponse + */ +class ListAttachedClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + private $attached_clusters; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedCluster>|\Google\Protobuf\Internal\RepeatedField $attached_clusters + * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources in the specified GCP project and region region. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttachedClusters() + { + return $this->attached_clusters; + } + + /** + * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttachedClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); + $this->attached_clusters = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php new file mode 100644 index 000000000000..fcaa4e64925f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php @@ -0,0 +1,179 @@ +google.cloud.gkemulticloud.v1.ListAwsClustersRequest + */ +class ListAwsClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php new file mode 100644 index 000000000000..ee30c0f40089 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAwsClustersResponse + */ +class ListAwsClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; + */ + private $aws_clusters; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $aws_clusters + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAwsClusters() + { + return $this->aws_clusters; + } + + /** + * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAwsClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); + $this->aws_clusters = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php new file mode 100644 index 000000000000..5859e1a2c927 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php @@ -0,0 +1,183 @@ +google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest + */ +class ListAwsNodePoolsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php new file mode 100644 index 000000000000..e6a681467d5a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse + */ +class ListAwsNodePoolsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; + */ + private $aws_node_pools; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $aws_node_pools + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAwsNodePools() + { + return $this->aws_node_pools; + } + + /** + * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources in the specified `AwsCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAwsNodePools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); + $this->aws_node_pools = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php new file mode 100644 index 000000000000..e858bc67dc6b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php @@ -0,0 +1,179 @@ +google.cloud.gkemulticloud.v1.ListAzureClientsRequest + */ +class ListAzureClientsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php new file mode 100644 index 000000000000..6ec3fccc2c48 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAzureClientsResponse + */ +class ListAzureClientsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; + */ + private $azure_clients; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $azure_clients + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAzureClients() + { + return $this->azure_clients; + } + + /** + * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources in the specified Google Cloud project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAzureClients($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClient::class); + $this->azure_clients = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php new file mode 100644 index 000000000000..a90572b91bd4 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php @@ -0,0 +1,179 @@ +google.cloud.gkemulticloud.v1.ListAzureClustersRequest + */ +class ListAzureClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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 location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * Location names are formatted as `projects//locations/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php new file mode 100644 index 000000000000..a7e8c5a90da8 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAzureClustersResponse + */ +class ListAzureClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; + */ + private $azure_clusters; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $azure_clusters + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAzureClusters() + { + return $this->azure_clusters; + } + + /** + * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources in the specified GCP project and region region. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAzureClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); + $this->azure_clusters = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php new file mode 100644 index 000000000000..6509d98fdacc --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php @@ -0,0 +1,183 @@ +google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest + */ +class ListAzureNodePoolsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The `nextPageToken` value returned from a previous + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @type int $page_size + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * @type string $page_token + * The `nextPageToken` value returned from a previous + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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 `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * + * 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; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of items to return. + * If not specified, a default value of 50 will be used by the service. + * Regardless of the pageSize value, the response can include a partial list + * and a caller should only rely on response's + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. + * + * 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; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The `nextPageToken` value returned from a previous + * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + * request, if any. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php new file mode 100644 index 000000000000..dba3b96d705d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse + */ +class ListAzureNodePoolsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; + */ + private $azure_node_pools; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $azure_node_pools + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAzureNodePools() + { + return $this->azure_node_pools; + } + + /** + * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources in the specified `AzureCluster`. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; + * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAzureNodePools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); + $this->azure_node_pools = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php new file mode 100644 index 000000000000..422fc56a7d5e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.LoggingComponentConfig + */ +class LoggingComponentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The components to be enabled. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; + */ + private $enable_components; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components + * The components to be enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * The components to be enabled. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnableComponents() + { + return $this->enable_components; + } + + /** + * The components to be enabled. + * + * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnableComponents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig\Component::class); + $this->enable_components = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php new file mode 100644 index 000000000000..7bbb2b8b88ac --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php @@ -0,0 +1,64 @@ +google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component + */ +class Component +{ + /** + * No component is specified + * + * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; + */ + const COMPONENT_UNSPECIFIED = 0; + /** + * This indicates that system logging components is enabled. + * + * Generated from protobuf enum SYSTEM_COMPONENTS = 1; + */ + const SYSTEM_COMPONENTS = 1; + /** + * This indicates that user workload logging component is enabled. + * + * Generated from protobuf enum WORKLOADS = 2; + */ + const WORKLOADS = 2; + + private static $valueToName = [ + self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', + self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', + self::WORKLOADS => 'WORKLOADS', + ]; + + 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(Component::class, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig_Component::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php new file mode 100644 index 000000000000..3d7fd5da3767 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.LoggingConfig + */ +class LoggingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The configuration of the logging components; + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; + */ + protected $component_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $component_config + * The configuration of the logging components; + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * The configuration of the logging components; + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; + * @return \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig|null + */ + public function getComponentConfig() + { + return $this->component_config; + } + + public function hasComponentConfig() + { + return isset($this->component_config); + } + + public function clearComponentConfig() + { + unset($this->component_config); + } + + /** + * The configuration of the logging components; + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; + * @param \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $var + * @return $this + */ + public function setComponentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig::class); + $this->component_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php new file mode 100644 index 000000000000..c3f7e469972b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php @@ -0,0 +1,68 @@ +google.cloud.gkemulticloud.v1.ManagedPrometheusConfig + */ +class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enable Managed Collection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php new file mode 100644 index 000000000000..abbd020c984a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php @@ -0,0 +1,67 @@ +google.cloud.gkemulticloud.v1.MaxPodsConstraint + */ +class MaxPodsConstraint extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The maximum number of pods to schedule on a single node. + * + * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_pods_per_node = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $max_pods_per_node + * Required. The maximum number of pods to schedule on a single node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The maximum number of pods to schedule on a single node. + * + * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getMaxPodsPerNode() + { + return $this->max_pods_per_node; + } + + /** + * Required. The maximum number of pods to schedule on a single node. + * + * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setMaxPodsPerNode($var) + { + GPBUtil::checkInt64($var); + $this->max_pods_per_node = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php new file mode 100644 index 000000000000..a6b9a2e0a799 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php @@ -0,0 +1,77 @@ +google.cloud.gkemulticloud.v1.MonitoringConfig + */ +class MonitoringConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Google Cloud Managed Service for Prometheus in the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + protected $managed_prometheus_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig $managed_prometheus_config + * Enable Google Cloud Managed Service for Prometheus in the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Enable Google Cloud Managed Service for Prometheus in the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig|null + */ + public function getManagedPrometheusConfig() + { + return $this->managed_prometheus_config; + } + + public function hasManagedPrometheusConfig() + { + return isset($this->managed_prometheus_config); + } + + public function clearManagedPrometheusConfig() + { + unset($this->managed_prometheus_config); + } + + /** + * Enable Google Cloud Managed Service for Prometheus in the cluster. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @param \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig $var + * @return $this + */ + public function setManagedPrometheusConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig::class); + $this->managed_prometheus_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php new file mode 100644 index 000000000000..3008c9dd75ef --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php @@ -0,0 +1,135 @@ +google.cloud.gkemulticloud.v1.NodeTaint + */ +class NodeTaint extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Key for the taint. + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $key = ''; + /** + * Required. Value for the taint. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + /** + * Required. The taint effect. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $effect = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Required. Key for the taint. + * @type string $value + * Required. Value for the taint. + * @type int $effect + * Required. The taint effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Key for the taint. + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Required. Key for the taint. + * + * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Required. Value for the taint. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. Value for the taint. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Required. The taint effect. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEffect() + { + return $this->effect; + } + + /** + * Required. The taint effect. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEffect($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\NodeTaint\Effect::class); + $this->effect = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php new file mode 100644 index 000000000000..e91ecf54c3c1 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php @@ -0,0 +1,77 @@ +google.cloud.gkemulticloud.v1.NodeTaint.Effect + */ +class Effect +{ + /** + * Not set. + * + * Generated from protobuf enum EFFECT_UNSPECIFIED = 0; + */ + const EFFECT_UNSPECIFIED = 0; + /** + * Do not allow new pods to schedule onto the node unless they tolerate the + * taint, but allow all pods submitted to Kubelet without going through the + * scheduler to start, and allow all already-running pods to continue + * running. Enforced by the scheduler. + * + * Generated from protobuf enum NO_SCHEDULE = 1; + */ + const NO_SCHEDULE = 1; + /** + * Like TaintEffectNoSchedule, but the scheduler tries not to schedule + * new pods onto the node, rather than prohibiting new pods from scheduling + * onto the node entirely. Enforced by the scheduler. + * + * Generated from protobuf enum PREFER_NO_SCHEDULE = 2; + */ + const PREFER_NO_SCHEDULE = 2; + /** + * Evict any already-running pods that do not tolerate the taint. + * Currently enforced by NodeController. + * + * Generated from protobuf enum NO_EXECUTE = 3; + */ + const NO_EXECUTE = 3; + + private static $valueToName = [ + self::EFFECT_UNSPECIFIED => 'EFFECT_UNSPECIFIED', + self::NO_SCHEDULE => 'NO_SCHEDULE', + self::PREFER_NO_SCHEDULE => 'PREFER_NO_SCHEDULE', + self::NO_EXECUTE => 'NO_EXECUTE', + ]; + + 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(Effect::class, \Google\Cloud\GkeMultiCloud\V1\NodeTaint_Effect::class); + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php new file mode 100644 index 000000000000..efd070529c2b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php @@ -0,0 +1,16 @@ +google.cloud.gkemulticloud.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time at which this operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which this operation was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. The name of the resource associated to this operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_detail = ''; + /** + * Output only. Human-readable status of any error that occurred during the + * operation. + * + * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_detail = ''; + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which this operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time at which this operation was completed. + * @type string $target + * Output only. The name of the resource associated to this operation. + * @type string $status_detail + * Output only. Human-readable status of the operation, if any. + * @type string $error_detail + * Output only. Human-readable status of any error that occurred during the + * operation. + * @type string $verb + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * @type bool $requested_cancellation + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time at which this operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 at which this operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 at which this operation was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. The time at which this operation was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. The name of the resource associated to this operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. The name of the resource associated to this operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStatusDetail() + { + return $this->status_detail; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStatusDetail($var) + { + GPBUtil::checkString($var, True); + $this->status_detail = $var; + + return $this; + } + + /** + * Output only. Human-readable status of any error that occurred during the + * operation. + * + * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getErrorDetail() + { + return $this->error_detail; + } + + /** + * Output only. Human-readable status of any error that occurred during the + * operation. + * + * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setErrorDetail($var) + { + GPBUtil::checkString($var, True); + $this->error_detail = $var; + + return $this; + } + + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. The verb associated with the API method which triggered this + * operation. Possible values are "create", "delete", "update" and "import". + * + * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether it has been requested cancellation + * for the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php new file mode 100644 index 000000000000..c78be2466d12 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php @@ -0,0 +1,113 @@ +google.cloud.gkemulticloud.v1.ReplicaPlacement + */ +class ReplicaPlacement extends \Google\Protobuf\Internal\Message +{ + /** + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. + * + * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subnet_id = ''; + /** + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. + * + * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_availability_zone = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $subnet_id + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. + * @type string $azure_availability_zone + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. + * + * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSubnetId() + { + return $this->subnet_id; + } + + /** + * Required. For a given replica, the ARM ID of the subnet where the control + * plane VM is deployed. Make sure it's a subnet under the virtual network in + * the cluster configuration. + * + * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSubnetId($var) + { + GPBUtil::checkString($var, True); + $this->subnet_id = $var; + + return $this; + } + + /** + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. + * + * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAzureAvailabilityZone() + { + return $this->azure_availability_zone; + } + + /** + * Required. For a given replica, the Azure availability zone where to + * provision the control plane VM and the ETCD disk. + * + * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAzureAvailabilityZone($var) + { + GPBUtil::checkString($var, True); + $this->azure_availability_zone = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php new file mode 100644 index 000000000000..dc288355a2c5 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php @@ -0,0 +1,199 @@ +google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest + */ +class UpdateAttachedClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attached_cluster = null; + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $attached_cluster + * Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * @type bool $validate_only + * If set, only validate the request, but do not actually update the cluster. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AttachedCluster|null + */ + public function getAttachedCluster() + { + return $this->attached_cluster; + } + + public function hasAttachedCluster() + { + return isset($this->attached_cluster); + } + + public function clearAttachedCluster() + { + unset($this->attached_cluster); + } + + /** + * Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $var + * @return $this + */ + public function setAttachedCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); + $this->attached_cluster = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php new file mode 100644 index 000000000000..56f049ee89a7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php @@ -0,0 +1,259 @@ +google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest + */ +class UpdateAwsClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_cluster = null; + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * @type bool $validate_only + * If set, only validate the request, but do not actually update the cluster. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null + */ + public function getAwsCluster() + { + return $this->aws_cluster; + } + + public function hasAwsCluster() + { + return isset($this->aws_cluster); + } + + public function clearAwsCluster() + { + unset($this->aws_cluster); + } + + /** + * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var + * @return $this + */ + public function setAwsCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); + $this->aws_cluster = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php new file mode 100644 index 000000000000..bd09a5cc4266 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php @@ -0,0 +1,255 @@ +google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest + */ +class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aws_node_pool = null; + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * @type bool $validate_only + * If set, only validate the request, but don't actually update the node pool. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null + */ + public function getAwsNodePool() + { + return $this->aws_node_pool; + } + + public function hasAwsNodePool() + { + return isset($this->aws_node_pool); + } + + public function clearAwsNodePool() + { + unset($this->aws_node_pool); + } + + /** + * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var + * @return $this + */ + public function setAwsNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); + $this->aws_node_pool = $var; + + return $this; + } + + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php new file mode 100644 index 000000000000..9c178a6e74a0 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php @@ -0,0 +1,219 @@ +google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest + */ +class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_cluster = null; + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * @type bool $validate_only + * If set, only validate the request, but do not actually update the cluster. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null + */ + public function getAzureCluster() + { + return $this->azure_cluster; + } + + public function hasAzureCluster() + { + return isset($this->azure_cluster); + } + + public function clearAzureCluster() + { + unset($this->azure_cluster); + } + + /** + * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var + * @return $this + */ + public function setAzureCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); + $this->azure_cluster = $var; + + return $this; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but do not actually update the cluster. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php new file mode 100644 index 000000000000..4124d7d763ad --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php @@ -0,0 +1,187 @@ +google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest + */ +class UpdateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $azure_node_pool = null; + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + */ + protected $validate_only = false; + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * @type bool $validate_only + * If set, only validate the request, but don't actually update the node pool. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null + */ + public function getAzureNodePool() + { + return $this->azure_node_pool; + } + + public function hasAzureNodePool() + { + return isset($this->azure_node_pool); + } + + public function clearAzureNodePool() + { + unset($this->azure_node_pool); + } + + /** + * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * + * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var + * @return $this + */ + public function setAzureNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); + $this->azure_node_pool = $var; + + return $this; + } + + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * If set, only validate the request, but don't actually update the node pool. + * + * Generated from protobuf field bool validate_only = 2; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php new file mode 100644 index 000000000000..261f7d8542a3 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php @@ -0,0 +1,139 @@ +google.cloud.gkemulticloud.v1.WorkloadIdentityConfig + */ +class WorkloadIdentityConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The OIDC issuer URL for this cluster. + * + * Generated from protobuf field string issuer_uri = 1; + */ + protected $issuer_uri = ''; + /** + * The Workload Identity Pool associated to the cluster. + * + * Generated from protobuf field string workload_pool = 2; + */ + protected $workload_pool = ''; + /** + * The ID of the OIDC Identity Provider (IdP) associated to the Workload + * Identity Pool. + * + * Generated from protobuf field string identity_provider = 3; + */ + protected $identity_provider = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issuer_uri + * The OIDC issuer URL for this cluster. + * @type string $workload_pool + * The Workload Identity Pool associated to the cluster. + * @type string $identity_provider + * The ID of the OIDC Identity Provider (IdP) associated to the Workload + * Identity Pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); + parent::__construct($data); + } + + /** + * The OIDC issuer URL for this cluster. + * + * Generated from protobuf field string issuer_uri = 1; + * @return string + */ + public function getIssuerUri() + { + return $this->issuer_uri; + } + + /** + * The OIDC issuer URL for this cluster. + * + * Generated from protobuf field string issuer_uri = 1; + * @param string $var + * @return $this + */ + public function setIssuerUri($var) + { + GPBUtil::checkString($var, True); + $this->issuer_uri = $var; + + return $this; + } + + /** + * The Workload Identity Pool associated to the cluster. + * + * Generated from protobuf field string workload_pool = 2; + * @return string + */ + public function getWorkloadPool() + { + return $this->workload_pool; + } + + /** + * The Workload Identity Pool associated to the cluster. + * + * Generated from protobuf field string workload_pool = 2; + * @param string $var + * @return $this + */ + public function setWorkloadPool($var) + { + GPBUtil::checkString($var, True); + $this->workload_pool = $var; + + return $this; + } + + /** + * The ID of the OIDC Identity Provider (IdP) associated to the Workload + * Identity Pool. + * + * Generated from protobuf field string identity_provider = 3; + * @return string + */ + public function getIdentityProvider() + { + return $this->identity_provider; + } + + /** + * The ID of the OIDC Identity Provider (IdP) associated to the Workload + * Identity Pool. + * + * Generated from protobuf field string identity_provider = 3; + * @param string $var + * @return $this + */ + public function setIdentityProvider($var) + { + GPBUtil::checkString($var, True); + $this->identity_provider = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php new file mode 100644 index 000000000000..963971728fc6 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php @@ -0,0 +1,144 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AttachedClustersClient::locationName()} for help formatting this field. + * @param string $attachedClusterPlatformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @param string $attachedClusterDistribution The Kubernetes distribution of the underlying attached cluster. + * + * Supported values: ["eks", "aks"]. + * @param string $attachedClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + * @param string $attachedClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_attached_cluster_sample( + string $formattedParent, + string $attachedClusterPlatformVersion, + string $attachedClusterDistribution, + string $attachedClusterFleetProject, + string $attachedClusterId +): void { + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedClusterFleet = (new Fleet()) + ->setProject($attachedClusterFleetProject); + $attachedCluster = (new AttachedCluster()) + ->setOidcConfig($attachedClusterOidcConfig) + ->setPlatformVersion($attachedClusterPlatformVersion) + ->setDistribution($attachedClusterDistribution) + ->setFleet($attachedClusterFleet); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $attachedClustersClient->createAttachedCluster( + $formattedParent, + $attachedCluster, + $attachedClusterId + ); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $attachedClusterPlatformVersion = '[PLATFORM_VERSION]'; + $attachedClusterDistribution = '[DISTRIBUTION]'; + $attachedClusterFleetProject = '[PROJECT]'; + $attachedClusterId = '[ATTACHED_CLUSTER_ID]'; + + create_attached_cluster_sample( + $formattedParent, + $attachedClusterPlatformVersion, + $attachedClusterDistribution, + $attachedClusterFleetProject, + $attachedClusterId + ); +} +// [END gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php new file mode 100644 index 000000000000..48690e6b1cbb --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php @@ -0,0 +1,91 @@ +/locations//attachedClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AttachedClustersClient::attachedClusterName()} for help formatting this field. + */ +function delete_attached_cluster_sample(string $formattedName): void +{ + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $attachedClustersClient->deleteAttachedCluster($formattedName); + $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 = AttachedClustersClient::attachedClusterName( + '[PROJECT]', + '[LOCATION]', + '[ATTACHED_CLUSTER]' + ); + + delete_attached_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php new file mode 100644 index 000000000000..eb307e204d4b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php @@ -0,0 +1,106 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AttachedClustersClient::locationName()} for help formatting this field. + * @param string $attachedClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * @param string $platformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + */ +function generate_attached_cluster_install_manifest_sample( + string $formattedParent, + string $attachedClusterId, + string $platformVersion +): void { + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var GenerateAttachedClusterInstallManifestResponse $response */ + $response = $attachedClustersClient->generateAttachedClusterInstallManifest( + $formattedParent, + $attachedClusterId, + $platformVersion + ); + 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 +{ + $formattedParent = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $attachedClusterId = '[ATTACHED_CLUSTER_ID]'; + $platformVersion = '[PLATFORM_VERSION]'; + + generate_attached_cluster_install_manifest_sample( + $formattedParent, + $attachedClusterId, + $platformVersion + ); +} +// [END gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php new file mode 100644 index 000000000000..d34d0e43e027 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php @@ -0,0 +1,79 @@ +/locations//attachedClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AttachedClustersClient::attachedClusterName()} for help formatting this field. + */ +function get_attached_cluster_sample(string $formattedName): void +{ + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AttachedCluster $response */ + $response = $attachedClustersClient->getAttachedCluster($formattedName); + 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 = AttachedClustersClient::attachedClusterName( + '[PROJECT]', + '[LOCATION]', + '[ATTACHED_CLUSTER]' + ); + + get_attached_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php new file mode 100644 index 000000000000..bd20d6c1b7f2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php @@ -0,0 +1,75 @@ +/locations//attachedServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AttachedClustersClient::attachedServerConfigName()} for help formatting this field. + */ +function get_attached_server_config_sample(string $formattedName): void +{ + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AttachedServerConfig $response */ + $response = $attachedClustersClient->getAttachedServerConfig($formattedName); + 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 = AttachedClustersClient::attachedServerConfigName('[PROJECT]', '[LOCATION]'); + + get_attached_server_config_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php new file mode 100644 index 000000000000..4966c4a9e1f4 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php @@ -0,0 +1,115 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AttachedClustersClient::locationName()} for help formatting this field. + * @param string $fleetMembership The name of the fleet membership resource to import. + * @param string $platformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @param string $distribution The Kubernetes distribution of the underlying attached cluster. + * + * Supported values: ["eks", "aks"]. + */ +function import_attached_cluster_sample( + string $formattedParent, + string $fleetMembership, + string $platformVersion, + string $distribution +): void { + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $attachedClustersClient->importAttachedCluster( + $formattedParent, + $fleetMembership, + $platformVersion, + $distribution + ); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $fleetMembership = '[FLEET_MEMBERSHIP]'; + $platformVersion = '[PLATFORM_VERSION]'; + $distribution = '[DISTRIBUTION]'; + + import_attached_cluster_sample($formattedParent, $fleetMembership, $platformVersion, $distribution); +} +// [END gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php new file mode 100644 index 000000000000..f2865ea206d4 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php @@ -0,0 +1,78 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AttachedClustersClient::locationName()} for help formatting this field. + */ +function list_attached_clusters_sample(string $formattedParent): void +{ + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $attachedClustersClient->listAttachedClusters($formattedParent); + + /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); + + list_attached_clusters_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php new file mode 100644 index 000000000000..684a900ad68f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php @@ -0,0 +1,113 @@ +`. + */ +function update_attached_cluster_sample( + string $attachedClusterPlatformVersion, + string $attachedClusterDistribution, + string $attachedClusterFleetProject +): void { + // Create a client. + $attachedClustersClient = new AttachedClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedClusterFleet = (new Fleet()) + ->setProject($attachedClusterFleetProject); + $attachedCluster = (new AttachedCluster()) + ->setOidcConfig($attachedClusterOidcConfig) + ->setPlatformVersion($attachedClusterPlatformVersion) + ->setDistribution($attachedClusterDistribution) + ->setFleet($attachedClusterFleet); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AttachedCluster $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 +{ + $attachedClusterPlatformVersion = '[PLATFORM_VERSION]'; + $attachedClusterDistribution = '[DISTRIBUTION]'; + $attachedClusterFleetProject = '[PROJECT]'; + + update_attached_cluster_sample( + $attachedClusterPlatformVersion, + $attachedClusterDistribution, + $attachedClusterFleetProject + ); +} +// [END gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php new file mode 100644 index 000000000000..8e5deb1b4773 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php @@ -0,0 +1,224 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::locationName()} for help formatting this field. + * @param string $awsClusterNetworkingVpcId The VPC associated with the cluster. All component clusters + * (i.e. control plane and node pools) run on a single VPC. + * + * This field cannot be changed after creation. + * @param string $awsClusterNetworkingPodAddressCidrBlocksElement All pods in the cluster are assigned an IPv4 address from these + * ranges. Only a single range is supported. This field cannot be changed + * after creation. + * @param string $awsClusterNetworkingServiceAddressCidrBlocksElement All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. + * @param string $awsClusterAwsRegion The AWS region where the cluster runs. + * + * Each Google Cloud region supports a subset of nearby AWS regions. + * You can call + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] + * to list all supported AWS regions within a given Google Cloud region. + * @param string $awsClusterControlPlaneVersion The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * @param string $awsClusterControlPlaneSubnetIdsElement The list of subnets where control plane replicas will run. + * A replica will be provisioned on each subnet and up to three values + * can be provided. + * Each subnet must be in a different AWS Availability Zone (AZ). + * @param string $awsClusterControlPlaneIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to each + * control plane replica. + * @param string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt cluster secrets. + * @param string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn The Amazon Resource Name (ARN) of the role that the Anthos + * Multi-Cloud API will assume when managing AWS resources on your account. + * @param string $awsClusterControlPlaneConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. + * @param string $awsClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. + * @param string $awsClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + * @param string $awsClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_aws_cluster_sample( + string $formattedParent, + string $awsClusterNetworkingVpcId, + string $awsClusterNetworkingPodAddressCidrBlocksElement, + string $awsClusterNetworkingServiceAddressCidrBlocksElement, + string $awsClusterAwsRegion, + string $awsClusterControlPlaneVersion, + string $awsClusterControlPlaneSubnetIdsElement, + string $awsClusterControlPlaneIamInstanceProfile, + string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, + string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, + string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, + string $awsClusterAuthorizationAdminUsersUsername, + string $awsClusterFleetProject, + string $awsClusterId +): void { + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $awsClusterNetworkingPodAddressCidrBlocks = [$awsClusterNetworkingPodAddressCidrBlocksElement,]; + $awsClusterNetworkingServiceAddressCidrBlocks = [ + $awsClusterNetworkingServiceAddressCidrBlocksElement, + ]; + $awsClusterNetworking = (new AwsClusterNetworking()) + ->setVpcId($awsClusterNetworkingVpcId) + ->setPodAddressCidrBlocks($awsClusterNetworkingPodAddressCidrBlocks) + ->setServiceAddressCidrBlocks($awsClusterNetworkingServiceAddressCidrBlocks); + $awsClusterControlPlaneSubnetIds = [$awsClusterControlPlaneSubnetIdsElement,]; + $awsClusterControlPlaneDatabaseEncryption = (new AwsDatabaseEncryption()) + ->setKmsKeyArn($awsClusterControlPlaneDatabaseEncryptionKmsKeyArn); + $awsClusterControlPlaneAwsServicesAuthentication = (new AwsServicesAuthentication()) + ->setRoleArn($awsClusterControlPlaneAwsServicesAuthenticationRoleArn); + $awsClusterControlPlaneConfigEncryption = (new AwsConfigEncryption()) + ->setKmsKeyArn($awsClusterControlPlaneConfigEncryptionKmsKeyArn); + $awsClusterControlPlane = (new AwsControlPlane()) + ->setVersion($awsClusterControlPlaneVersion) + ->setSubnetIds($awsClusterControlPlaneSubnetIds) + ->setIamInstanceProfile($awsClusterControlPlaneIamInstanceProfile) + ->setDatabaseEncryption($awsClusterControlPlaneDatabaseEncryption) + ->setAwsServicesAuthentication($awsClusterControlPlaneAwsServicesAuthentication) + ->setConfigEncryption($awsClusterControlPlaneConfigEncryption); + $awsClusterUser = (new AwsClusterUser()) + ->setUsername($awsClusterAuthorizationAdminUsersUsername); + $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; + $awsClusterAuthorization = (new AwsAuthorization()) + ->setAdminUsers($awsClusterAuthorizationAdminUsers); + $awsClusterFleet = (new Fleet()) + ->setProject($awsClusterFleetProject); + $awsCluster = (new AwsCluster()) + ->setNetworking($awsClusterNetworking) + ->setAwsRegion($awsClusterAwsRegion) + ->setControlPlane($awsClusterControlPlane) + ->setAuthorization($awsClusterAuthorization) + ->setFleet($awsClusterFleet); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AwsCluster $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 = AwsClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $awsClusterNetworkingVpcId = '[VPC_ID]'; + $awsClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; + $awsClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; + $awsClusterAwsRegion = '[AWS_REGION]'; + $awsClusterControlPlaneVersion = '[VERSION]'; + $awsClusterControlPlaneSubnetIdsElement = '[SUBNET_IDS]'; + $awsClusterControlPlaneIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; + $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; + $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $awsClusterFleetProject = '[PROJECT]'; + $awsClusterId = '[AWS_CLUSTER_ID]'; + + create_aws_cluster_sample( + $formattedParent, + $awsClusterNetworkingVpcId, + $awsClusterNetworkingPodAddressCidrBlocksElement, + $awsClusterNetworkingServiceAddressCidrBlocksElement, + $awsClusterAwsRegion, + $awsClusterControlPlaneVersion, + $awsClusterControlPlaneSubnetIdsElement, + $awsClusterControlPlaneIamInstanceProfile, + $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, + $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, + $awsClusterControlPlaneConfigEncryptionKmsKeyArn, + $awsClusterAuthorizationAdminUsersUsername, + $awsClusterFleetProject, + $awsClusterId + ); +} +// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php new file mode 100644 index 000000000000..4da2f2d18116 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php @@ -0,0 +1,163 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + * @param string $awsNodePoolVersion The Kubernetes version to run on this node pool (e.g. + * `1.19.10-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. + * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the + * pool. + * @param string $awsNodePoolConfigConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. + * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @param int $awsNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * @param string $awsNodePoolSubnetId The subnet where the node pool node run. + * @param int $awsNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. + * @param string $awsNodePoolId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_aws_node_pool_sample( + string $formattedParent, + string $awsNodePoolVersion, + string $awsNodePoolConfigIamInstanceProfile, + string $awsNodePoolConfigConfigEncryptionKmsKeyArn, + int $awsNodePoolAutoscalingMinNodeCount, + int $awsNodePoolAutoscalingMaxNodeCount, + string $awsNodePoolSubnetId, + int $awsNodePoolMaxPodsConstraintMaxPodsPerNode, + string $awsNodePoolId +): void { + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $awsNodePoolConfigConfigEncryption = (new AwsConfigEncryption()) + ->setKmsKeyArn($awsNodePoolConfigConfigEncryptionKmsKeyArn); + $awsNodePoolConfig = (new AwsNodeConfig()) + ->setIamInstanceProfile($awsNodePoolConfigIamInstanceProfile) + ->setConfigEncryption($awsNodePoolConfigConfigEncryption); + $awsNodePoolAutoscaling = (new AwsNodePoolAutoscaling()) + ->setMinNodeCount($awsNodePoolAutoscalingMinNodeCount) + ->setMaxNodeCount($awsNodePoolAutoscalingMaxNodeCount); + $awsNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) + ->setMaxPodsPerNode($awsNodePoolMaxPodsConstraintMaxPodsPerNode); + $awsNodePool = (new AwsNodePool()) + ->setVersion($awsNodePoolVersion) + ->setConfig($awsNodePoolConfig) + ->setAutoscaling($awsNodePoolAutoscaling) + ->setSubnetId($awsNodePoolSubnetId) + ->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AwsNodePool $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $awsNodePoolVersion = '[VERSION]'; + $awsNodePoolConfigIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; + $awsNodePoolConfigConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsNodePoolAutoscalingMinNodeCount = 0; + $awsNodePoolAutoscalingMaxNodeCount = 0; + $awsNodePoolSubnetId = '[SUBNET_ID]'; + $awsNodePoolMaxPodsConstraintMaxPodsPerNode = 0; + $awsNodePoolId = '[AWS_NODE_POOL_ID]'; + + create_aws_node_pool_sample( + $formattedParent, + $awsNodePoolVersion, + $awsNodePoolConfigIamInstanceProfile, + $awsNodePoolConfigConfigEncryptionKmsKeyArn, + $awsNodePoolAutoscalingMinNodeCount, + $awsNodePoolAutoscalingMaxNodeCount, + $awsNodePoolSubnetId, + $awsNodePoolMaxPodsConstraintMaxPodsPerNode, + $awsNodePoolId + ); +} +// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php new file mode 100644 index 000000000000..c276799702e5 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php @@ -0,0 +1,90 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + */ +function delete_aws_cluster_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->deleteAwsCluster($formattedName); + $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + + delete_aws_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php new file mode 100644 index 000000000000..4b0ad2a8fb00 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php @@ -0,0 +1,92 @@ +/locations//awsClusters//awsNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsNodePoolName()} for help formatting this field. + */ +function delete_aws_node_pool_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->deleteAwsNodePool($formattedName); + $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 = AwsClustersClient::awsNodePoolName( + '[PROJECT]', + '[LOCATION]', + '[AWS_CLUSTER]', + '[AWS_NODE_POOL]' + ); + + delete_aws_node_pool_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php new file mode 100644 index 000000000000..0a93e6b77317 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php @@ -0,0 +1,79 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + */ +function generate_aws_access_token_sample(string $formattedAwsCluster): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var GenerateAwsAccessTokenResponse $response */ + $response = $awsClustersClient->generateAwsAccessToken($formattedAwsCluster); + 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 +{ + $formattedAwsCluster = AwsClustersClient::awsClusterName( + '[PROJECT]', + '[LOCATION]', + '[AWS_CLUSTER]' + ); + + generate_aws_access_token_sample($formattedAwsCluster); +} +// [END gkemulticloud_v1_generated_AwsClusters_GenerateAwsAccessToken_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php new file mode 100644 index 000000000000..0f06ca7b899a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php @@ -0,0 +1,75 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + */ +function get_aws_cluster_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AwsCluster $response */ + $response = $awsClustersClient->getAwsCluster($formattedName); + 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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + + get_aws_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_GetAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php new file mode 100644 index 000000000000..eb55af6dcc5c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php @@ -0,0 +1,80 @@ +/locations//awsClusters//awsNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsNodePoolName()} for help formatting this field. + */ +function get_aws_node_pool_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AwsNodePool $response */ + $response = $awsClustersClient->getAwsNodePool($formattedName); + 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 = AwsClustersClient::awsNodePoolName( + '[PROJECT]', + '[LOCATION]', + '[AWS_CLUSTER]', + '[AWS_NODE_POOL]' + ); + + get_aws_node_pool_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_GetAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php new file mode 100644 index 000000000000..030d47feaae4 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php @@ -0,0 +1,75 @@ +/locations//awsServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsServerConfigName()} for help formatting this field. + */ +function get_aws_server_config_sample(string $formattedName): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AwsServerConfig $response */ + $response = $awsClustersClient->getAwsServerConfig($formattedName); + 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 = AwsClustersClient::awsServerConfigName('[PROJECT]', '[LOCATION]'); + + get_aws_server_config_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AwsClusters_GetAwsServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php new file mode 100644 index 000000000000..74f49e97e0ea --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php @@ -0,0 +1,78 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AwsClustersClient::locationName()} for help formatting this field. + */ +function list_aws_clusters_sample(string $formattedParent): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $awsClustersClient->listAwsClusters($formattedParent); + + /** @var AwsCluster $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 = AwsClustersClient::locationName('[PROJECT]', '[LOCATION]'); + + list_aws_clusters_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AwsClusters_ListAwsClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php new file mode 100644 index 000000000000..4d833aef1d2c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php @@ -0,0 +1,80 @@ +/locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AwsClustersClient::awsClusterName()} for help formatting this field. + */ +function list_aws_node_pools_sample(string $formattedParent): void +{ + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $awsClustersClient->listAwsNodePools($formattedParent); + + /** @var AwsNodePool $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + + list_aws_node_pools_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AwsClusters_ListAwsNodePools_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php new file mode 100644 index 000000000000..41b8ac481b81 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php @@ -0,0 +1,197 @@ +`. + */ +function update_aws_cluster_sample( + string $awsClusterNetworkingVpcId, + string $awsClusterNetworkingPodAddressCidrBlocksElement, + string $awsClusterNetworkingServiceAddressCidrBlocksElement, + string $awsClusterAwsRegion, + string $awsClusterControlPlaneVersion, + string $awsClusterControlPlaneSubnetIdsElement, + string $awsClusterControlPlaneIamInstanceProfile, + string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, + string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, + string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, + string $awsClusterAuthorizationAdminUsersUsername, + string $awsClusterFleetProject +): void { + // Create a client. + $awsClustersClient = new AwsClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $awsClusterNetworkingPodAddressCidrBlocks = [$awsClusterNetworkingPodAddressCidrBlocksElement,]; + $awsClusterNetworkingServiceAddressCidrBlocks = [ + $awsClusterNetworkingServiceAddressCidrBlocksElement, + ]; + $awsClusterNetworking = (new AwsClusterNetworking()) + ->setVpcId($awsClusterNetworkingVpcId) + ->setPodAddressCidrBlocks($awsClusterNetworkingPodAddressCidrBlocks) + ->setServiceAddressCidrBlocks($awsClusterNetworkingServiceAddressCidrBlocks); + $awsClusterControlPlaneSubnetIds = [$awsClusterControlPlaneSubnetIdsElement,]; + $awsClusterControlPlaneDatabaseEncryption = (new AwsDatabaseEncryption()) + ->setKmsKeyArn($awsClusterControlPlaneDatabaseEncryptionKmsKeyArn); + $awsClusterControlPlaneAwsServicesAuthentication = (new AwsServicesAuthentication()) + ->setRoleArn($awsClusterControlPlaneAwsServicesAuthenticationRoleArn); + $awsClusterControlPlaneConfigEncryption = (new AwsConfigEncryption()) + ->setKmsKeyArn($awsClusterControlPlaneConfigEncryptionKmsKeyArn); + $awsClusterControlPlane = (new AwsControlPlane()) + ->setVersion($awsClusterControlPlaneVersion) + ->setSubnetIds($awsClusterControlPlaneSubnetIds) + ->setIamInstanceProfile($awsClusterControlPlaneIamInstanceProfile) + ->setDatabaseEncryption($awsClusterControlPlaneDatabaseEncryption) + ->setAwsServicesAuthentication($awsClusterControlPlaneAwsServicesAuthentication) + ->setConfigEncryption($awsClusterControlPlaneConfigEncryption); + $awsClusterUser = (new AwsClusterUser()) + ->setUsername($awsClusterAuthorizationAdminUsersUsername); + $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; + $awsClusterAuthorization = (new AwsAuthorization()) + ->setAdminUsers($awsClusterAuthorizationAdminUsers); + $awsClusterFleet = (new Fleet()) + ->setProject($awsClusterFleetProject); + $awsCluster = (new AwsCluster()) + ->setNetworking($awsClusterNetworking) + ->setAwsRegion($awsClusterAwsRegion) + ->setControlPlane($awsClusterControlPlane) + ->setAuthorization($awsClusterAuthorization) + ->setFleet($awsClusterFleet); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AwsCluster $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 +{ + $awsClusterNetworkingVpcId = '[VPC_ID]'; + $awsClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; + $awsClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; + $awsClusterAwsRegion = '[AWS_REGION]'; + $awsClusterControlPlaneVersion = '[VERSION]'; + $awsClusterControlPlaneSubnetIdsElement = '[SUBNET_IDS]'; + $awsClusterControlPlaneIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; + $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; + $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $awsClusterFleetProject = '[PROJECT]'; + + update_aws_cluster_sample( + $awsClusterNetworkingVpcId, + $awsClusterNetworkingPodAddressCidrBlocksElement, + $awsClusterNetworkingServiceAddressCidrBlocksElement, + $awsClusterAwsRegion, + $awsClusterControlPlaneVersion, + $awsClusterControlPlaneSubnetIdsElement, + $awsClusterControlPlaneIamInstanceProfile, + $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, + $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, + $awsClusterControlPlaneConfigEncryptionKmsKeyArn, + $awsClusterAuthorizationAdminUsersUsername, + $awsClusterFleetProject + ); +} +// [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php new file mode 100644 index 000000000000..46ca1348c412 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php @@ -0,0 +1,136 @@ +setKmsKeyArn($awsNodePoolConfigConfigEncryptionKmsKeyArn); + $awsNodePoolConfig = (new AwsNodeConfig()) + ->setIamInstanceProfile($awsNodePoolConfigIamInstanceProfile) + ->setConfigEncryption($awsNodePoolConfigConfigEncryption); + $awsNodePoolAutoscaling = (new AwsNodePoolAutoscaling()) + ->setMinNodeCount($awsNodePoolAutoscalingMinNodeCount) + ->setMaxNodeCount($awsNodePoolAutoscalingMaxNodeCount); + $awsNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) + ->setMaxPodsPerNode($awsNodePoolMaxPodsConstraintMaxPodsPerNode); + $awsNodePool = (new AwsNodePool()) + ->setVersion($awsNodePoolVersion) + ->setConfig($awsNodePoolConfig) + ->setAutoscaling($awsNodePoolAutoscaling) + ->setSubnetId($awsNodePoolSubnetId) + ->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AwsNodePool $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 +{ + $awsNodePoolVersion = '[VERSION]'; + $awsNodePoolConfigIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; + $awsNodePoolConfigConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; + $awsNodePoolAutoscalingMinNodeCount = 0; + $awsNodePoolAutoscalingMaxNodeCount = 0; + $awsNodePoolSubnetId = '[SUBNET_ID]'; + $awsNodePoolMaxPodsConstraintMaxPodsPerNode = 0; + + update_aws_node_pool_sample( + $awsNodePoolVersion, + $awsNodePoolConfigIamInstanceProfile, + $awsNodePoolConfigConfigEncryptionKmsKeyArn, + $awsNodePoolAutoscalingMinNodeCount, + $awsNodePoolAutoscalingMaxNodeCount, + $awsNodePoolSubnetId, + $awsNodePoolMaxPodsConstraintMaxPodsPerNode + ); +} +// [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php new file mode 100644 index 000000000000..7ae4e09b4da3 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php @@ -0,0 +1,122 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::locationName()} for help formatting this field. + * @param string $azureClientTenantId The Azure Active Directory Tenant ID. + * @param string $azureClientApplicationId The Azure Active Directory Application ID. + * @param string $azureClientId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_azure_client_sample( + string $formattedParent, + string $azureClientTenantId, + string $azureClientApplicationId, + string $azureClientId +): void { + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $azureClient = (new AzureClient()) + ->setTenantId($azureClientTenantId) + ->setApplicationId($azureClientApplicationId); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureClient $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $azureClientTenantId = '[TENANT_ID]'; + $azureClientApplicationId = '[APPLICATION_ID]'; + $azureClientId = '[AZURE_CLIENT_ID]'; + + create_azure_client_sample( + $formattedParent, + $azureClientTenantId, + $azureClientApplicationId, + $azureClientId + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php new file mode 100644 index 000000000000..817380346129 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php @@ -0,0 +1,238 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::locationName()} for help formatting this field. + * @param string $azureClusterAzureRegion The Azure region where the cluster runs. + * + * Each Google Cloud region supports a subset of nearby Azure regions. + * You can call + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] + * to list all supported Azure regions within a given Google Cloud region. + * @param string $azureClusterResourceGroupId The ARM ID of the resource group where the cluster resources are + * deployed. For example: + * `/subscriptions//resourceGroups/` + * @param string $azureClusterAzureClient Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * + * This field cannot be changed after creation. + * @param string $azureClusterNetworkingPodAddressCidrBlocksElement The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * + * This field cannot be changed after creation. + * @param string $azureClusterNetworkingServiceAddressCidrBlocksElement The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * + * This field cannot be changed after creating a cluster. + * @param string $azureClusterControlPlaneVersion The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. + * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + * @param string $azureClusterId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_azure_cluster_sample( + string $formattedParent, + string $azureClusterAzureRegion, + string $azureClusterResourceGroupId, + string $azureClusterAzureClient, + string $azureClusterNetworkingVirtualNetworkId, + string $azureClusterNetworkingPodAddressCidrBlocksElement, + string $azureClusterNetworkingServiceAddressCidrBlocksElement, + string $azureClusterControlPlaneVersion, + string $azureClusterControlPlaneSshConfigAuthorizedKey, + string $azureClusterAuthorizationAdminUsersUsername, + string $azureClusterFleetProject, + string $azureClusterId +): void { + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $azureClusterNetworkingPodAddressCidrBlocks = [ + $azureClusterNetworkingPodAddressCidrBlocksElement, + ]; + $azureClusterNetworkingServiceAddressCidrBlocks = [ + $azureClusterNetworkingServiceAddressCidrBlocksElement, + ]; + $azureClusterNetworking = (new AzureClusterNetworking()) + ->setVirtualNetworkId($azureClusterNetworkingVirtualNetworkId) + ->setPodAddressCidrBlocks($azureClusterNetworkingPodAddressCidrBlocks) + ->setServiceAddressCidrBlocks($azureClusterNetworkingServiceAddressCidrBlocks); + $azureClusterControlPlaneSshConfig = (new AzureSshConfig()) + ->setAuthorizedKey($azureClusterControlPlaneSshConfigAuthorizedKey); + $azureClusterControlPlane = (new AzureControlPlane()) + ->setVersion($azureClusterControlPlaneVersion) + ->setSshConfig($azureClusterControlPlaneSshConfig); + $azureClusterUser = (new AzureClusterUser()) + ->setUsername($azureClusterAuthorizationAdminUsersUsername); + $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; + $azureClusterAuthorization = (new AzureAuthorization()) + ->setAdminUsers($azureClusterAuthorizationAdminUsers); + $azureClusterFleet = (new Fleet()) + ->setProject($azureClusterFleetProject); + $azureCluster = (new AzureCluster()) + ->setAzureRegion($azureClusterAzureRegion) + ->setResourceGroupId($azureClusterResourceGroupId) + ->setAzureClient($azureClusterAzureClient) + ->setNetworking($azureClusterNetworking) + ->setControlPlane($azureClusterControlPlane) + ->setAuthorization($azureClusterAuthorization) + ->setFleet($azureClusterFleet); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->createAzureCluster( + $formattedParent, + $azureCluster, + $azureClusterId + ); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureCluster $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); + $azureClusterAzureRegion = '[AZURE_REGION]'; + $azureClusterResourceGroupId = '[RESOURCE_GROUP_ID]'; + $azureClusterAzureClient = '[AZURE_CLIENT]'; + $azureClusterNetworkingVirtualNetworkId = '[VIRTUAL_NETWORK_ID]'; + $azureClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; + $azureClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; + $azureClusterControlPlaneVersion = '[VERSION]'; + $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; + $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $azureClusterFleetProject = '[PROJECT]'; + $azureClusterId = '[AZURE_CLUSTER_ID]'; + + create_azure_cluster_sample( + $formattedParent, + $azureClusterAzureRegion, + $azureClusterResourceGroupId, + $azureClusterAzureClient, + $azureClusterNetworkingVirtualNetworkId, + $azureClusterNetworkingPodAddressCidrBlocksElement, + $azureClusterNetworkingServiceAddressCidrBlocksElement, + $azureClusterControlPlaneVersion, + $azureClusterControlPlaneSshConfigAuthorizedKey, + $azureClusterAuthorizationAdminUsersUsername, + $azureClusterFleetProject, + $azureClusterId + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php new file mode 100644 index 000000000000..2716082cbcac --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php @@ -0,0 +1,164 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + * @param string $azureNodePoolVersion The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + * node pool. + * @param string $azureNodePoolConfigSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * @param string $azureNodePoolSubnetId The ARM ID of the subnet where the node pool VMs run. Make sure + * it's a subnet under the virtual network in the cluster configuration. + * @param int $azureNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or + * equal to 1 and less than or equal to max_node_count. + * @param int $azureNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or + * equal to min_node_count and less than or equal to 50. + * @param int $azureNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. + * @param string $azureNodePoolId A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + */ +function create_azure_node_pool_sample( + string $formattedParent, + string $azureNodePoolVersion, + string $azureNodePoolConfigSshConfigAuthorizedKey, + string $azureNodePoolSubnetId, + int $azureNodePoolAutoscalingMinNodeCount, + int $azureNodePoolAutoscalingMaxNodeCount, + int $azureNodePoolMaxPodsConstraintMaxPodsPerNode, + string $azureNodePoolId +): void { + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $azureNodePoolConfigSshConfig = (new AzureSshConfig()) + ->setAuthorizedKey($azureNodePoolConfigSshConfigAuthorizedKey); + $azureNodePoolConfig = (new AzureNodeConfig()) + ->setSshConfig($azureNodePoolConfigSshConfig); + $azureNodePoolAutoscaling = (new AzureNodePoolAutoscaling()) + ->setMinNodeCount($azureNodePoolAutoscalingMinNodeCount) + ->setMaxNodeCount($azureNodePoolAutoscalingMaxNodeCount); + $azureNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) + ->setMaxPodsPerNode($azureNodePoolMaxPodsConstraintMaxPodsPerNode); + $azureNodePool = (new AzureNodePool()) + ->setVersion($azureNodePoolVersion) + ->setConfig($azureNodePoolConfig) + ->setSubnetId($azureNodePoolSubnetId) + ->setAutoscaling($azureNodePoolAutoscaling) + ->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->createAzureNodePool( + $formattedParent, + $azureNodePool, + $azureNodePoolId + ); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureNodePool $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 = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + $azureNodePoolVersion = '[VERSION]'; + $azureNodePoolConfigSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; + $azureNodePoolSubnetId = '[SUBNET_ID]'; + $azureNodePoolAutoscalingMinNodeCount = 0; + $azureNodePoolAutoscalingMaxNodeCount = 0; + $azureNodePoolMaxPodsConstraintMaxPodsPerNode = 0; + $azureNodePoolId = '[AZURE_NODE_POOL_ID]'; + + create_azure_node_pool_sample( + $formattedParent, + $azureNodePoolVersion, + $azureNodePoolConfigSshConfigAuthorizedKey, + $azureNodePoolSubnetId, + $azureNodePoolAutoscalingMinNodeCount, + $azureNodePoolAutoscalingMaxNodeCount, + $azureNodePoolMaxPodsConstraintMaxPodsPerNode, + $azureNodePoolId + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php new file mode 100644 index 000000000000..90461dfda62d --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php @@ -0,0 +1,91 @@ +/locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClientName()} for help formatting this field. + */ +function delete_azure_client_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->deleteAzureClient($formattedName); + $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 = AzureClustersClient::azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + + delete_azure_client_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php new file mode 100644 index 000000000000..4149a2f8352a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php @@ -0,0 +1,94 @@ +/locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + */ +function delete_azure_cluster_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->deleteAzureCluster($formattedName); + $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 = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + + delete_azure_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php new file mode 100644 index 000000000000..a7c03ed1c4e9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php @@ -0,0 +1,92 @@ +/locations//azureClusters//azureNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureNodePoolName()} for help formatting this field. + */ +function delete_azure_node_pool_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->deleteAzureNodePool($formattedName); + $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 = AzureClustersClient::azureNodePoolName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]', + '[AZURE_NODE_POOL]' + ); + + delete_azure_node_pool_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php new file mode 100644 index 000000000000..ecf72fa3329c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php @@ -0,0 +1,79 @@ +/locations//AzureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + */ +function generate_azure_access_token_sample(string $formattedAzureCluster): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var GenerateAzureAccessTokenResponse $response */ + $response = $azureClustersClient->generateAzureAccessToken($formattedAzureCluster); + 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 +{ + $formattedAzureCluster = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + + generate_azure_access_token_sample($formattedAzureCluster); +} +// [END gkemulticloud_v1_generated_AzureClusters_GenerateAzureAccessToken_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php new file mode 100644 index 000000000000..b21b84ce42d7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php @@ -0,0 +1,76 @@ +/locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClientName()} for help formatting this field. + */ +function get_azure_client_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AzureClient $response */ + $response = $azureClustersClient->getAzureClient($formattedName); + 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 = AzureClustersClient::azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + + get_azure_client_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_GetAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php new file mode 100644 index 000000000000..376da8b71eb7 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php @@ -0,0 +1,79 @@ +/locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + */ +function get_azure_cluster_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AzureCluster $response */ + $response = $azureClustersClient->getAzureCluster($formattedName); + 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 = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + + get_azure_cluster_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_GetAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php new file mode 100644 index 000000000000..9c9ad1ccd5ee --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php @@ -0,0 +1,80 @@ +/locations//azureClusters//azureNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureNodePoolName()} for help formatting this field. + */ +function get_azure_node_pool_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AzureNodePool $response */ + $response = $azureClustersClient->getAzureNodePool($formattedName); + 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 = AzureClustersClient::azureNodePoolName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]', + '[AZURE_NODE_POOL]' + ); + + get_azure_node_pool_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_GetAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php new file mode 100644 index 000000000000..e7a3812155c2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php @@ -0,0 +1,75 @@ +/locations//azureServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureServerConfigName()} for help formatting this field. + */ +function get_azure_server_config_sample(string $formattedName): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var AzureServerConfig $response */ + $response = $azureClustersClient->getAzureServerConfig($formattedName); + 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 = AzureClustersClient::azureServerConfigName('[PROJECT]', '[LOCATION]'); + + get_azure_server_config_sample($formattedName); +} +// [END gkemulticloud_v1_generated_AzureClusters_GetAzureServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php new file mode 100644 index 000000000000..36eff1be24cf --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php @@ -0,0 +1,78 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AzureClustersClient::locationName()} for help formatting this field. + */ +function list_azure_clients_sample(string $formattedParent): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $azureClustersClient->listAzureClients($formattedParent); + + /** @var AzureClient $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); + + list_azure_clients_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AzureClusters_ListAzureClients_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php new file mode 100644 index 000000000000..641b177a5717 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php @@ -0,0 +1,78 @@ +/locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. Please see + * {@see AzureClustersClient::locationName()} for help formatting this field. + */ +function list_azure_clusters_sample(string $formattedParent): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $azureClustersClient->listAzureClusters($formattedParent); + + /** @var AzureCluster $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); + + list_azure_clusters_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AzureClusters_ListAzureClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php new file mode 100644 index 000000000000..906b4bdef131 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php @@ -0,0 +1,84 @@ +/locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. Please see + * {@see AzureClustersClient::azureClusterName()} for help formatting this field. + */ +function list_azure_node_pools_sample(string $formattedParent): void +{ + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $azureClustersClient->listAzureNodePools($formattedParent); + + /** @var AzureNodePool $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 = AzureClustersClient::azureClusterName( + '[PROJECT]', + '[LOCATION]', + '[AZURE_CLUSTER]' + ); + + list_azure_node_pools_sample($formattedParent); +} +// [END gkemulticloud_v1_generated_AzureClusters_ListAzureNodePools_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php new file mode 100644 index 000000000000..29093c8060e3 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php @@ -0,0 +1,207 @@ +/resourceGroups/` + * @param string $azureClusterAzureClient Name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + * authentication configuration for how the Anthos Multi-Cloud API connects to + * Azure APIs. + * + * The `AzureClient` resource must reside on the same GCP project and region + * as the `AzureCluster`. + * + * `AzureClient` names are formatted as + * `projects//locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with + * your cluster. + * + * All components in the cluster (i.e. control plane and node pools) run on a + * single VNet. + * + * Example: + * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` + * + * This field cannot be changed after creation. + * @param string $azureClusterNetworkingPodAddressCidrBlocksElement The IP address range of the pods in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * + * All pods in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * + * This field cannot be changed after creation. + * @param string $azureClusterNetworkingServiceAddressCidrBlocksElement The IP address range for services in this cluster, in CIDR + * notation (e.g. `10.96.0.0/14`). + * + * All services in the cluster get assigned a unique IPv4 address from these + * ranges. Only a single range is supported. + * + * This field cannot be changed after creating a cluster. + * @param string $azureClusterControlPlaneVersion The Kubernetes version to run on control plane replicas + * (e.g. `1.19.10-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. + * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts + * the authorized_keys file format used in OpenSSH according to the sshd(8) + * manual page. + * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. + * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be + * registered. + * + * Project names are formatted as + * `projects/`. + */ +function update_azure_cluster_sample( + string $azureClusterAzureRegion, + string $azureClusterResourceGroupId, + string $azureClusterAzureClient, + string $azureClusterNetworkingVirtualNetworkId, + string $azureClusterNetworkingPodAddressCidrBlocksElement, + string $azureClusterNetworkingServiceAddressCidrBlocksElement, + string $azureClusterControlPlaneVersion, + string $azureClusterControlPlaneSshConfigAuthorizedKey, + string $azureClusterAuthorizationAdminUsersUsername, + string $azureClusterFleetProject +): void { + // Create a client. + $azureClustersClient = new AzureClustersClient(); + + // Prepare any non-scalar elements to be passed along with the request. + $azureClusterNetworkingPodAddressCidrBlocks = [ + $azureClusterNetworkingPodAddressCidrBlocksElement, + ]; + $azureClusterNetworkingServiceAddressCidrBlocks = [ + $azureClusterNetworkingServiceAddressCidrBlocksElement, + ]; + $azureClusterNetworking = (new AzureClusterNetworking()) + ->setVirtualNetworkId($azureClusterNetworkingVirtualNetworkId) + ->setPodAddressCidrBlocks($azureClusterNetworkingPodAddressCidrBlocks) + ->setServiceAddressCidrBlocks($azureClusterNetworkingServiceAddressCidrBlocks); + $azureClusterControlPlaneSshConfig = (new AzureSshConfig()) + ->setAuthorizedKey($azureClusterControlPlaneSshConfigAuthorizedKey); + $azureClusterControlPlane = (new AzureControlPlane()) + ->setVersion($azureClusterControlPlaneVersion) + ->setSshConfig($azureClusterControlPlaneSshConfig); + $azureClusterUser = (new AzureClusterUser()) + ->setUsername($azureClusterAuthorizationAdminUsersUsername); + $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; + $azureClusterAuthorization = (new AzureAuthorization()) + ->setAdminUsers($azureClusterAuthorizationAdminUsers); + $azureClusterFleet = (new Fleet()) + ->setProject($azureClusterFleetProject); + $azureCluster = (new AzureCluster()) + ->setAzureRegion($azureClusterAzureRegion) + ->setResourceGroupId($azureClusterResourceGroupId) + ->setAzureClient($azureClusterAzureClient) + ->setNetworking($azureClusterNetworking) + ->setControlPlane($azureClusterControlPlane) + ->setAuthorization($azureClusterAuthorization) + ->setFleet($azureClusterFleet); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureCluster $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 +{ + $azureClusterAzureRegion = '[AZURE_REGION]'; + $azureClusterResourceGroupId = '[RESOURCE_GROUP_ID]'; + $azureClusterAzureClient = '[AZURE_CLIENT]'; + $azureClusterNetworkingVirtualNetworkId = '[VIRTUAL_NETWORK_ID]'; + $azureClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; + $azureClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; + $azureClusterControlPlaneVersion = '[VERSION]'; + $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; + $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; + $azureClusterFleetProject = '[PROJECT]'; + + update_azure_cluster_sample( + $azureClusterAzureRegion, + $azureClusterResourceGroupId, + $azureClusterAzureClient, + $azureClusterNetworkingVirtualNetworkId, + $azureClusterNetworkingPodAddressCidrBlocksElement, + $azureClusterNetworkingServiceAddressCidrBlocksElement, + $azureClusterControlPlaneVersion, + $azureClusterControlPlaneSshConfigAuthorizedKey, + $azureClusterAuthorizationAdminUsersUsername, + $azureClusterFleetProject + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php new file mode 100644 index 000000000000..b17ab2f250b9 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php @@ -0,0 +1,129 @@ +setAuthorizedKey($azureNodePoolConfigSshConfigAuthorizedKey); + $azureNodePoolConfig = (new AzureNodeConfig()) + ->setSshConfig($azureNodePoolConfigSshConfig); + $azureNodePoolAutoscaling = (new AzureNodePoolAutoscaling()) + ->setMinNodeCount($azureNodePoolAutoscalingMinNodeCount) + ->setMaxNodeCount($azureNodePoolAutoscalingMaxNodeCount); + $azureNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) + ->setMaxPodsPerNode($azureNodePoolMaxPodsConstraintMaxPodsPerNode); + $azureNodePool = (new AzureNodePool()) + ->setVersion($azureNodePoolVersion) + ->setConfig($azureNodePoolConfig) + ->setSubnetId($azureNodePoolSubnetId) + ->setAutoscaling($azureNodePoolAutoscaling) + ->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AzureNodePool $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 +{ + $azureNodePoolVersion = '[VERSION]'; + $azureNodePoolConfigSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; + $azureNodePoolSubnetId = '[SUBNET_ID]'; + $azureNodePoolAutoscalingMinNodeCount = 0; + $azureNodePoolAutoscalingMaxNodeCount = 0; + $azureNodePoolMaxPodsConstraintMaxPodsPerNode = 0; + + update_azure_node_pool_sample( + $azureNodePoolVersion, + $azureNodePoolConfigSshConfigAuthorizedKey, + $azureNodePoolSubnetId, + $azureNodePoolAutoscalingMinNodeCount, + $azureNodePoolAutoscalingMaxNodeCount, + $azureNodePoolMaxPodsConstraintMaxPodsPerNode + ); +} +// [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php new file mode 100644 index 000000000000..e8d698f9abe6 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php @@ -0,0 +1,34 @@ +locationName('[PROJECT]', '[LOCATION]'); + * $attachedCluster = new AttachedCluster(); + * $attachedClusterId = 'attached_cluster_id'; + * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'createAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + */ +class AttachedClustersGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AttachedClusters'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static $attachedClusterNameTemplate; + + private static $attachedServerConfigNameTemplate; + + private static $locationNameTemplate; + + private static $pathTemplateMap; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/attached_clusters_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/attached_clusters_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/attached_clusters_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/attached_clusters_rest_client_config.php', + ], + ], + ]; + } + + private static function getAttachedClusterNameTemplate() + { + if (self::$attachedClusterNameTemplate == null) { + self::$attachedClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/attachedClusters/{attached_cluster}'); + } + + return self::$attachedClusterNameTemplate; + } + + private static function getAttachedServerConfigNameTemplate() + { + if (self::$attachedServerConfigNameTemplate == null) { + self::$attachedServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/attachedServerConfig'); + } + + return self::$attachedServerConfigNameTemplate; + } + + private static function getLocationNameTemplate() + { + if (self::$locationNameTemplate == null) { + self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); + } + + return self::$locationNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'attachedCluster' => self::getAttachedClusterNameTemplate(), + 'attachedServerConfig' => self::getAttachedServerConfigNameTemplate(), + 'location' => self::getLocationNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * attached_cluster resource. + * + * @param string $project + * @param string $location + * @param string $attachedCluster + * + * @return string The formatted attached_cluster resource. + */ + public static function attachedClusterName($project, $location, $attachedCluster) + { + return self::getAttachedClusterNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'attached_cluster' => $attachedCluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * attached_server_config resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted attached_server_config resource. + */ + public static function attachedServerConfigName($project, $location) + { + return self::getAttachedServerConfigNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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($project, $location) + { + return self::getLocationNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - attachedCluster: projects/{project}/locations/{location}/attachedClusters/{attached_cluster} + * - attachedServerConfig: projects/{project}/locations/{location}/attachedServerConfig + * - location: projects/{project}/locations/{location} + * + * 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($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Constructor. + * + * @param array $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 'gkemulticloud.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @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. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** + * Creates a new + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * on a given GCP project and region. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $attachedCluster = new AttachedCluster(); + * $attachedClusterId = 'attached_cluster_id'; + * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'createAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AttachedCluster $attachedCluster Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * @param string $attachedClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAttachedCluster($parent, $attachedCluster, $attachedClusterId, array $optionalArgs = []) + { + $request = new CreateAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAttachedCluster($attachedCluster); + $request->setAttachedClusterId($attachedClusterId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedName = $attachedClustersClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + * $operationResponse = $attachedClustersClient->deleteAttachedCluster($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->deleteAttachedCluster($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'deleteAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + * + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the resource. + * @type bool $allowMissing + * If set to true, and the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * is not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * + * Useful for idempotent deletion. + * @type bool $ignoreErrors + * If set to true, the deletion of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will succeed even if errors occur during deleting in cluster resources. + * Using this parameter may result in orphaned resources in the cluster. + * @type string $etag + * The current etag of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAttachedCluster($name, array $optionalArgs = []) + { + $request = new DeleteAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['ignoreErrors'])) { + $request->setIgnoreErrors($optionalArgs['ignoreErrors']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Generates the install manifest to be installed on the target cluster. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $attachedClusterId = 'attached_cluster_id'; + * $platformVersion = 'platform_version'; + * $response = $attachedClustersClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param string $attachedClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * name formatted as + * `projects//locations//attachedClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * + * When generating an install manifest for importing an existing Membership + * resource, the attached_cluster_id field must be the Membership id. + * + * Membership names are formatted as `resource name formatted as + * `projects//locations//memberships/`. + * @param string $platformVersion Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestResponse + * + * @throws ApiException if the remote call fails + */ + public function generateAttachedClusterInstallManifest($parent, $attachedClusterId, $platformVersion, array $optionalArgs = []) + { + $request = new GenerateAttachedClusterInstallManifestRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAttachedClusterId($attachedClusterId); + $request->setPlatformVersion($platformVersion); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GenerateAttachedClusterInstallManifest', GenerateAttachedClusterInstallManifestResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedName = $attachedClustersClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + * $response = $attachedClustersClient->getAttachedCluster($formattedName); + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to describe. + * + * `AttachedCluster` names are formatted as + * `projects//locations//attachedClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AttachedCluster + * + * @throws ApiException if the remote call fails + */ + public function getAttachedCluster($name, array $optionalArgs = []) + { + $request = new GetAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAttachedCluster', AttachedCluster::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns information, such as supported Kubernetes versions, on a given + * Google Cloud location. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedName = $attachedClustersClient->attachedServerConfigName('[PROJECT]', '[LOCATION]'); + * $response = $attachedClustersClient->getAttachedServerConfig($formattedName); + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + * resource to describe. + * + * `AttachedServerConfig` names are formatted as + * `projects//locations//attachedServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AttachedServerConfig + * + * @throws ApiException if the remote call fails + */ + public function getAttachedServerConfig($name, array $optionalArgs = []) + { + $request = new GetAttachedServerConfigRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAttachedServerConfig', AttachedServerConfig::class, $optionalArgs, $request)->wait(); + } + + /** + * Imports creates a new + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + * Attached Clusters created before the introduction of the Anthos Multi-Cloud + * API can be imported through this method. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $fleetMembership = 'fleet_membership'; + * $platformVersion = 'platform_version'; + * $distribution = 'distribution'; + * $operationResponse = $attachedClustersClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'importAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * will be created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param string $fleetMembership Required. The name of the fleet membership resource to import. + * @param string $platformVersion Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + * + * You can list all supported versions on a given Google Cloud region by + * calling + * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + * @param string $distribution Required. The Kubernetes distribution of the underlying attached cluster. + * + * Supported values: ["eks", "aks"]. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually import the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function importAttachedCluster($parent, $fleetMembership, $platformVersion, $distribution, array $optionalArgs = []) + { + $request = new ImportAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setFleetMembership($fleetMembership); + $request->setPlatformVersion($platformVersion); + $request->setDistribution($distribution); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('ImportAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + * resources on a given Google Cloud project and region. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * // Iterate over pages of elements + * $pagedResponse = $attachedClustersClient->listAttachedClusters($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $attachedClustersClient->listAttachedClusters($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAttachedClusters($parent, array $optionalArgs = []) + { + $request = new ListAttachedClustersRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAttachedClusters', $optionalArgs, ListAttachedClustersResponse::class, $request); + } + + /** + * Updates an + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * + * Sample code: + * ``` + * $attachedClustersClient = new AttachedClustersClient(); + * try { + * $attachedCluster = new AttachedCluster(); + * $updateMask = new FieldMask(); + * $operationResponse = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'updateAttachedCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $attachedClustersClient->close(); + * } + * ``` + * + * @param AttachedCluster $attachedCluster Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + * + * * `description`. + * * `annotations`. + * * `platform_version`. + * * `authorization.admin_users`. + * * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually update the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAttachedCluster($attachedCluster, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAttachedClusterRequest(); + $requestParamHeaders = []; + $request->setAttachedCluster($attachedCluster); + $request->setUpdateMask($updateMask); + $requestParamHeaders['attached_cluster.name'] = $attachedCluster->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php new file mode 100644 index 000000000000..8ce2863a684c --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php @@ -0,0 +1,1365 @@ +locationName('[PROJECT]', '[LOCATION]'); + * $awsCluster = new AwsCluster(); + * $awsClusterId = 'aws_cluster_id'; + * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + */ +class AwsClustersGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AwsClusters'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static $awsClusterNameTemplate; + + private static $awsNodePoolNameTemplate; + + private static $awsServerConfigNameTemplate; + + private static $locationNameTemplate; + + private static $pathTemplateMap; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/aws_clusters_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/aws_clusters_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/aws_clusters_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/aws_clusters_rest_client_config.php', + ], + ], + ]; + } + + private static function getAwsClusterNameTemplate() + { + if (self::$awsClusterNameTemplate == null) { + self::$awsClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsClusters/{aws_cluster}'); + } + + return self::$awsClusterNameTemplate; + } + + private static function getAwsNodePoolNameTemplate() + { + if (self::$awsNodePoolNameTemplate == null) { + self::$awsNodePoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool}'); + } + + return self::$awsNodePoolNameTemplate; + } + + private static function getAwsServerConfigNameTemplate() + { + if (self::$awsServerConfigNameTemplate == null) { + self::$awsServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsServerConfig'); + } + + return self::$awsServerConfigNameTemplate; + } + + private static function getLocationNameTemplate() + { + if (self::$locationNameTemplate == null) { + self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); + } + + return self::$locationNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'awsCluster' => self::getAwsClusterNameTemplate(), + 'awsNodePool' => self::getAwsNodePoolNameTemplate(), + 'awsServerConfig' => self::getAwsServerConfigNameTemplate(), + 'location' => self::getLocationNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a aws_cluster + * resource. + * + * @param string $project + * @param string $location + * @param string $awsCluster + * + * @return string The formatted aws_cluster resource. + */ + public static function awsClusterName($project, $location, $awsCluster) + { + return self::getAwsClusterNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'aws_cluster' => $awsCluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * aws_node_pool resource. + * + * @param string $project + * @param string $location + * @param string $awsCluster + * @param string $awsNodePool + * + * @return string The formatted aws_node_pool resource. + */ + public static function awsNodePoolName($project, $location, $awsCluster, $awsNodePool) + { + return self::getAwsNodePoolNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'aws_cluster' => $awsCluster, + 'aws_node_pool' => $awsNodePool, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * aws_server_config resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted aws_server_config resource. + */ + public static function awsServerConfigName($project, $location) + { + return self::getAwsServerConfigNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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($project, $location) + { + return self::getLocationNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - awsCluster: projects/{project}/locations/{location}/awsClusters/{aws_cluster} + * - awsNodePool: projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool} + * - awsServerConfig: projects/{project}/locations/{location}/awsServerConfig + * - location: projects/{project}/locations/{location} + * + * 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($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Constructor. + * + * @param array $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 'gkemulticloud.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @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. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** + * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource on a given GCP project and region. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedParent = $awsClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $awsCluster = new AwsCluster(); + * $awsClusterId = 'aws_cluster_id'; + * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + * created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AwsCluster $awsCluster Required. The specification of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + * @param string $awsClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + * formatted as + * `projects//locations//awsClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAwsCluster($parent, $awsCluster, $awsClusterId, array $optionalArgs = []) + { + $request = new CreateAwsClusterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAwsCluster($awsCluster); + $request->setAwsClusterId($awsClusterId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], + * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedParent = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * $awsNodePool = new AwsNodePool(); + * $awsNodePoolId = 'aws_node_pool_id'; + * $operationResponse = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource where this node pool will be created. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AwsNodePool $awsNodePool Required. The specification of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + * @param string $awsNodePoolId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + * formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the node + * pool. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAwsNodePool($parent, $awsNodePool, $awsNodePoolId, array $optionalArgs = []) + { + $request = new CreateAwsNodePoolRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAwsNodePool($awsNodePool); + $request->setAwsNodePoolId($awsNodePoolId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. + * + * Fails if the cluster has one or more associated + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * $operationResponse = $awsClustersClient->deleteAwsCluster($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->deleteAwsCluster($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'deleteAwsCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the resource. + * @type bool $allowMissing + * If set to true, and the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * + * Useful for idempotent deletion. + * @type string $etag + * The current etag of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAwsCluster($name, array $optionalArgs = []) + { + $request = new DeleteAwsClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + * $operationResponse = $awsClustersClient->deleteAwsNodePool($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->deleteAwsNodePool($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'deleteAwsNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + * + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the node + * pool. + * @type bool $allowMissing + * If set to true, and the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * + * Useful for idempotent deletion. + * @type string $etag + * The current ETag of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAwsNodePool($name, array $optionalArgs = []) + { + $request = new DeleteAwsNodePoolRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Generates a short-lived access token to authenticate to a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedAwsCluster = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * $response = $awsClustersClient->generateAwsAccessToken($formattedAwsCluster); + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $awsCluster Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * authenticate to. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse + * + * @throws ApiException if the remote call fails + */ + public function generateAwsAccessToken($awsCluster, array $optionalArgs = []) + { + $request = new GenerateAwsAccessTokenRequest(); + $requestParamHeaders = []; + $request->setAwsCluster($awsCluster); + $requestParamHeaders['aws_cluster'] = $awsCluster; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GenerateAwsAccessToken', GenerateAwsAccessTokenResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * $response = $awsClustersClient->getAwsCluster($formattedName); + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + * describe. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AwsCluster + * + * @throws ApiException if the remote call fails + */ + public function getAwsCluster($name, array $optionalArgs = []) + { + $request = new GetAwsClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAwsCluster', AwsCluster::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + * $response = $awsClustersClient->getAwsNodePool($formattedName); + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + * describe. + * + * `AwsNodePool` names are formatted as + * `projects//locations//awsClusters//awsNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AwsNodePool + * + * @throws ApiException if the remote call fails + */ + public function getAwsNodePool($name, array $optionalArgs = []) + { + $request = new GetAwsNodePoolRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAwsNodePool', AwsNodePool::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns information, such as supported AWS regions and Kubernetes + * versions, on a given Google Cloud location. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedName = $awsClustersClient->awsServerConfigName('[PROJECT]', '[LOCATION]'); + * $response = $awsClustersClient->getAwsServerConfig($formattedName); + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + * to describe. + * + * `AwsServerConfig` names are formatted as + * `projects//locations//awsServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AwsServerConfig + * + * @throws ApiException if the remote call fails + */ + public function getAwsServerConfig($name, array $optionalArgs = []) + { + $request = new GetAwsServerConfigRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAwsServerConfig', AwsServerConfig::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + * on a given Google Cloud project and region. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedParent = $awsClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * // Iterate over pages of elements + * $pagedResponse = $awsClustersClient->listAwsClusters($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $awsClustersClient->listAwsClusters($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location which owns this collection of + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAwsClusters($parent, array $optionalArgs = []) + { + $request = new ListAwsClustersRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAwsClusters', $optionalArgs, ListAwsClustersResponse::class, $request); + } + + /** + * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resources on a given + * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $formattedParent = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + * // Iterate over pages of elements + * $pagedResponse = $awsClustersClient->listAwsNodePools($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $awsClustersClient->listAwsNodePools($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent `AwsCluster` which owns this collection of + * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. + * + * `AwsCluster` names are formatted as + * `projects//locations//awsClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAwsNodePools($parent, array $optionalArgs = []) + { + $request = new ListAwsNodePoolsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAwsNodePools', $optionalArgs, ListAwsNodePoolsResponse::class, $request); + } + + /** + * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $awsCluster = new AwsCluster(); + * $updateMask = new FieldMask(); + * $operationResponse = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'updateAwsCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param AwsCluster $awsCluster Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + * resource to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: + * + * * `description`. + * * `annotations`. + * * `control_plane.version`. + * * `authorization.admin_users`. + * * `control_plane.aws_services_authentication.role_arn`. + * * `control_plane.aws_services_authentication.role_session_name`. + * * `control_plane.config_encryption.kms_key_arn`. + * * `control_plane.instance_type`. + * * `control_plane.security_group_ids`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.secret_arn`. + * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. + * * `control_plane.root_volume.iops`. + * * `control_plane.root_volume.kms_key_arn`. + * * `control_plane.ssh_config`. + * * `control_plane.ssh_config.ec2_key_pair`. + * * `control_plane.instance_placement.tenancy`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually update the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAwsCluster($awsCluster, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAwsClusterRequest(); + $requestParamHeaders = []; + $request->setAwsCluster($awsCluster); + $request->setUpdateMask($updateMask); + $requestParamHeaders['aws_cluster.name'] = $awsCluster->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + * + * Sample code: + * ``` + * $awsClustersClient = new AwsClustersClient(); + * try { + * $awsNodePool = new AwsNodePool(); + * $updateMask = new FieldMask(); + * $operationResponse = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'updateAwsNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $awsClustersClient->close(); + * } + * ``` + * + * @param AwsNodePool $awsNodePool Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + * resource to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: + * + * * `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.config_encryption.kms_key_arn`. + * * `config.security_group_ids`. + * * `config.root_volume.iops`. + * * `config.root_volume.kms_key_arn`. + * * `config.root_volume.volume_type`. + * * `config.root_volume.size_gib`. + * * `config.proxy_config`. + * * `config.proxy_config.secret_arn`. + * * `config.proxy_config.secret_version`. + * * `config.ssh_config`. + * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but don't actually update the node pool. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAwsNodePool($awsNodePool, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAwsNodePoolRequest(); + $requestParamHeaders = []; + $request->setAwsNodePool($awsNodePool); + $request->setUpdateMask($updateMask); + $requestParamHeaders['aws_node_pool.name'] = $awsNodePool->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php new file mode 100644 index 000000000000..6bfc862231fd --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php @@ -0,0 +1,1697 @@ +locationName('[PROJECT]', '[LOCATION]'); + * $azureClient = new AzureClient(); + * $azureClientId = 'azure_client_id'; + * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureClient'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + */ +class AzureClustersGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AzureClusters'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static $azureClientNameTemplate; + + private static $azureClusterNameTemplate; + + private static $azureNodePoolNameTemplate; + + private static $azureServerConfigNameTemplate; + + private static $locationNameTemplate; + + private static $pathTemplateMap; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/azure_clusters_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/azure_clusters_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/azure_clusters_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/azure_clusters_rest_client_config.php', + ], + ], + ]; + } + + private static function getAzureClientNameTemplate() + { + if (self::$azureClientNameTemplate == null) { + self::$azureClientNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClients/{azure_client}'); + } + + return self::$azureClientNameTemplate; + } + + private static function getAzureClusterNameTemplate() + { + if (self::$azureClusterNameTemplate == null) { + self::$azureClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClusters/{azure_cluster}'); + } + + return self::$azureClusterNameTemplate; + } + + private static function getAzureNodePoolNameTemplate() + { + if (self::$azureNodePoolNameTemplate == null) { + self::$azureNodePoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool}'); + } + + return self::$azureNodePoolNameTemplate; + } + + private static function getAzureServerConfigNameTemplate() + { + if (self::$azureServerConfigNameTemplate == null) { + self::$azureServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureServerConfig'); + } + + return self::$azureServerConfigNameTemplate; + } + + private static function getLocationNameTemplate() + { + if (self::$locationNameTemplate == null) { + self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); + } + + return self::$locationNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'azureClient' => self::getAzureClientNameTemplate(), + 'azureCluster' => self::getAzureClusterNameTemplate(), + 'azureNodePool' => self::getAzureNodePoolNameTemplate(), + 'azureServerConfig' => self::getAzureServerConfigNameTemplate(), + 'location' => self::getLocationNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a azure_client + * resource. + * + * @param string $project + * @param string $location + * @param string $azureClient + * + * @return string The formatted azure_client resource. + */ + public static function azureClientName($project, $location, $azureClient) + { + return self::getAzureClientNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'azure_client' => $azureClient, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * azure_cluster resource. + * + * @param string $project + * @param string $location + * @param string $azureCluster + * + * @return string The formatted azure_cluster resource. + */ + public static function azureClusterName($project, $location, $azureCluster) + { + return self::getAzureClusterNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'azure_cluster' => $azureCluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * azure_node_pool resource. + * + * @param string $project + * @param string $location + * @param string $azureCluster + * @param string $azureNodePool + * + * @return string The formatted azure_node_pool resource. + */ + public static function azureNodePoolName($project, $location, $azureCluster, $azureNodePool) + { + return self::getAzureNodePoolNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'azure_cluster' => $azureCluster, + 'azure_node_pool' => $azureNodePool, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * azure_server_config resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted azure_server_config resource. + */ + public static function azureServerConfigName($project, $location) + { + return self::getAzureServerConfigNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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($project, $location) + { + return self::getLocationNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - azureClient: projects/{project}/locations/{location}/azureClients/{azure_client} + * - azureCluster: projects/{project}/locations/{location}/azureClusters/{azure_cluster} + * - azureNodePool: projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool} + * - azureServerConfig: projects/{project}/locations/{location}/azureServerConfig + * - location: projects/{project}/locations/{location} + * + * 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($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Constructor. + * + * @param array $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 'gkemulticloud.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @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. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** + * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource on a given Google Cloud project and region. + * + * `AzureClient` resources hold client authentication + * information needed by the Anthos Multicloud API to manage Azure resources + * on your Azure subscription on your behalf. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $azureClient = new AzureClient(); + * $azureClientId = 'azure_client_id'; + * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureClient'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + * created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AzureClient $azureClient Required. The specification of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + * @param string $azureClientId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + * formatted as + * `projects//locations//azureClients/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the client. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAzureClient($parent, $azureClient, $azureClientId, array $optionalArgs = []) + { + $request = new CreateAzureClientRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAzureClient($azureClient); + $request->setAzureClientId($azureClientId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAzureClient', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource on a given GCP project and region. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * $azureCluster = new AzureCluster(); + * $azureClusterId = 'azure_cluster_id'; + * $operationResponse = $azureClustersClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location where this + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + * created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AzureCluster $azureCluster Required. The specification of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + * @param string $azureClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + * formatted as + * `projects//locations//azureClusters/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAzureCluster($parent, $azureCluster, $azureClusterId, array $optionalArgs = []) + { + $request = new CreateAzureClusterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAzureCluster($azureCluster); + $request->setAzureClusterId($azureClusterId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], + * attached to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * $azureNodePool = new AzureNodePool(); + * $azureNodePoolId = 'azure_node_pool_id'; + * $operationResponse = $azureClustersClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource where this node pool will be created. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param AzureNodePool $azureNodePool Required. The specification of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + * @param string $azureNodePoolId Required. A client provided ID the resource. Must be unique within the + * parent resource. + * + * The provided ID will be part of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + * formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * + * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually create the node + * pool. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function createAzureNodePool($parent, $azureNodePool, $azureNodePoolId, array $optionalArgs = []) + { + $request = new CreateAzureNodePoolRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAzureNodePool($azureNodePool); + $request->setAzureNodePoolId($azureNodePoolId); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('CreateAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resource. + * + * If the client is used by one or more clusters, deletion will + * fail and a `FAILED_PRECONDITION` error will be returned. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + * $operationResponse = $azureClustersClient->deleteAzureClient($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->deleteAzureClient($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureClient'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + * + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $allowMissing + * If set to true, and the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * + * Useful for idempotent deletion. + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the resource. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAzureClient($name, array $optionalArgs = []) + { + $request = new DeleteAzureClientRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAzureClient', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * + * Fails if the cluster has one or more associated + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * $operationResponse = $azureClustersClient->deleteAzureCluster($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->deleteAzureCluster($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + * + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $allowMissing + * If set to true, and the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + * found, the request will succeed but no action will be taken on the server + * and a completed [Operation][google.longrunning.Operation] will be returned. + * + * Useful for idempotent deletion. + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the resource. + * @type string $etag + * The current etag of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided etag does not match the current etag of the cluster, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAzureCluster($name, array $optionalArgs = []) + { + $request = new DeleteAzureClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Deletes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * + * If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be + * described to track the status of the operation. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + * $operationResponse = $azureClustersClient->deleteAzureNodePool($formattedName); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->deleteAzureNodePool($formattedName); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * // operation succeeded and returns no value + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + * + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually delete the node + * pool. + * @type bool $allowMissing + * If set to true, and the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + * not found, the request will succeed but no action will be taken on the + * server and a completed [Operation][google.longrunning.Operation] will be + * returned. + * + * Useful for idempotent deletion. + * @type string $etag + * The current ETag of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * + * Allows clients to perform deletions through optimistic concurrency control. + * + * If the provided ETag does not match the current etag of the node pool, + * the request will fail and an ABORTED error will be returned. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function deleteAzureNodePool($name, array $optionalArgs = []) + { + $request = new DeleteAzureNodePoolRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + if (isset($optionalArgs['allowMissing'])) { + $request->setAllowMissing($optionalArgs['allowMissing']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('DeleteAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Generates a short-lived access token to authenticate to a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedAzureCluster = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * $response = $azureClustersClient->generateAzureAccessToken($formattedAzureCluster); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $azureCluster Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * authenticate to. + * + * `AzureCluster` names are formatted as + * `projects//locations//AzureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse + * + * @throws ApiException if the remote call fails + */ + public function generateAzureAccessToken($azureCluster, array $optionalArgs = []) + { + $request = new GenerateAzureAccessTokenRequest(); + $requestParamHeaders = []; + $request->setAzureCluster($azureCluster); + $requestParamHeaders['azure_cluster'] = $azureCluster; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GenerateAzureAccessToken', GenerateAzureAccessTokenResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + * $response = $azureClustersClient->getAzureClient($formattedName); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + * describe. + * + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + * formatted as + * `projects//locations//azureClients/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AzureClient + * + * @throws ApiException if the remote call fails + */ + public function getAzureClient($name, array $optionalArgs = []) + { + $request = new GetAzureClientRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAzureClient', AzureClient::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * $response = $azureClustersClient->getAzureCluster($formattedName); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + * describe. + * + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AzureCluster + * + * @throws ApiException if the remote call fails + */ + public function getAzureCluster($name, array $optionalArgs = []) + { + $request = new GetAzureClusterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAzureCluster', AzureCluster::class, $optionalArgs, $request)->wait(); + } + + /** + * Describes a specific + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + * $response = $azureClustersClient->getAzureNodePool($formattedName); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + * describe. + * + * `AzureNodePool` names are formatted as + * `projects//locations//azureClusters//azureNodePools/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AzureNodePool + * + * @throws ApiException if the remote call fails + */ + public function getAzureNodePool($name, array $optionalArgs = []) + { + $request = new GetAzureNodePoolRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAzureNodePool', AzureNodePool::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns information, such as supported Azure regions and Kubernetes + * versions, on a given Google Cloud location. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedName = $azureClustersClient->azureServerConfigName('[PROJECT]', '[LOCATION]'); + * $response = $azureClustersClient->getAzureServerConfig($formattedName); + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the + * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + * resource to describe. + * + * `AzureServerConfig` names are formatted as + * `projects//locations//azureServerConfig`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * 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 \Google\Cloud\GkeMultiCloud\V1\AzureServerConfig + * + * @throws ApiException if the remote call fails + */ + public function getAzureServerConfig($name, array $optionalArgs = []) + { + $request = new GetAzureServerConfigRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAzureServerConfig', AzureServerConfig::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + * resources on a given Google Cloud project and region. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * // Iterate over pages of elements + * $pagedResponse = $azureClustersClient->listAzureClients($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $azureClustersClient->listAzureClients($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location which owns this collection of + * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAzureClients($parent, array $optionalArgs = []) + { + $request = new ListAzureClientsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAzureClients', $optionalArgs, ListAzureClientsResponse::class, $request); + } + + /** + * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resources on a given Google Cloud project and region. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); + * // Iterate over pages of elements + * $pagedResponse = $azureClustersClient->listAzureClusters($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $azureClustersClient->listAzureClusters($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent location which owns this collection of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. + * + * Location names are formatted as `projects//locations/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on GCP resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAzureClusters($parent, array $optionalArgs = []) + { + $request = new ListAzureClustersRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAzureClusters', $optionalArgs, ListAzureClustersResponse::class, $request); + } + + /** + * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resources on a given + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $formattedParent = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + * // Iterate over pages of elements + * $pagedResponse = $azureClustersClient->listAzureNodePools($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $azureClustersClient->listAzureNodePools($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent `AzureCluster` which owns this collection of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. + * + * `AzureCluster` names are formatted as + * `projects//locations//azureClusters/`. + * + * See [Resource Names](https://cloud.google.com/apis/design/resource_names) + * for more details on Google Cloud resource names. + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @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 \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listAzureNodePools($parent, array $optionalArgs = []) + { + $request = new ListAzureNodePoolsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAzureNodePools', $optionalArgs, ListAzureNodePoolsResponse::class, $request); + } + + /** + * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $azureCluster = new AzureCluster(); + * $updateMask = new FieldMask(); + * $operationResponse = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'updateAzureCluster'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param AzureCluster $azureCluster Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + * resource to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: + * + * * `description`. + * * `azureClient`. + * * `control_plane.version`. + * * `control_plane.vm_size`. + * * `annotations`. + * * `authorization.admin_users`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but do not actually update the cluster. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAzureCluster($azureCluster, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAzureClusterRequest(); + $requestParamHeaders = []; + $request->setAzureCluster($azureCluster); + $request->setUpdateMask($updateMask); + $requestParamHeaders['azure_cluster.name'] = $azureCluster->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } + + /** + * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + * + * Sample code: + * ``` + * $azureClustersClient = new AzureClustersClient(); + * try { + * $azureNodePool = new AzureNodePool(); + * $updateMask = new FieldMask(); + * $operationResponse = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); + * $operationResponse->pollUntilComplete(); + * if ($operationResponse->operationSucceeded()) { + * $result = $operationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $operationResponse->getError(); + * // handleError($error) + * } + * // Alternatively: + * // start the operation, keep the operation name, and resume later + * $operationResponse = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); + * $operationName = $operationResponse->getName(); + * // ... do other work + * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'updateAzureNodePool'); + * while (!$newOperationResponse->isDone()) { + * // ... do other work + * $newOperationResponse->reload(); + * } + * if ($newOperationResponse->operationSucceeded()) { + * $result = $newOperationResponse->getResult(); + * // doSomethingWith($result) + * } else { + * $error = $newOperationResponse->getError(); + * // handleError($error) + * } + * } finally { + * $azureClustersClient->close(); + * } + * ``` + * + * @param AzureNodePool $azureNodePool Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + * resource to update. + * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these + * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: + * + * *. `annotations`. + * * `version`. + * * `autoscaling.min_node_count`. + * * `autoscaling.max_node_count`. + * * `config.ssh_config.authorized_key`. + * @param array $optionalArgs { + * Optional. + * + * @type bool $validateOnly + * If set, only validate the request, but don't actually update the node pool. + * @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 \Google\ApiCore\OperationResponse + * + * @throws ApiException if the remote call fails + */ + public function updateAzureNodePool($azureNodePool, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAzureNodePoolRequest(); + $requestParamHeaders = []; + $request->setAzureNodePool($azureNodePool); + $request->setUpdateMask($updateMask); + $requestParamHeaders['azure_node_pool.name'] = $azureNodePool->getName(); + if (isset($optionalArgs['validateOnly'])) { + $request->setValidateOnly($optionalArgs['validateOnly']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startOperationsCall('UpdateAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..a69240b06fba --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json @@ -0,0 +1,216 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.gkemulticloud.v1", + "libraryPackage": "Google\\Cloud\\GkeMultiCloud\\V1", + "services": { + "AttachedClusters": { + "clients": { + "grpc": { + "libraryClient": "AttachedClustersGapicClient", + "rpcs": { + "CreateAttachedCluster": { + "methods": [ + "createAttachedCluster" + ] + }, + "DeleteAttachedCluster": { + "methods": [ + "deleteAttachedCluster" + ] + }, + "GenerateAttachedClusterInstallManifest": { + "methods": [ + "generateAttachedClusterInstallManifest" + ] + }, + "GetAttachedCluster": { + "methods": [ + "getAttachedCluster" + ] + }, + "GetAttachedServerConfig": { + "methods": [ + "getAttachedServerConfig" + ] + }, + "ImportAttachedCluster": { + "methods": [ + "importAttachedCluster" + ] + }, + "ListAttachedClusters": { + "methods": [ + "listAttachedClusters" + ] + }, + "UpdateAttachedCluster": { + "methods": [ + "updateAttachedCluster" + ] + } + } + } + } + }, + "AwsClusters": { + "clients": { + "grpc": { + "libraryClient": "AwsClustersGapicClient", + "rpcs": { + "CreateAwsCluster": { + "methods": [ + "createAwsCluster" + ] + }, + "CreateAwsNodePool": { + "methods": [ + "createAwsNodePool" + ] + }, + "DeleteAwsCluster": { + "methods": [ + "deleteAwsCluster" + ] + }, + "DeleteAwsNodePool": { + "methods": [ + "deleteAwsNodePool" + ] + }, + "GenerateAwsAccessToken": { + "methods": [ + "generateAwsAccessToken" + ] + }, + "GetAwsCluster": { + "methods": [ + "getAwsCluster" + ] + }, + "GetAwsNodePool": { + "methods": [ + "getAwsNodePool" + ] + }, + "GetAwsServerConfig": { + "methods": [ + "getAwsServerConfig" + ] + }, + "ListAwsClusters": { + "methods": [ + "listAwsClusters" + ] + }, + "ListAwsNodePools": { + "methods": [ + "listAwsNodePools" + ] + }, + "UpdateAwsCluster": { + "methods": [ + "updateAwsCluster" + ] + }, + "UpdateAwsNodePool": { + "methods": [ + "updateAwsNodePool" + ] + } + } + } + } + }, + "AzureClusters": { + "clients": { + "grpc": { + "libraryClient": "AzureClustersGapicClient", + "rpcs": { + "CreateAzureClient": { + "methods": [ + "createAzureClient" + ] + }, + "CreateAzureCluster": { + "methods": [ + "createAzureCluster" + ] + }, + "CreateAzureNodePool": { + "methods": [ + "createAzureNodePool" + ] + }, + "DeleteAzureClient": { + "methods": [ + "deleteAzureClient" + ] + }, + "DeleteAzureCluster": { + "methods": [ + "deleteAzureCluster" + ] + }, + "DeleteAzureNodePool": { + "methods": [ + "deleteAzureNodePool" + ] + }, + "GenerateAzureAccessToken": { + "methods": [ + "generateAzureAccessToken" + ] + }, + "GetAzureClient": { + "methods": [ + "getAzureClient" + ] + }, + "GetAzureCluster": { + "methods": [ + "getAzureCluster" + ] + }, + "GetAzureNodePool": { + "methods": [ + "getAzureNodePool" + ] + }, + "GetAzureServerConfig": { + "methods": [ + "getAzureServerConfig" + ] + }, + "ListAzureClients": { + "methods": [ + "listAzureClients" + ] + }, + "ListAzureClusters": { + "methods": [ + "listAzureClusters" + ] + }, + "ListAzureNodePools": { + "methods": [ + "listAzureNodePools" + ] + }, + "UpdateAzureCluster": { + "methods": [ + "updateAzureCluster" + ] + }, + "UpdateAzureNodePool": { + "methods": [ + "updateAzureNodePool" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json new file mode 100644 index 000000000000..79c17065c97a --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json @@ -0,0 +1,84 @@ +{ + "interfaces": { + "google.cloud.gkemulticloud.v1.AttachedClusters": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "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 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "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": { + "CreateAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GenerateAttachedClusterInstallManifest": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAttachedServerConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ImportAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListAttachedClusters": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAttachedCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php new file mode 100644 index 000000000000..7fd39638c34b --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php @@ -0,0 +1,58 @@ + [ + 'google.cloud.gkemulticloud.v1.AttachedClusters' => [ + 'CreateAttachedCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAttachedCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'ImportAttachedCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAttachedCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'ListAttachedClusters' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAttachedClusters', + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php new file mode 100644 index 000000000000..5d9c3003ee17 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php @@ -0,0 +1,153 @@ + [ + 'google.cloud.gkemulticloud.v1.AttachedClusters' => [ + 'CreateAttachedCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters', + 'body' => 'attached_cluster', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'attached_cluster_id', + ], + ], + 'DeleteAttachedCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateAttachedClusterInstallManifest' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifest', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetAttachedCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAttachedServerConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedServerConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ImportAttachedCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters:import', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAttachedClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateAttachedCluster' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{attached_cluster.name=projects/*/locations/*/attachedClusters/*}', + 'body' => 'attached_cluster', + 'placeholders' => [ + 'attached_cluster.name' => [ + 'getters' => [ + 'getAttachedCluster', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json new file mode 100644 index 000000000000..c7c0634a0a98 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json @@ -0,0 +1,104 @@ +{ + "interfaces": { + "google.cloud.gkemulticloud.v1.AwsClusters": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "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 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "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": { + "CreateAwsCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateAwsNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAwsCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAwsNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GenerateAwsAccessToken": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAwsCluster": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAwsNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAwsServerConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAwsClusters": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAwsNodePools": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAwsCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateAwsNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php new file mode 100644 index 000000000000..9a86fcf0c4b2 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php @@ -0,0 +1,88 @@ + [ + 'google.cloud.gkemulticloud.v1.AwsClusters' => [ + 'CreateAwsCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'CreateAwsNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAwsCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAwsNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAwsCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAwsNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'ListAwsClusters' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAwsClusters', + ], + ], + 'ListAwsNodePools' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAwsNodePools', + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php new file mode 100644 index 000000000000..e61743f714aa --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php @@ -0,0 +1,205 @@ + [ + 'google.cloud.gkemulticloud.v1.AwsClusters' => [ + 'CreateAwsCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/awsClusters', + 'body' => 'aws_cluster', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'aws_cluster_id', + ], + ], + 'CreateAwsNodePool' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools', + 'body' => 'aws_node_pool', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'aws_node_pool_id', + ], + ], + 'DeleteAwsCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteAwsNodePool' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateAwsAccessToken' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessToken', + 'placeholders' => [ + 'aws_cluster' => [ + 'getters' => [ + 'getAwsCluster', + ], + ], + ], + ], + 'GetAwsCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAwsNodePool' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAwsServerConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsServerConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAwsClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/awsClusters', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAwsNodePools' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateAwsCluster' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}', + 'body' => 'aws_cluster', + 'placeholders' => [ + 'aws_cluster.name' => [ + 'getters' => [ + 'getAwsCluster', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateAwsNodePool' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', + 'body' => 'aws_node_pool', + 'placeholders' => [ + 'aws_node_pool.name' => [ + 'getters' => [ + 'getAwsNodePool', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json new file mode 100644 index 000000000000..fae6b0761556 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json @@ -0,0 +1,124 @@ +{ + "interfaces": { + "google.cloud.gkemulticloud.v1.AzureClusters": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "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 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "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": { + "CreateAzureClient": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateAzureCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateAzureNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAzureClient": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAzureCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAzureNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GenerateAzureAccessToken": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAzureClient": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAzureCluster": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAzureNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAzureServerConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAzureClients": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAzureClusters": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAzureNodePools": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAzureCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateAzureNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php new file mode 100644 index 000000000000..b2d05d9d141f --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php @@ -0,0 +1,118 @@ + [ + 'google.cloud.gkemulticloud.v1.AzureClusters' => [ + 'CreateAzureClient' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureClient', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'CreateAzureCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'CreateAzureNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAzureClient' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAzureCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'DeleteAzureNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAzureCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureCluster', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'UpdateAzureNodePool' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', + 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + ], + 'ListAzureClients' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAzureClients', + ], + ], + 'ListAzureClusters' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAzureClusters', + ], + ], + 'ListAzureNodePools' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAzureNodePools', + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php new file mode 100644 index 000000000000..76e3adfb1baf --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php @@ -0,0 +1,253 @@ + [ + 'google.cloud.gkemulticloud.v1.AzureClusters' => [ + 'CreateAzureClient' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClients', + 'body' => 'azure_client', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'azure_client_id', + ], + ], + 'CreateAzureCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClusters', + 'body' => 'azure_cluster', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'azure_cluster_id', + ], + ], + 'CreateAzureNodePool' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools', + 'body' => 'azure_node_pool', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'azure_node_pool_id', + ], + ], + 'DeleteAzureClient' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClients/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteAzureCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteAzureNodePool' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateAzureAccessToken' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessToken', + 'placeholders' => [ + 'azure_cluster' => [ + 'getters' => [ + 'getAzureCluster', + ], + ], + ], + ], + 'GetAzureClient' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClients/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAzureCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAzureNodePool' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAzureServerConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureServerConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAzureClients' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClients', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAzureClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClusters', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAzureNodePools' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateAzureCluster' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}', + 'body' => 'azure_cluster', + 'placeholders' => [ + 'azure_cluster.name' => [ + 'getters' => [ + 'getAzureCluster', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateAzureNodePool' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', + 'body' => 'azure_node_pool', + 'placeholders' => [ + 'azure_node_pool.name' => [ + 'getters' => [ + 'getAzureNodePool', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php new file mode 100644 index 000000000000..30127c7b4ac0 --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php @@ -0,0 +1,930 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AttachedClustersClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AttachedClustersClient($options); + } + + /** @test */ + public function createAttachedClusterTest() + { + $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/createAttachedClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $clusterRegion = 'clusterRegion993903833'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $kubernetesVersion = 'kubernetesVersion50850015'; + $expectedResponse = new AttachedCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setPlatformVersion($platformVersion); + $expectedResponse->setDistribution($distribution); + $expectedResponse->setClusterRegion($clusterRegion); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setKubernetesVersion($kubernetesVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAttachedClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $attachedCluster = new AttachedCluster(); + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedCluster->setOidcConfig($attachedClusterOidcConfig); + $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; + $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); + $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; + $attachedCluster->setDistribution($attachedClusterDistribution); + $attachedClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $attachedClusterFleet->setProject($fleetProject); + $attachedCluster->setFleet($attachedClusterFleet); + $attachedClusterId = 'attachedClusterId-249426181'; + $response = $gapicClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + $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.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAttachedCluster(); + $this->assertProtobufEquals($attachedCluster, $actualValue); + $actualValue = $actualApiRequestObject->getAttachedClusterId(); + $this->assertProtobufEquals($attachedClusterId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAttachedClusterTest'); + $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 createAttachedClusterExceptionTest() + { + $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/createAttachedClusterTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $attachedCluster = new AttachedCluster(); + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedCluster->setOidcConfig($attachedClusterOidcConfig); + $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; + $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); + $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; + $attachedCluster->setDistribution($attachedClusterDistribution); + $attachedClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $attachedClusterFleet->setProject($fleetProject); + $attachedCluster->setFleet($attachedClusterFleet); + $attachedClusterId = 'attachedClusterId-249426181'; + $response = $gapicClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAttachedClusterTest'); + 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 deleteAttachedClusterTest() + { + $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/deleteAttachedClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAttachedClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + $response = $gapicClient->deleteAttachedCluster($formattedName); + $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.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAttachedClusterTest'); + $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 deleteAttachedClusterExceptionTest() + { + $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/deleteAttachedClusterTest'); + $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->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + $response = $gapicClient->deleteAttachedCluster($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAttachedClusterTest'); + 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 generateAttachedClusterInstallManifestTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $manifest = 'manifest130625071'; + $expectedResponse = new GenerateAttachedClusterInstallManifestResponse(); + $expectedResponse->setManifest($manifest); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $attachedClusterId = 'attachedClusterId-249426181'; + $platformVersion = 'platformVersion1813514508'; + $response = $gapicClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAttachedClusterId(); + $this->assertProtobufEquals($attachedClusterId, $actualValue); + $actualValue = $actualRequestObject->getPlatformVersion(); + $this->assertProtobufEquals($platformVersion, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateAttachedClusterInstallManifestExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $attachedClusterId = 'attachedClusterId-249426181'; + $platformVersion = 'platformVersion1813514508'; + try { + $gapicClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); + // 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 getAttachedClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $clusterRegion = 'clusterRegion993903833'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $kubernetesVersion = 'kubernetesVersion50850015'; + $expectedResponse = new AttachedCluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setPlatformVersion($platformVersion); + $expectedResponse->setDistribution($distribution); + $expectedResponse->setClusterRegion($clusterRegion); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setKubernetesVersion($kubernetesVersion); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + $response = $gapicClient->getAttachedCluster($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAttachedClusterExceptionTest() + { + $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->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); + try { + $gapicClient->getAttachedCluster($formattedName); + // 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 getAttachedServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new AttachedServerConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->attachedServerConfigName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->getAttachedServerConfig($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAttachedServerConfigExceptionTest() + { + $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->attachedServerConfigName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->getAttachedServerConfig($formattedName); + // 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 importAttachedClusterTest() + { + $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/importAttachedClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $platformVersion2 = 'platformVersion2-969276993'; + $distribution2 = 'distribution21357826359'; + $clusterRegion = 'clusterRegion993903833'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $kubernetesVersion = 'kubernetesVersion50850015'; + $expectedResponse = new AttachedCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setPlatformVersion($platformVersion2); + $expectedResponse->setDistribution($distribution2); + $expectedResponse->setClusterRegion($clusterRegion); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setKubernetesVersion($kubernetesVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/importAttachedClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $fleetMembership = 'fleetMembership1817977703'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $response = $gapicClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); + $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.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getFleetMembership(); + $this->assertProtobufEquals($fleetMembership, $actualValue); + $actualValue = $actualApiRequestObject->getPlatformVersion(); + $this->assertProtobufEquals($platformVersion, $actualValue); + $actualValue = $actualApiRequestObject->getDistribution(); + $this->assertProtobufEquals($distribution, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/importAttachedClusterTest'); + $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 importAttachedClusterExceptionTest() + { + $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/importAttachedClusterTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $fleetMembership = 'fleetMembership1817977703'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $response = $gapicClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/importAttachedClusterTest'); + 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 listAttachedClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $attachedClustersElement = new AttachedCluster(); + $attachedClusters = [ + $attachedClustersElement, + ]; + $expectedResponse = new ListAttachedClustersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAttachedClusters($attachedClusters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listAttachedClusters($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAttachedClusters()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAttachedClustersExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->listAttachedClusters($formattedParent); + // 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 updateAttachedClusterTest() + { + $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/updateAttachedClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $platformVersion = 'platformVersion1813514508'; + $distribution = 'distribution-1580708220'; + $clusterRegion = 'clusterRegion993903833'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $kubernetesVersion = 'kubernetesVersion50850015'; + $expectedResponse = new AttachedCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setPlatformVersion($platformVersion); + $expectedResponse->setDistribution($distribution); + $expectedResponse->setClusterRegion($clusterRegion); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setKubernetesVersion($kubernetesVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAttachedClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $attachedCluster = new AttachedCluster(); + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedCluster->setOidcConfig($attachedClusterOidcConfig); + $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; + $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); + $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; + $attachedCluster->setDistribution($attachedClusterDistribution); + $attachedClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $attachedClusterFleet->setProject($fleetProject); + $attachedCluster->setFleet($attachedClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAttachedCluster($attachedCluster, $updateMask); + $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.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAttachedCluster(); + $this->assertProtobufEquals($attachedCluster, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAttachedClusterTest'); + $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 updateAttachedClusterExceptionTest() + { + $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/updateAttachedClusterTest'); + $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 + $attachedCluster = new AttachedCluster(); + $attachedClusterOidcConfig = new AttachedOidcConfig(); + $attachedCluster->setOidcConfig($attachedClusterOidcConfig); + $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; + $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); + $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; + $attachedCluster->setDistribution($attachedClusterDistribution); + $attachedClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $attachedClusterFleet->setProject($fleetProject); + $attachedCluster->setFleet($attachedClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAttachedCluster($attachedCluster, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAttachedClusterTest'); + 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()); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php new file mode 100644 index 000000000000..92b2818d919e --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php @@ -0,0 +1,1504 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AwsClustersClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AwsClustersClient($options); + } + + /** @test */ + public function createAwsClusterTest() + { + $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/createAwsClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $awsRegion = 'awsRegion-1887255946'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AwsCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setAwsRegion($awsRegion); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAwsClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $awsCluster = new AwsCluster(); + $awsClusterNetworking = new AwsClusterNetworking(); + $networkingVpcId = 'networkingVpcId-1154507440'; + $awsClusterNetworking->setVpcId($networkingVpcId); + $networkingPodAddressCidrBlocks = []; + $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $awsCluster->setNetworking($awsClusterNetworking); + $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; + $awsCluster->setAwsRegion($awsClusterAwsRegion); + $awsClusterControlPlane = new AwsControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $awsClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSubnetIds = []; + $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); + $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; + $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); + $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); + $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; + $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); + $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); + $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); + $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; + $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); + $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); + $controlPlaneConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); + $awsCluster->setControlPlane($awsClusterControlPlane); + $awsClusterAuthorization = new AwsAuthorization(); + $authorizationAdminUsers = []; + $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); + $awsClusterId = 'awsClusterId938438658'; + $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + $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.gkemulticloud.v1.AwsClusters/CreateAwsCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAwsCluster(); + $this->assertProtobufEquals($awsCluster, $actualValue); + $actualValue = $actualApiRequestObject->getAwsClusterId(); + $this->assertProtobufEquals($awsClusterId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAwsClusterTest'); + $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 createAwsClusterExceptionTest() + { + $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/createAwsClusterTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $awsCluster = new AwsCluster(); + $awsClusterNetworking = new AwsClusterNetworking(); + $networkingVpcId = 'networkingVpcId-1154507440'; + $awsClusterNetworking->setVpcId($networkingVpcId); + $networkingPodAddressCidrBlocks = []; + $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $awsCluster->setNetworking($awsClusterNetworking); + $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; + $awsCluster->setAwsRegion($awsClusterAwsRegion); + $awsClusterControlPlane = new AwsControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $awsClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSubnetIds = []; + $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); + $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; + $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); + $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); + $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; + $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); + $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); + $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); + $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; + $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); + $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); + $controlPlaneConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); + $awsCluster->setControlPlane($awsClusterControlPlane); + $awsClusterAuthorization = new AwsAuthorization(); + $authorizationAdminUsers = []; + $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); + $awsClusterId = 'awsClusterId938438658'; + $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAwsClusterTest'); + 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 createAwsNodePoolTest() + { + $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/createAwsNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $expectedResponse = new AwsNodePool(); + $expectedResponse->setName($name); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAwsNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $awsNodePool = new AwsNodePool(); + $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; + $awsNodePool->setVersion($awsNodePoolVersion); + $awsNodePoolConfig = new AwsNodeConfig(); + $configIamInstanceProfile = 'configIamInstanceProfile805825313'; + $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); + $configConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); + $awsNodePool->setConfig($awsNodePoolConfig); + $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); + $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; + $awsNodePool->setSubnetId($awsNodePoolSubnetId); + $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $awsNodePoolId = 'awsNodePoolId1958033635'; + $response = $gapicClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + $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.gkemulticloud.v1.AwsClusters/CreateAwsNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAwsNodePool(); + $this->assertProtobufEquals($awsNodePool, $actualValue); + $actualValue = $actualApiRequestObject->getAwsNodePoolId(); + $this->assertProtobufEquals($awsNodePoolId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAwsNodePoolTest'); + $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 createAwsNodePoolExceptionTest() + { + $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/createAwsNodePoolTest'); + $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $awsNodePool = new AwsNodePool(); + $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; + $awsNodePool->setVersion($awsNodePoolVersion); + $awsNodePoolConfig = new AwsNodeConfig(); + $configIamInstanceProfile = 'configIamInstanceProfile805825313'; + $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); + $configConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); + $awsNodePool->setConfig($awsNodePoolConfig); + $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); + $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; + $awsNodePool->setSubnetId($awsNodePoolSubnetId); + $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $awsNodePoolId = 'awsNodePoolId1958033635'; + $response = $gapicClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAwsNodePoolTest'); + 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 deleteAwsClusterTest() + { + $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/deleteAwsClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAwsClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->deleteAwsCluster($formattedName); + $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.gkemulticloud.v1.AwsClusters/DeleteAwsCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAwsClusterTest'); + $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 deleteAwsClusterExceptionTest() + { + $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/deleteAwsClusterTest'); + $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->deleteAwsCluster($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAwsClusterTest'); + 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 deleteAwsNodePoolTest() + { + $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/deleteAwsNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAwsNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + $response = $gapicClient->deleteAwsNodePool($formattedName); + $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.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAwsNodePoolTest'); + $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 deleteAwsNodePoolExceptionTest() + { + $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/deleteAwsNodePoolTest'); + $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->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + $response = $gapicClient->deleteAwsNodePool($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAwsNodePoolTest'); + 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 generateAwsAccessTokenTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $accessToken = 'accessToken-1938933922'; + $expectedResponse = new GenerateAwsAccessTokenResponse(); + $expectedResponse->setAccessToken($accessToken); + $transport->addResponse($expectedResponse); + // Mock request + $formattedAwsCluster = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->generateAwsAccessToken($formattedAwsCluster); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken', $actualFuncCall); + $actualValue = $actualRequestObject->getAwsCluster(); + $this->assertProtobufEquals($formattedAwsCluster, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateAwsAccessTokenExceptionTest() + { + $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 + $formattedAwsCluster = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + try { + $gapicClient->generateAwsAccessToken($formattedAwsCluster); + // 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 getAwsClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $awsRegion = 'awsRegion-1887255946'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AwsCluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setAwsRegion($awsRegion); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->getAwsCluster($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAwsClusterExceptionTest() + { + $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + try { + $gapicClient->getAwsCluster($formattedName); + // 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 getAwsNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $expectedResponse = new AwsNodePool(); + $expectedResponse->setName($name2); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + $response = $gapicClient->getAwsNodePool($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAwsNodePoolExceptionTest() + { + $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->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); + try { + $gapicClient->getAwsNodePool($formattedName); + // 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 getAwsServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new AwsServerConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->awsServerConfigName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->getAwsServerConfig($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAwsServerConfigExceptionTest() + { + $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->awsServerConfigName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->getAwsServerConfig($formattedName); + // 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 listAwsClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $awsClustersElement = new AwsCluster(); + $awsClusters = [ + $awsClustersElement, + ]; + $expectedResponse = new ListAwsClustersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAwsClusters($awsClusters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listAwsClusters($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAwsClusters()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAwsClustersExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->listAwsClusters($formattedParent); + // 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 listAwsNodePoolsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $awsNodePoolsElement = new AwsNodePool(); + $awsNodePools = [ + $awsNodePoolsElement, + ]; + $expectedResponse = new ListAwsNodePoolsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAwsNodePools($awsNodePools); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + $response = $gapicClient->listAwsNodePools($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAwsNodePools()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAwsNodePoolsExceptionTest() + { + $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); + try { + $gapicClient->listAwsNodePools($formattedParent); + // 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 updateAwsClusterTest() + { + $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/updateAwsClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $awsRegion = 'awsRegion-1887255946'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AwsCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setAwsRegion($awsRegion); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAwsClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $awsCluster = new AwsCluster(); + $awsClusterNetworking = new AwsClusterNetworking(); + $networkingVpcId = 'networkingVpcId-1154507440'; + $awsClusterNetworking->setVpcId($networkingVpcId); + $networkingPodAddressCidrBlocks = []; + $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $awsCluster->setNetworking($awsClusterNetworking); + $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; + $awsCluster->setAwsRegion($awsClusterAwsRegion); + $awsClusterControlPlane = new AwsControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $awsClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSubnetIds = []; + $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); + $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; + $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); + $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); + $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; + $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); + $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); + $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); + $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; + $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); + $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); + $controlPlaneConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); + $awsCluster->setControlPlane($awsClusterControlPlane); + $awsClusterAuthorization = new AwsAuthorization(); + $authorizationAdminUsers = []; + $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); + $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.gkemulticloud.v1.AwsClusters/UpdateAwsCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAwsCluster(); + $this->assertProtobufEquals($awsCluster, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAwsClusterTest'); + $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 updateAwsClusterExceptionTest() + { + $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/updateAwsClusterTest'); + $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 + $awsCluster = new AwsCluster(); + $awsClusterNetworking = new AwsClusterNetworking(); + $networkingVpcId = 'networkingVpcId-1154507440'; + $awsClusterNetworking->setVpcId($networkingVpcId); + $networkingPodAddressCidrBlocks = []; + $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $awsCluster->setNetworking($awsClusterNetworking); + $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; + $awsCluster->setAwsRegion($awsClusterAwsRegion); + $awsClusterControlPlane = new AwsControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $awsClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSubnetIds = []; + $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); + $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; + $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); + $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); + $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; + $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); + $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); + $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); + $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; + $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); + $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); + $controlPlaneConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); + $awsCluster->setControlPlane($awsClusterControlPlane); + $awsClusterAuthorization = new AwsAuthorization(); + $authorizationAdminUsers = []; + $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $awsCluster->setAuthorization($awsClusterAuthorization); + $awsClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $awsClusterFleet->setProject($fleetProject); + $awsCluster->setFleet($awsClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAwsClusterTest'); + 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 updateAwsNodePoolTest() + { + $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/updateAwsNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $expectedResponse = new AwsNodePool(); + $expectedResponse->setName($name); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAwsNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $awsNodePool = new AwsNodePool(); + $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; + $awsNodePool->setVersion($awsNodePoolVersion); + $awsNodePoolConfig = new AwsNodeConfig(); + $configIamInstanceProfile = 'configIamInstanceProfile805825313'; + $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); + $configConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); + $awsNodePool->setConfig($awsNodePoolConfig); + $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); + $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; + $awsNodePool->setSubnetId($awsNodePoolSubnetId); + $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAwsNodePool($awsNodePool, $updateMask); + $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.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAwsNodePool(); + $this->assertProtobufEquals($awsNodePool, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAwsNodePoolTest'); + $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 updateAwsNodePoolExceptionTest() + { + $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/updateAwsNodePoolTest'); + $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 + $awsNodePool = new AwsNodePool(); + $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; + $awsNodePool->setVersion($awsNodePoolVersion); + $awsNodePoolConfig = new AwsNodeConfig(); + $configIamInstanceProfile = 'configIamInstanceProfile805825313'; + $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); + $configConfigEncryption = new AwsConfigEncryption(); + $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; + $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); + $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); + $awsNodePool->setConfig($awsNodePoolConfig); + $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); + $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; + $awsNodePool->setSubnetId($awsNodePoolSubnetId); + $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAwsNodePool($awsNodePool, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAwsNodePoolTest'); + 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()); + } +} diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php new file mode 100644 index 000000000000..c28ab58f12ed --- /dev/null +++ b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php @@ -0,0 +1,1878 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AzureClustersClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AzureClustersClient($options); + } + + /** @test */ + public function createAzureClientTest() + { + $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/createAzureClientTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $tenantId = 'tenantId-1852780336'; + $applicationId = 'applicationId-1287148950'; + $pemCertificate = 'pemCertificate1234463984'; + $uid = 'uid115792'; + $expectedResponse = new AzureClient(); + $expectedResponse->setName($name); + $expectedResponse->setTenantId($tenantId); + $expectedResponse->setApplicationId($applicationId); + $expectedResponse->setPemCertificate($pemCertificate); + $expectedResponse->setUid($uid); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAzureClientTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $azureClient = new AzureClient(); + $azureClientTenantId = 'azureClientTenantId-567307073'; + $azureClient->setTenantId($azureClientTenantId); + $azureClientApplicationId = 'azureClientApplicationId264838513'; + $azureClient->setApplicationId($azureClientApplicationId); + $azureClientId = 'azureClientId315645023'; + $response = $gapicClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + $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.gkemulticloud.v1.AzureClusters/CreateAzureClient', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAzureClient(); + $this->assertProtobufEquals($azureClient, $actualValue); + $actualValue = $actualApiRequestObject->getAzureClientId(); + $this->assertProtobufEquals($azureClientId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureClientTest'); + $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 createAzureClientExceptionTest() + { + $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/createAzureClientTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $azureClient = new AzureClient(); + $azureClientTenantId = 'azureClientTenantId-567307073'; + $azureClient->setTenantId($azureClientTenantId); + $azureClientApplicationId = 'azureClientApplicationId264838513'; + $azureClient->setApplicationId($azureClientApplicationId); + $azureClientId = 'azureClientId315645023'; + $response = $gapicClient->createAzureClient($formattedParent, $azureClient, $azureClientId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureClientTest'); + 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 createAzureClusterTest() + { + $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/createAzureClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $azureRegion = 'azureRegion-253373788'; + $resourceGroupId = 'resourceGroupId-1092054036'; + $azureClient = 'azureClient-676290693'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AzureCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setAzureRegion($azureRegion); + $expectedResponse->setResourceGroupId($resourceGroupId); + $expectedResponse->setAzureClient($azureClient); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAzureClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $azureCluster = new AzureCluster(); + $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; + $azureCluster->setAzureRegion($azureClusterAzureRegion); + $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; + $azureCluster->setResourceGroupId($azureClusterResourceGroupId); + $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; + $azureCluster->setAzureClient($azureClusterAzureClient); + $azureClusterNetworking = new AzureClusterNetworking(); + $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; + $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); + $networkingPodAddressCidrBlocks = []; + $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $azureCluster->setNetworking($azureClusterNetworking); + $azureClusterControlPlane = new AzureControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $azureClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); + $azureCluster->setControlPlane($azureClusterControlPlane); + $azureClusterAuthorization = new AzureAuthorization(); + $authorizationAdminUsers = []; + $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); + $azureClusterId = 'azureClusterId332577072'; + $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); + $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.gkemulticloud.v1.AzureClusters/CreateAzureCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAzureCluster(); + $this->assertProtobufEquals($azureCluster, $actualValue); + $actualValue = $actualApiRequestObject->getAzureClusterId(); + $this->assertProtobufEquals($azureClusterId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureClusterTest'); + $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 createAzureClusterExceptionTest() + { + $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/createAzureClusterTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $azureCluster = new AzureCluster(); + $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; + $azureCluster->setAzureRegion($azureClusterAzureRegion); + $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; + $azureCluster->setResourceGroupId($azureClusterResourceGroupId); + $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; + $azureCluster->setAzureClient($azureClusterAzureClient); + $azureClusterNetworking = new AzureClusterNetworking(); + $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; + $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); + $networkingPodAddressCidrBlocks = []; + $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $azureCluster->setNetworking($azureClusterNetworking); + $azureClusterControlPlane = new AzureControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $azureClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); + $azureCluster->setControlPlane($azureClusterControlPlane); + $azureClusterAuthorization = new AzureAuthorization(); + $authorizationAdminUsers = []; + $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); + $azureClusterId = 'azureClusterId332577072'; + $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureClusterTest'); + 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 createAzureNodePoolTest() + { + $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/createAzureNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $azureAvailabilityZone = 'azureAvailabilityZone541920864'; + $expectedResponse = new AzureNodePool(); + $expectedResponse->setName($name); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAzureNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $azureNodePool = new AzureNodePool(); + $azureNodePoolVersion = 'azureNodePoolVersion349490987'; + $azureNodePool->setVersion($azureNodePoolVersion); + $azureNodePoolConfig = new AzureNodeConfig(); + $configSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureNodePoolConfig->setSshConfig($configSshConfig); + $azureNodePool->setConfig($azureNodePoolConfig); + $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; + $azureNodePool->setSubnetId($azureNodePoolSubnetId); + $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); + $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $azureNodePoolId = 'azureNodePoolId-454365551'; + $response = $gapicClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); + $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.gkemulticloud.v1.AzureClusters/CreateAzureNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAzureNodePool(); + $this->assertProtobufEquals($azureNodePool, $actualValue); + $actualValue = $actualApiRequestObject->getAzureNodePoolId(); + $this->assertProtobufEquals($azureNodePoolId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureNodePoolTest'); + $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 createAzureNodePoolExceptionTest() + { + $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/createAzureNodePoolTest'); + $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $azureNodePool = new AzureNodePool(); + $azureNodePoolVersion = 'azureNodePoolVersion349490987'; + $azureNodePool->setVersion($azureNodePoolVersion); + $azureNodePoolConfig = new AzureNodeConfig(); + $configSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureNodePoolConfig->setSshConfig($configSshConfig); + $azureNodePool->setConfig($azureNodePoolConfig); + $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; + $azureNodePool->setSubnetId($azureNodePoolSubnetId); + $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); + $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $azureNodePoolId = 'azureNodePoolId-454365551'; + $response = $gapicClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAzureNodePoolTest'); + 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 deleteAzureClientTest() + { + $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/deleteAzureClientTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAzureClientTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + $response = $gapicClient->deleteAzureClient($formattedName); + $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.gkemulticloud.v1.AzureClusters/DeleteAzureClient', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureClientTest'); + $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 deleteAzureClientExceptionTest() + { + $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/deleteAzureClientTest'); + $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->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + $response = $gapicClient->deleteAzureClient($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureClientTest'); + 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 deleteAzureClusterTest() + { + $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/deleteAzureClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAzureClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->deleteAzureCluster($formattedName); + $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.gkemulticloud.v1.AzureClusters/DeleteAzureCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureClusterTest'); + $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 deleteAzureClusterExceptionTest() + { + $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/deleteAzureClusterTest'); + $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->deleteAzureCluster($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureClusterTest'); + 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 deleteAzureNodePoolTest() + { + $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/deleteAzureNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAzureNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + $response = $gapicClient->deleteAzureNodePool($formattedName); + $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.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureNodePoolTest'); + $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 deleteAzureNodePoolExceptionTest() + { + $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/deleteAzureNodePoolTest'); + $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->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + $response = $gapicClient->deleteAzureNodePool($formattedName); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAzureNodePoolTest'); + 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 generateAzureAccessTokenTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $accessToken = 'accessToken-1938933922'; + $expectedResponse = new GenerateAzureAccessTokenResponse(); + $expectedResponse->setAccessToken($accessToken); + $transport->addResponse($expectedResponse); + // Mock request + $formattedAzureCluster = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->generateAzureAccessToken($formattedAzureCluster); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken', $actualFuncCall); + $actualValue = $actualRequestObject->getAzureCluster(); + $this->assertProtobufEquals($formattedAzureCluster, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateAzureAccessTokenExceptionTest() + { + $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 + $formattedAzureCluster = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + try { + $gapicClient->generateAzureAccessToken($formattedAzureCluster); + // 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 getAzureClientTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $tenantId = 'tenantId-1852780336'; + $applicationId = 'applicationId-1287148950'; + $pemCertificate = 'pemCertificate1234463984'; + $uid = 'uid115792'; + $expectedResponse = new AzureClient(); + $expectedResponse->setName($name2); + $expectedResponse->setTenantId($tenantId); + $expectedResponse->setApplicationId($applicationId); + $expectedResponse->setPemCertificate($pemCertificate); + $expectedResponse->setUid($uid); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + $response = $gapicClient->getAzureClient($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAzureClientExceptionTest() + { + $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->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); + try { + $gapicClient->getAzureClient($formattedName); + // 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 getAzureClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $azureRegion = 'azureRegion-253373788'; + $resourceGroupId = 'resourceGroupId-1092054036'; + $azureClient = 'azureClient-676290693'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AzureCluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setAzureRegion($azureRegion); + $expectedResponse->setResourceGroupId($resourceGroupId); + $expectedResponse->setAzureClient($azureClient); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->getAzureCluster($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAzureClusterExceptionTest() + { + $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + try { + $gapicClient->getAzureCluster($formattedName); + // 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 getAzureNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $azureAvailabilityZone = 'azureAvailabilityZone541920864'; + $expectedResponse = new AzureNodePool(); + $expectedResponse->setName($name2); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + $response = $gapicClient->getAzureNodePool($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAzureNodePoolExceptionTest() + { + $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->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); + try { + $gapicClient->getAzureNodePool($formattedName); + // 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 getAzureServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new AzureServerConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->azureServerConfigName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->getAzureServerConfig($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAzureServerConfigExceptionTest() + { + $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->azureServerConfigName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->getAzureServerConfig($formattedName); + // 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 listAzureClientsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $azureClientsElement = new AzureClient(); + $azureClients = [ + $azureClientsElement, + ]; + $expectedResponse = new ListAzureClientsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAzureClients($azureClients); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listAzureClients($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAzureClients()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAzureClientsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->listAzureClients($formattedParent); + // 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 listAzureClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $azureClustersElement = new AzureCluster(); + $azureClusters = [ + $azureClustersElement, + ]; + $expectedResponse = new ListAzureClustersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAzureClusters($azureClusters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listAzureClusters($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAzureClusters()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAzureClustersExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + try { + $gapicClient->listAzureClusters($formattedParent); + // 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 listAzureNodePoolsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $azureNodePoolsElement = new AzureNodePool(); + $azureNodePools = [ + $azureNodePoolsElement, + ]; + $expectedResponse = new ListAzureNodePoolsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAzureNodePools($azureNodePools); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + $response = $gapicClient->listAzureNodePools($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAzureNodePools()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAzureNodePoolsExceptionTest() + { + $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); + try { + $gapicClient->listAzureNodePools($formattedParent); + // 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 updateAzureClusterTest() + { + $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/updateAzureClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $azureRegion = 'azureRegion-253373788'; + $resourceGroupId = 'resourceGroupId-1092054036'; + $azureClient = 'azureClient-676290693'; + $endpoint = 'endpoint1741102485'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $clusterCaCertificate = 'clusterCaCertificate1324742683'; + $expectedResponse = new AzureCluster(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setAzureRegion($azureRegion); + $expectedResponse->setResourceGroupId($resourceGroupId); + $expectedResponse->setAzureClient($azureClient); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setClusterCaCertificate($clusterCaCertificate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAzureClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $azureCluster = new AzureCluster(); + $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; + $azureCluster->setAzureRegion($azureClusterAzureRegion); + $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; + $azureCluster->setResourceGroupId($azureClusterResourceGroupId); + $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; + $azureCluster->setAzureClient($azureClusterAzureClient); + $azureClusterNetworking = new AzureClusterNetworking(); + $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; + $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); + $networkingPodAddressCidrBlocks = []; + $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $azureCluster->setNetworking($azureClusterNetworking); + $azureClusterControlPlane = new AzureControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $azureClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); + $azureCluster->setControlPlane($azureClusterControlPlane); + $azureClusterAuthorization = new AzureAuthorization(); + $authorizationAdminUsers = []; + $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); + $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.gkemulticloud.v1.AzureClusters/UpdateAzureCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAzureCluster(); + $this->assertProtobufEquals($azureCluster, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAzureClusterTest'); + $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 updateAzureClusterExceptionTest() + { + $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/updateAzureClusterTest'); + $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 + $azureCluster = new AzureCluster(); + $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; + $azureCluster->setAzureRegion($azureClusterAzureRegion); + $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; + $azureCluster->setResourceGroupId($azureClusterResourceGroupId); + $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; + $azureCluster->setAzureClient($azureClusterAzureClient); + $azureClusterNetworking = new AzureClusterNetworking(); + $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; + $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); + $networkingPodAddressCidrBlocks = []; + $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); + $networkingServiceAddressCidrBlocks = []; + $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); + $azureCluster->setNetworking($azureClusterNetworking); + $azureClusterControlPlane = new AzureControlPlane(); + $controlPlaneVersion = 'controlPlaneVersion648040665'; + $azureClusterControlPlane->setVersion($controlPlaneVersion); + $controlPlaneSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); + $azureCluster->setControlPlane($azureClusterControlPlane); + $azureClusterAuthorization = new AzureAuthorization(); + $authorizationAdminUsers = []; + $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); + $azureCluster->setAuthorization($azureClusterAuthorization); + $azureClusterFleet = new Fleet(); + $fleetProject = 'fleetProject604893675'; + $azureClusterFleet->setProject($fleetProject); + $azureCluster->setFleet($azureClusterFleet); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAzureClusterTest'); + 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 updateAzureNodePoolTest() + { + $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/updateAzureNodePoolTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $version = 'version351608024'; + $subnetId = 'subnetId373593405'; + $uid = 'uid115792'; + $reconciling = false; + $etag = 'etag3123477'; + $azureAvailabilityZone = 'azureAvailabilityZone541920864'; + $expectedResponse = new AzureNodePool(); + $expectedResponse->setName($name); + $expectedResponse->setVersion($version); + $expectedResponse->setSubnetId($subnetId); + $expectedResponse->setUid($uid); + $expectedResponse->setReconciling($reconciling); + $expectedResponse->setEtag($etag); + $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAzureNodePoolTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $azureNodePool = new AzureNodePool(); + $azureNodePoolVersion = 'azureNodePoolVersion349490987'; + $azureNodePool->setVersion($azureNodePoolVersion); + $azureNodePoolConfig = new AzureNodeConfig(); + $configSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureNodePoolConfig->setSshConfig($configSshConfig); + $azureNodePool->setConfig($azureNodePoolConfig); + $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; + $azureNodePool->setSubnetId($azureNodePoolSubnetId); + $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); + $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAzureNodePool($azureNodePool, $updateMask); + $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.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAzureNodePool(); + $this->assertProtobufEquals($azureNodePool, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAzureNodePoolTest'); + $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 updateAzureNodePoolExceptionTest() + { + $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/updateAzureNodePoolTest'); + $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 + $azureNodePool = new AzureNodePool(); + $azureNodePoolVersion = 'azureNodePoolVersion349490987'; + $azureNodePool->setVersion($azureNodePoolVersion); + $azureNodePoolConfig = new AzureNodeConfig(); + $configSshConfig = new AzureSshConfig(); + $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; + $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); + $azureNodePoolConfig->setSshConfig($configSshConfig); + $azureNodePool->setConfig($azureNodePoolConfig); + $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; + $azureNodePool->setSubnetId($azureNodePoolSubnetId); + $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); + $autoscalingMinNodeCount = 1464441581; + $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); + $autoscalingMaxNodeCount = 1938867647; + $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); + $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); + $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); + $maxPodsConstraintMaxPodsPerNode = 1072618940; + $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); + $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAzureNodePool($azureNodePool, $updateMask); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAzureNodePoolTest'); + 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()); + } +} From ede67183aaf85eade9e874fed6150634f4fe79c9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Jan 2023 21:39:24 +0000 Subject: [PATCH 4/4] =?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 --- .../Gkemulticloud/V1/AttachedResources.php | Bin 3188 -> 0 bytes .../Gkemulticloud/V1/AttachedService.php | 89 - .../Cloud/Gkemulticloud/V1/AwsResources.php | Bin 7021 -> 0 bytes .../Cloud/Gkemulticloud/V1/AwsService.php | 117 - .../Cloud/Gkemulticloud/V1/AzureResources.php | Bin 7067 -> 0 bytes .../Cloud/Gkemulticloud/V1/AzureService.php | 142 -- .../Gkemulticloud/V1/CommonResources.php | Bin 2183 -> 0 bytes .../GkeMultiCloud/V1/AttachedCluster.php | 877 -------- .../V1/AttachedCluster/State.php | 96 - .../GkeMultiCloud/V1/AttachedClusterError.php | 67 - .../GkeMultiCloud/V1/AttachedClusterUser.php | 67 - .../V1/AttachedCluster_State.php | 16 - .../V1/AttachedClustersAuthorization.php | 83 - .../V1/AttachedClustersGrpcClient.php | 181 -- .../GkeMultiCloud/V1/AttachedOidcConfig.php | 129 -- .../V1/AttachedPlatformVersionInfo.php | 67 - .../GkeMultiCloud/V1/AttachedServerConfig.php | 102 - .../GkeMultiCloud/V1/AwsAuthorization.php | 83 - .../AwsAutoscalingGroupMetricsCollection.php | 118 -- .../Cloud/GkeMultiCloud/V1/AwsCluster.php | 879 -------- .../GkeMultiCloud/V1/AwsCluster/State.php | 96 - .../GkeMultiCloud/V1/AwsClusterError.php | 67 - .../GkeMultiCloud/V1/AwsClusterNetworking.php | 161 -- .../Cloud/GkeMultiCloud/V1/AwsClusterUser.php | 67 - .../GkeMultiCloud/V1/AwsCluster_State.php | 16 - .../V1/AwsClustersGrpcClient.php | 246 --- .../GkeMultiCloud/V1/AwsConfigEncryption.php | 67 - .../GkeMultiCloud/V1/AwsControlPlane.php | 693 ------ .../V1/AwsDatabaseEncryption.php | 67 - .../GkeMultiCloud/V1/AwsInstancePlacement.php | 70 - .../V1/AwsInstancePlacement/Tenancy.php | 75 - .../V1/AwsInstancePlacement_Tenancy.php | 16 - .../GkeMultiCloud/V1/AwsK8sVersionInfo.php | 67 - .../Cloud/GkeMultiCloud/V1/AwsNodeConfig.php | 607 ------ .../Cloud/GkeMultiCloud/V1/AwsNodePool.php | 639 ------ .../GkeMultiCloud/V1/AwsNodePool/State.php | 95 - .../V1/AwsNodePoolAutoscaling.php | 110 - .../GkeMultiCloud/V1/AwsNodePoolError.php | 67 - .../GkeMultiCloud/V1/AwsNodePool_State.php | 16 - .../Cloud/GkeMultiCloud/V1/AwsProxyConfig.php | 121 -- .../GkeMultiCloud/V1/AwsServerConfig.php | 135 -- .../V1/AwsServicesAuthentication.php | 109 - .../Cloud/GkeMultiCloud/V1/AwsSshConfig.php | 67 - .../GkeMultiCloud/V1/AwsVolumeTemplate.php | 197 -- .../V1/AwsVolumeTemplate/VolumeType.php | 67 - .../V1/AwsVolumeTemplate_VolumeType.php | 16 - .../GkeMultiCloud/V1/AzureAuthorization.php | 83 - .../Cloud/GkeMultiCloud/V1/AzureClient.php | 333 --- .../Cloud/GkeMultiCloud/V1/AzureCluster.php | 1035 --------- .../GkeMultiCloud/V1/AzureCluster/State.php | 96 - .../GkeMultiCloud/V1/AzureClusterError.php | 67 - .../V1/AzureClusterNetworking.php | 241 --- .../V1/AzureClusterResources.php | 102 - .../GkeMultiCloud/V1/AzureClusterUser.php | 67 - .../GkeMultiCloud/V1/AzureCluster_State.php | 16 - .../V1/AzureClustersGrpcClient.php | 326 --- .../V1/AzureConfigEncryption.php | 131 -- .../GkeMultiCloud/V1/AzureControlPlane.php | 613 ------ .../V1/AzureDatabaseEncryption.php | 85 - .../GkeMultiCloud/V1/AzureDiskTemplate.php | 75 - .../GkeMultiCloud/V1/AzureK8sVersionInfo.php | 67 - .../GkeMultiCloud/V1/AzureNodeConfig.php | 436 ---- .../Cloud/GkeMultiCloud/V1/AzureNodePool.php | 669 ------ .../GkeMultiCloud/V1/AzureNodePool/State.php | 95 - .../V1/AzureNodePoolAutoscaling.php | 111 - .../GkeMultiCloud/V1/AzureNodePoolError.php | 67 - .../GkeMultiCloud/V1/AzureNodePool_State.php | 16 - .../GkeMultiCloud/V1/AzureProxyConfig.php | 129 -- .../GkeMultiCloud/V1/AzureServerConfig.php | 152 -- .../Cloud/GkeMultiCloud/V1/AzureSshConfig.php | 75 - .../V1/CreateAttachedClusterRequest.php | 227 -- .../V1/CreateAwsClusterRequest.php | 227 -- .../V1/CreateAwsNodePoolRequest.php | 231 -- .../V1/CreateAzureClientRequest.php | 227 -- .../V1/CreateAzureClusterRequest.php | 227 -- .../V1/CreateAzureNodePoolRequest.php | 227 -- .../V1/DeleteAttachedClusterRequest.php | 271 --- .../V1/DeleteAwsClusterRequest.php | 221 -- .../V1/DeleteAwsNodePoolRequest.php | 225 -- .../V1/DeleteAzureClientRequest.php | 175 -- .../V1/DeleteAzureClusterRequest.php | 221 -- .../V1/DeleteAzureNodePoolRequest.php | 229 -- .../Google/Cloud/GkeMultiCloud/V1/Fleet.php | 131 -- ...eAttachedClusterInstallManifestRequest.php | 208 -- ...AttachedClusterInstallManifestResponse.php | 72 - .../V1/GenerateAwsAccessTokenRequest.php | 91 - .../V1/GenerateAwsAccessTokenResponse.php | 111 - .../V1/GenerateAzureAccessTokenRequest.php | 91 - .../V1/GenerateAzureAccessTokenResponse.php | 111 - .../V1/GetAttachedClusterRequest.php | 91 - .../V1/GetAttachedServerConfigRequest.php | 92 - .../GkeMultiCloud/V1/GetAwsClusterRequest.php | 91 - .../V1/GetAwsNodePoolRequest.php | 91 - .../V1/GetAwsServerConfigRequest.php | 91 - .../V1/GetAzureClientRequest.php | 95 - .../V1/GetAzureClusterRequest.php | 91 - .../V1/GetAzureNodePoolRequest.php | 91 - .../V1/GetAzureServerConfigRequest.php | 91 - .../V1/ImportAttachedClusterRequest.php | 239 --- .../V1/ListAttachedClustersRequest.php | 179 -- .../V1/ListAttachedClustersResponse.php | 109 - .../V1/ListAwsClustersRequest.php | 179 -- .../V1/ListAwsClustersResponse.php | 109 - .../V1/ListAwsNodePoolsRequest.php | 183 -- .../V1/ListAwsNodePoolsResponse.php | 109 - .../V1/ListAzureClientsRequest.php | 179 -- .../V1/ListAzureClientsResponse.php | 109 - .../V1/ListAzureClustersRequest.php | 179 -- .../V1/ListAzureClustersResponse.php | 109 - .../V1/ListAzureNodePoolsRequest.php | 183 -- .../V1/ListAzureNodePoolsResponse.php | 109 - .../V1/LoggingComponentConfig.php | 67 - .../V1/LoggingComponentConfig/Component.php | 64 - .../V1/LoggingComponentConfig_Component.php | 16 - .../Cloud/GkeMultiCloud/V1/LoggingConfig.php | 77 - .../V1/ManagedPrometheusConfig.php | 68 - .../GkeMultiCloud/V1/MaxPodsConstraint.php | 67 - .../GkeMultiCloud/V1/MonitoringConfig.php | 77 - .../Cloud/GkeMultiCloud/V1/NodeTaint.php | 135 -- .../GkeMultiCloud/V1/NodeTaint/Effect.php | 77 - .../GkeMultiCloud/V1/NodeTaint_Effect.php | 16 - .../GkeMultiCloud/V1/OperationMetadata.php | 315 --- .../GkeMultiCloud/V1/ReplicaPlacement.php | 113 - .../V1/UpdateAttachedClusterRequest.php | 199 -- .../V1/UpdateAwsClusterRequest.php | 259 --- .../V1/UpdateAwsNodePoolRequest.php | 255 --- .../V1/UpdateAzureClusterRequest.php | 219 -- .../V1/UpdateAzureNodePoolRequest.php | 187 -- .../V1/WorkloadIdentityConfig.php | 139 -- .../create_attached_cluster.php | 144 -- .../delete_attached_cluster.php | 91 - ...rate_attached_cluster_install_manifest.php | 106 - .../get_attached_cluster.php | 79 - .../get_attached_server_config.php | 75 - .../import_attached_cluster.php | 115 - .../list_attached_clusters.php | 78 - .../update_attached_cluster.php | 113 - .../AwsClustersClient/create_aws_cluster.php | 224 -- .../create_aws_node_pool.php | 163 -- .../AwsClustersClient/delete_aws_cluster.php | 90 - .../delete_aws_node_pool.php | 92 - .../generate_aws_access_token.php | 79 - .../V1/AwsClustersClient/get_aws_cluster.php | 75 - .../AwsClustersClient/get_aws_node_pool.php | 80 - .../get_aws_server_config.php | 75 - .../AwsClustersClient/list_aws_clusters.php | 78 - .../AwsClustersClient/list_aws_node_pools.php | 80 - .../AwsClustersClient/update_aws_cluster.php | 197 -- .../update_aws_node_pool.php | 136 -- .../create_azure_client.php | 122 -- .../create_azure_cluster.php | 238 --- .../create_azure_node_pool.php | 164 -- .../delete_azure_client.php | 91 - .../delete_azure_cluster.php | 94 - .../delete_azure_node_pool.php | 92 - .../generate_azure_access_token.php | 79 - .../AzureClustersClient/get_azure_client.php | 76 - .../AzureClustersClient/get_azure_cluster.php | 79 - .../get_azure_node_pool.php | 80 - .../get_azure_server_config.php | 75 - .../list_azure_clients.php | 78 - .../list_azure_clusters.php | 78 - .../list_azure_node_pools.php | 84 - .../update_azure_cluster.php | 207 -- .../update_azure_node_pool.php | 129 -- .../v1/src/V1/AttachedClustersClient.php | 34 - .../v1/src/V1/AwsClustersClient.php | 34 - .../v1/src/V1/AzureClustersClient.php | 34 - .../V1/Gapic/AttachedClustersGapicClient.php | 1017 --------- .../src/V1/Gapic/AwsClustersGapicClient.php | 1365 ------------ .../src/V1/Gapic/AzureClustersGapicClient.php | 1697 --------------- .../v1/src/V1/gapic_metadata.json | 216 -- .../attached_clusters_client_config.json | 84 - .../attached_clusters_descriptor_config.php | 58 - .../attached_clusters_rest_client_config.php | 153 -- .../resources/aws_clusters_client_config.json | 104 - .../aws_clusters_descriptor_config.php | 88 - .../aws_clusters_rest_client_config.php | 205 -- .../azure_clusters_client_config.json | 124 -- .../azure_clusters_descriptor_config.php | 118 -- .../azure_clusters_rest_client_config.php | 253 --- .../Unit/V1/AttachedClustersClientTest.php | 930 -------- .../tests/Unit/V1/AwsClustersClientTest.php | 1504 ------------- .../tests/Unit/V1/AzureClustersClientTest.php | 1878 ----------------- 184 files changed, 34658 deletions(-) delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureService.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersAuthorization.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClustersGrpcClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsK8sVersionInfo.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsProxyConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureAuthorization.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClustersGrpcClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureProxyConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AwsClustersClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/AzureClustersClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AttachedClustersGapicClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php delete mode 100644 owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedResources.php deleted file mode 100644 index 8f1647b3e2c62e53e93e5f15576601aceb817c4e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3188 zcmbVOZ*S8^7+;d6luIeW17?aUjtq$+b&gWlgj^U((==p26Q!m5BTJEMU)-aP&pV%s zO4WU!z1_E%_96BfP5TVHJNuk81X9*laqs#4?s3lBr^HEf{(QJWzb9-KgS zh+s$wBM$N5K|B~B3LP>Gv5%+$;Z_IkboO9#tG#!ZLn9JX2bs_##PdNtcGB-TH|cier*E) z$G4*h)>GD=A_b=a^1m=X@Ua6UW^)(dJskCMfEl)Z{EmnC6b@`ZLY(D8+d&*S43hu~ zKqqj}>I0Z?3fp@j;gURs%Dt{oi7RBa1BPf|`_>kU9Ew9mXqTIsriWOjt@zLCgY;TK zhX-&q@zFFtaPlc+G)CjMLr4*eX|N&v76fP6FKdc;^$=Uz82RodI<${5p{6;CYDDre zs1o(!sOj0V8e}*mfuf5p&X>u%hk1=Kdl*i~%Cvm*Jx-HQcil|$ZCvGNnX9 zTloustEvkcejM>K)E2>B-{b5In$h4gujTv~rL1F7OlMKpE= zRxlN`GAP8@)h~^_;+j&#Wpl8P15aPzCku(~BT#ZE;?Taxlzv%yy{zt5X*9Be&QNj4 z=U$2e7enzp^Kt3vCE=KM2WUs}0iQyMp(sniqBu(~`5Bb#ARuBUk|5HrzyeSAGv(U! ziq6ulWT}rBngOFHf;y*J7SP`kdgK$^?PC`O46_qeS4%RQZ)aTeV+wDl=uvGIv^H4s ziRW>t73WpSxi*9IWda&e<+SHu9#KkYq+gfuKb%1^Q5H>sP2~IuT(M(zNGN_M71eJ@ zpPqakVN@UINYw0rYkU@9{)UW2{FP*{&R~C);l_eqUI*pLylEv+I6^1sjJN`d$F?7% zWICAn$GJ)jin0Z?8{pdRUVX3Gf4#HYZ8qB5?dDeb3*Hoq-Ck$Ez1!~Ww0BzN9A~`L zd%Yt+^4e8U>NOjkokshmI4$s@w6MF^>2}4}oOT%$o4sDAS1yW!t!ArN-{Q3M=5O!o zr(o^;U`+-RpQ(|-$7FRPCE5$#Rd0~PqUve->#XV%Cn@vlsrq@A?I39_b9-BDCFuY< zs|>-)1poOAX)k#fxkDWEdoT)vFf5qc#S@8oO0_NO|x(p_3C(<2LuZ`1GdFrhF_ ri89S|CZ@SxJD8WwJ-nZ7QftX}I=0M;#}+$N7FlVTtea=x41oUt;KmsM diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php deleted file mode 100644 index 70e751523d92..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AttachedService.php +++ /dev/null @@ -1,89 +0,0 @@ -internalAddGeneratedFile( - ' -ì -4google/cloud/gkemulticloud/v1/attached_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto6google/cloud/gkemulticloud/v1/attached_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.proto"¶ --GenerateAttachedClusterInstallManifestRequestD -parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster -attached_cluster_id ( BàA -platform_version ( BàA"B -.GenerateAttachedClusterInstallManifestResponse -manifest ( "ì -CreateAttachedClusterRequestD -parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedClusterM -attached_cluster ( 2..google.cloud.gkemulticloud.v1.AttachedClusterBàA -attached_cluster_id ( BàA - validate_only ("Ô -ImportAttachedClusterRequestD -parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster - validate_only ( -fleet_membership ( BàA -platform_version ( BàA - distribution ( BàA"º -UpdateAttachedClusterRequestM -attached_cluster ( 2..google.cloud.gkemulticloud.v1.AttachedClusterBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"_ -GetAttachedClusterRequestB -name ( B4àAúA. -,gkemulticloud.googleapis.com/AttachedCluster"Š -ListAttachedClustersRequestD -parent ( B4àAúA.,gkemulticloud.googleapis.com/AttachedCluster - page_size ( - -page_token ( "‚ -ListAttachedClustersResponseI -attached_clusters ( 2..google.cloud.gkemulticloud.v1.AttachedCluster -next_page_token ( "µ -DeleteAttachedClusterRequestB -name ( B4àAúA. -,gkemulticloud.googleapis.com/AttachedCluster - validate_only ( - allow_missing ( - ignore_errors ( -etag ( "i -GetAttachedServerConfigRequestG -name ( B9àAúA3 -1gkemulticloud.googleapis.com/AttachedServerConfig2µ -AttachedClusters™ -CreateAttachedCluster;.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.google.longrunning.Operation"£‚Óä“H"4/v1/{parent=projects/*/locations/*}/attachedClusters:attached_clusterÚA+parent,attached_cluster,attached_cluster_idÊA$ -AttachedClusterOperationMetadata› -UpdateAttachedCluster;.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.google.longrunning.Operation"¥‚Óä“Y2E/v1/{attached_cluster.name=projects/*/locations/*/attachedClusters/*}:attached_clusterÚAattached_cluster,update_maskÊA$ -AttachedClusterOperationMetadataý -ImportAttachedCluster;.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.google.longrunning.Operation"‡‚Óä“@";/v1/{parent=projects/*/locations/*}/attachedClusters:import:*ÚAparent,fleet_membershipÊA$ -AttachedClusterOperationMetadataà -GetAttachedCluster8.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest..google.cloud.gkemulticloud.v1.AttachedCluster"C‚Óä“64/v1/{name=projects/*/locations/*/attachedClusters/*}ÚAnameÖ -ListAttachedClusters:.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest;.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse"E‚Óä“64/v1/{parent=projects/*/locations/*}/attachedClustersÚAparentå -DeleteAttachedCluster;.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.google.longrunning.Operation"p‚Óä“6*4/v1/{name=projects/*/locations/*/attachedClusters/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataÔ -GetAttachedServerConfig=.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest3.google.cloud.gkemulticloud.v1.AttachedServerConfig"E‚Óä“86/v1/{name=projects/*/locations/*/attachedServerConfig}ÚAname¶ -&GenerateAttachedClusterInstallManifestL.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequestM.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse"o‚Óä“LJ/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifestÚAparent,attached_cluster_idPÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBê -!com.google.cloud.gkemulticloud.v1BAttachedServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsResources.php deleted file mode 100644 index 1f0d035c6472f51b924d20339dd0909b2a24eb93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7021 zcmdT}&2rnw5e`ZHSWQWmApg*EybIH+vRrGEE80n1^g1b;q-m}tk)bH1Hem$?fg=hl z5J2Haw$`N=$RW>>$~CpGkVBp#w^Vtrshrb20}vo38?-Bz=p+KuJw4rDfAh`Yo8Q>S zHr$gN%w&%0vA%qGCVR(BwjIl}G|P|={i7r1$eJ~@b%QwtS+2F@-Bwqw*P7kCXzE(N zqp`9)u&jZ>ike~h{o>$+4SmDY#jn$?qWZ>F945xP1@0ZdRENy9RgKAw_KO|nseRQ` zdkyZWS0zWiM%+>FVCxxxW~iy@58UJkm(9kv6^;Dc#-q2k|H+4@}4gCjP z*mLyDU4*^BwaUkDDBvkN)dj zlDCSj_g?DE=)Yjc>Zxuy<#M#D$jOIH!=z4cb$OwBRcko3%+Q@Xy}wa2DySW3Y*K~n`~)4TvAx|!U*~!E8j+P46GKXvqEejrw(#U6qwY7tZJGT zk)vh0xn((nGnd1eFUNNb0)E4-wOFz;FxfLGg zFB0bXU0~h}tgGBuEc_na&;-&IO;t4Jc>0m9Q5{!lQDV?jm_0HW^KufOZzEy8mo%0v z(^3M0$9*Ig z(sdqE5@L5ocCo0|ORzFoHz^C56LuCb#uCh)s)o-5SCrFFQ+Xd|Ipz`Wt9#u_x328( z?zQXH=F4Wiw(>KC`(nG(I%w`STf5EO#!3o3&Uf~A`H!@86|$XrwY6JqZqwTgQq+~b zZmZpiUOB(bz;TGHOPEJ1u<) zlFKyTp|%=0mT&U`v*Cc0bQiAa>JX()5Fcja2)92@bi6@`m9vgzdCI9}_((cLUD?vt z$uS=A@m)4VE*Bh_B40yQH$z`UdY|p<0M$a^lbD{2B&V%gqK5a*-hz}sXM$597XHO`;$gc4U~OQmFY!qa3ryC6mAGElA$G5&yTr_d11 z0GYV83sc@V>tDgbDAS3Y)PY;nGnb~2wq+C?Oi`V&ru_m|`D2&4)XxgnNs%PV{{gx2 zjXS0lqy}!1{UO5J$9lU+0R*5a>JTu@K3egL=6m;H8NJ7zQ<&s6l51k*7F@@H7okjI z?qujH$kh`o%m0*uRkRszPx9~LNkJY*W}5^gH|pT{fd{5!Z7 zWinEt(i+U2+8WYfoT)e9rfu~VwckfMj$E(z9pw-=gA*5bxDlyt!fmVs_4B18Goz9D z|I9-cXWzB@j1F=WdONmTkfaXiwgPja2XjB?jhCb*0{>APr==F+(Dy7?!^0~I$Xnb` zl8}nUiKq^ZIm)CPurS(Ra&u9vwNMw6R$HECQwUQL7si1Cj%l(91x(89as?~|*QYAr zYdj%|R-pnW3AI3-5LduAcymwD38NKHN-5C^9atNxZxw_c;tj=z=ivV6b+FB4)J%h;rn`jAqM(GkjEeW(rsl})GP z;QnGnjF%7u1V46uGCe+;&0$@5JMkn$Axeyaaj?Wfik_}(P_8Mi#JV)1v z$_xX~S9B5*7cbT1+Q+t?2Ax&#PM3UDN3J+T*B?PPhO;E`_o+(pMvM$&0ioyZci_6~+qUK4WxRq6g*SwB$tK8Pq5S>($^afFvE*2!zxo8Gj2q@RxXPS} z@9M+>IsX6_G2x@*taJ+&nO5Sm)mC*UCeHHTa7`R*6-mNlFT)ElFOs+@RhENi;Ypl} z_Iwf6a3YcZ=!o(Wnf$jDSB@9XAJT7O-eV@7=EW_@RC4%&mqJ&#;2U=S70d^}@hHF6 zt?yQLtKUsroZvM{t^TsIzuiT7y95h(@6oK{{Yq^mEnR_`SFOG7N+y2*8@S9Ea4+v9 zTKB+FP2W)IZXlLsy2A*XIMTeSd|q63#O|E%ss;zTF7mA~&)?%mBH9i}>~bY>VbF_z zrQj}J#(bO&UeEz$boq}Z_pEm6_umE=&I1dtc?Si{859T1M0|QyF}mvcz&E64W2paY z`c8v?C@S#p4~51F+o3N`;@82}Kf?FD;7byHN{UAG@LSURv@Bed%iOA59vf0FA8Z}Y j@!%fcAAL-CC_d1{zUSb*3*H7?@-2st6klA<;T+(VS0 diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php deleted file mode 100644 index 8f2027b59b8d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AwsService.php +++ /dev/null @@ -1,117 +0,0 @@ -internalAddGeneratedFile( - ' -Ù* -/google/cloud/gkemulticloud/v1/aws_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto1google/cloud/gkemulticloud/v1/aws_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"Ó -CreateAwsClusterRequest? -parent ( B/àAúA)\'gkemulticloud.googleapis.com/AwsClusterC - aws_cluster ( 2).google.cloud.gkemulticloud.v1.AwsClusterBàA -aws_cluster_id ( BàA - validate_only ("« -UpdateAwsClusterRequestC - aws_cluster ( 2).google.cloud.gkemulticloud.v1.AwsClusterBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"U -GetAwsClusterRequest= -name ( B/àAúA) -\'gkemulticloud.googleapis.com/AwsCluster"€ -ListAwsClustersRequest? -parent ( B/àAúA)\'gkemulticloud.googleapis.com/AwsCluster - page_size ( - -page_token ( "s -ListAwsClustersResponse? - aws_clusters ( 2).google.cloud.gkemulticloud.v1.AwsCluster -next_page_token ( "” -DeleteAwsClusterRequest= -name ( B/àAúA) -\'gkemulticloud.googleapis.com/AwsCluster - validate_only ( - allow_missing ( -etag ( "Ú -CreateAwsNodePoolRequest@ -parent ( B0àAúA*(gkemulticloud.googleapis.com/AwsNodePoolF - aws_node_pool ( 2*.google.cloud.gkemulticloud.v1.AwsNodePoolBàA -aws_node_pool_id ( BàA - validate_only ("¯ -UpdateAwsNodePoolRequestF - aws_node_pool ( 2*.google.cloud.gkemulticloud.v1.AwsNodePoolBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"W -GetAwsNodePoolRequest> -name ( B0àAúA* -(gkemulticloud.googleapis.com/AwsNodePool"‚ -ListAwsNodePoolsRequest@ -parent ( B0àAúA*(gkemulticloud.googleapis.com/AwsNodePool - page_size ( - -page_token ( "w -ListAwsNodePoolsResponseB -aws_node_pools ( 2*.google.cloud.gkemulticloud.v1.AwsNodePool -next_page_token ( "– -DeleteAwsNodePoolRequest> -name ( B0àAúA* -(gkemulticloud.googleapis.com/AwsNodePool - validate_only ( - allow_missing ( -etag ( "_ -GetAwsServerConfigRequestB -name ( B4àAúA. -,gkemulticloud.googleapis.com/AwsServerConfig"e -GenerateAwsAccessTokenRequestD - aws_cluster ( B/àAúA) -\'gkemulticloud.googleapis.com/AwsCluster"u -GenerateAwsAccessTokenResponse - access_token ( BàA8 -expiration_time ( 2.google.protobuf.TimestampBàA2þ - AwsClustersö -CreateAwsCluster6.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest.google.longrunning.Operation"Š‚Óä“>"//v1/{parent=projects/*/locations/*}/awsClusters: aws_clusterÚA!parent,aws_cluster,aws_cluster_idÊA - -AwsClusterOperationMetadataø -UpdateAwsCluster6.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest.google.longrunning.Operation"Œ‚Óä“J2;/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}: aws_clusterÚAaws_cluster,update_maskÊA - -AwsClusterOperationMetadata¯ - GetAwsCluster3.google.cloud.gkemulticloud.v1.GetAwsClusterRequest).google.cloud.gkemulticloud.v1.AwsCluster">‚Óä“1//v1/{name=projects/*/locations/*/awsClusters/*}ÚAname -ListAwsClusters5.google.cloud.gkemulticloud.v1.ListAwsClustersRequest6.google.cloud.gkemulticloud.v1.ListAwsClustersResponse"@‚Óä“1//v1/{parent=projects/*/locations/*}/awsClustersÚAparentÖ -DeleteAwsCluster6.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest.google.longrunning.Operation"k‚Óä“1*//v1/{name=projects/*/locations/*/awsClusters/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataì -GenerateAwsAccessToken<.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest=.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse"U‚Óä“OM/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessTokenŽ -CreateAwsNodePool7.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest.google.longrunning.Operation" ‚Óä“O">/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools: aws_node_poolÚA%parent,aws_node_pool,aws_node_pool_idÊA - AwsNodePoolOperationMetadata -UpdateAwsNodePool7.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest.google.longrunning.Operation"¢‚Óä“]2L/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}: aws_node_poolÚAaws_node_pool,update_maskÊA - AwsNodePoolOperationMetadataÁ -GetAwsNodePool4.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest*.google.cloud.gkemulticloud.v1.AwsNodePool"M‚Óä“@>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}ÚAnameÔ -ListAwsNodePools6.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest7.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse"O‚Óä“@>/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePoolsÚAparentç -DeleteAwsNodePool7.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest.google.longrunning.Operation"z‚Óä“@*>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataÀ -GetAwsServerConfig8.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest..google.cloud.gkemulticloud.v1.AwsServerConfig"@‚Óä“31/v1/{name=projects/*/locations/*/awsServerConfig}ÚAnamePÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBå -!com.google.cloud.gkemulticloud.v1BAwsServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/AzureResources.php deleted file mode 100644 index 5f0ffa7e86d117db00181d1384ed1f112601cadf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7067 zcmc&(UsD^&5sxH;VZ`6%Y}Q;H@9D@LzO$u+a}pvSNdyQ=K7$k?bE%Z7wpOc=*s$8! z+CRkD#ka^qp7WTORHZ7F?~qS%c??zg3aNC@>^}+FTAYXQ#A>E{dU}4{{p*=;erccC zN4Na zX<6wr);DQMH<{lp_0Q?RH$6jqU2K-LH@-tvhl<&5k?SYK(gxJEHJvJljol;aX0S(M`>Dl?tkCh8oFRqQIZ+cT7W9Tu+0=m36~a4a@Kh%{1P? z=5~~xX1Wwq+??Cox;t>?oma4fGHArd_i<>R6iD-lwka z7`Dfp223rN`_zlPioa|;4wglAMo-xgHkQjbjNDN?$EV5F6~&>R?^w^d-KgLy`ma64 za~0cY9~ji^?$R^u!eCCh9PcVt@-ETPsp+N0A60vg4F=2#)w${QMec1G01!_b*yCmS zu{`~S5gbCL+l_pF0C3%iyo5gcoc!}E^7RMcRC*|ciX6_xA#fKjHrE~mIyKuUg%B4A zUwiicby_iL{&6IXR%WG_WL{^M=P*;XP0gb66j%9GDwRU8fpS9I z5t-L~?~FOd8^{W<>1nQQGmW-NQc$R?k|_*bD&GY)3tOqw1jkf7K|xfLlkSljYISV} z*p+8M6F;Dwv_x_~_W z3`J7D4S6<@noB1I0E6`0m*>$i>6GL(%VL;indQn0N)A^3CR}-Zm<*kGu@Z|{;iNCo zwv5zn6B%J-GOY{n1DF}!r3#zx8GTvemQKRecY$~`8}E}(?RswgNds>41RR7r@a*r*5G zsL}+Zjv~2)U29upX%r7qp5)HyWsuP3$<&2r`c$N{a&|jY@W~X9CJ3bElUAiwRbL&S zG^%^GgIaZe=?4%i#molL7Zu8YK|Hw*y9)_rmD?my}2}n1N+s(W@R7LPM7`bibEa`mjIFIAp5&TNa&^HSxQw1!{1Te zb4zc7|E@|V1I%IIl-`E_UI~U2X%6 zL9T^hQeD3T7U1fbuSLZv{Arpj3(FIUS^9|Fy`YYZ**Ib8eKH&CNK`GHJy2cXaB;!P zNC$+t?pYWVBKtj^fIn`@iF+2KFDt!(1k0GGUNF;#G%Cths?gXs-18P4K#dYvJ%hRi znqh^yZc(>x>iP{?K|0*gT&hw_cP?#Sy|4h}w|<&tqx*q)HIha|pp|m~#@A716*XW| z>~h~VP%idf29uu7Q*6@41#V-yq{oFvEj%K3pxU@lW3jT7(`*)uLdL)gf3XF^iMrAt zl0$9i3^XJZIvqe|aiNx>@=4on3PI2-caA!!2M!``?W90Y-Gg5WY!={qsvG` z!H@_N2xpCVQ`&`Qm|6#D0o2Gh3}{jmGTFkfAf@80#CZYv8^iDfV_b&Fqd+Ej^l~+Y zB3b1cZh}Z!A=8kXG0bD-FJ0mq+28IH8q4G;tb z1ajhN-jmOf=nEPJWGAHV4|!aqYCA(n$K3rxQpEp@YX32FUHLl#s5Bb3AbjEInR!+C%M@9Rl7mM8WC0ZD z`!*m&$i?$p+iCGE>>H&-P=JjA^s1_NY18-yVw6^6mCA2@7_A;AnV1Z z<5rY$?J3D86ij58Eh0yN9jOo!5F#wQ9N#+gA)z6FImgQKK}dOtLBy~aEc_=Eu(cCt z9jOyU!tiC}3$g&cyU|sHhEH^z`E)ht+imw$^ocdA$Dr3;b$#1r4m?$;TJWZT7nv?l zNN8ot)^+8ajNH(UYtM)5{rRo3MpCr!8Cl_O9kFw9q`fUXB@29B)Ow;{p~&-FN!Uwt z)xm2*;WFgX;_fB75t2S555guN_`2^P^^Y!VqqLKgw#k=z@&;8+GTxh#5wpn^*28u^ zaqR=QC3oQ--i34_+V#SZ0|tk1MmX^bb7R`>zcS<#xDt7PTvZ!U;dncE zb;4(-ct#uEovyQrP*E;(sd9N}O1XTx*_r0Xef@d#?C?Z9internalAddGeneratedFile( - ' -Ê8 -1google/cloud/gkemulticloud/v1/azure_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto3google/cloud/gkemulticloud/v1/azure_resources.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"Ý -CreateAzureClusterRequestA -parent ( B1àAúA+)gkemulticloud.googleapis.com/AzureClusterG - azure_cluster ( 2+.google.cloud.gkemulticloud.v1.AzureClusterBàA -azure_cluster_id ( BàA - validate_only ("± -UpdateAzureClusterRequestG - azure_cluster ( 2+.google.cloud.gkemulticloud.v1.AzureClusterBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"Y -GetAzureClusterRequest? -name ( B1àAúA+ -)gkemulticloud.googleapis.com/AzureCluster"„ -ListAzureClustersRequestA -parent ( B1àAúA+)gkemulticloud.googleapis.com/AzureCluster - page_size ( - -page_token ( "y -ListAzureClustersResponseC -azure_clusters ( 2+.google.cloud.gkemulticloud.v1.AzureCluster -next_page_token ( "˜ -DeleteAzureClusterRequest? -name ( B1àAúA+ -)gkemulticloud.googleapis.com/AzureCluster - allow_missing ( - validate_only ( -etag ( "ä -CreateAzureNodePoolRequestB -parent ( B2àAúA,*gkemulticloud.googleapis.com/AzureNodePoolJ -azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolBàA -azure_node_pool_id ( BàA - validate_only ("µ -UpdateAzureNodePoolRequestJ -azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolBàA - validate_only (4 - update_mask ( 2.google.protobuf.FieldMaskBàA"[ -GetAzureNodePoolRequest@ -name ( B2àAúA, -*gkemulticloud.googleapis.com/AzureNodePool"† -ListAzureNodePoolsRequestB -parent ( B2àAúA,*gkemulticloud.googleapis.com/AzureNodePool - page_size ( - -page_token ( "} -ListAzureNodePoolsResponseF -azure_node_pools ( 2,.google.cloud.gkemulticloud.v1.AzureNodePool -next_page_token ( "š -DeleteAzureNodePoolRequest@ -name ( B2àAúA, -*gkemulticloud.googleapis.com/AzureNodePool - validate_only ( - allow_missing ( -etag ( "c -GetAzureServerConfigRequestD -name ( B6àAúA0 -.gkemulticloud.googleapis.com/AzureServerConfig"Ø -CreateAzureClientRequest@ -parent ( B0àAúA*(gkemulticloud.googleapis.com/AzureClientE - azure_client ( 2*.google.cloud.gkemulticloud.v1.AzureClientBàA -azure_client_id ( BàA - validate_only ("W -GetAzureClientRequest> -name ( B0àAúA* -(gkemulticloud.googleapis.com/AzureClient"‚ -ListAzureClientsRequest@ -parent ( B0àAúA*(gkemulticloud.googleapis.com/AzureClient - page_size ( - -page_token ( "v -ListAzureClientsResponseA - azure_clients ( 2*.google.cloud.gkemulticloud.v1.AzureClient -next_page_token ( "ˆ -DeleteAzureClientRequest> -name ( B0àAúA* -(gkemulticloud.googleapis.com/AzureClient - allow_missing ( - validate_only ("k -GenerateAzureAccessTokenRequestH - azure_cluster ( B1àAúA+ -)gkemulticloud.googleapis.com/AzureCluster"w - GenerateAzureAccessTokenResponse - access_token ( BàA8 -expiration_time ( 2.google.protobuf.TimestampBàA2Ý - AzureClustersý -CreateAzureClient7.google.cloud.gkemulticloud.v1.CreateAzureClientRequest.google.longrunning.Operation"‚Óä“@"0/v1/{parent=projects/*/locations/*}/azureClients: azure_clientÚA#parent,azure_client,azure_client_idÊA - AzureClientOperationMetadata³ -GetAzureClient4.google.cloud.gkemulticloud.v1.GetAzureClientRequest*.google.cloud.gkemulticloud.v1.AzureClient"?‚Óä“20/v1/{name=projects/*/locations/*/azureClients/*}ÚAnameÆ -ListAzureClients6.google.cloud.gkemulticloud.v1.ListAzureClientsRequest7.google.cloud.gkemulticloud.v1.ListAzureClientsResponse"A‚Óä“20/v1/{parent=projects/*/locations/*}/azureClientsÚAparentÙ -DeleteAzureClient7.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest.google.longrunning.Operation"l‚Óä“2*0/v1/{name=projects/*/locations/*/azureClients/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadata„ -CreateAzureCluster8.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest.google.longrunning.Operation"”‚Óä“B"1/v1/{parent=projects/*/locations/*}/azureClusters: azure_clusterÚA%parent,azure_cluster,azure_cluster_idÊA! - AzureClusterOperationMetadata† -UpdateAzureCluster8.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest.google.longrunning.Operation"–‚Óä“P2?/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}: azure_clusterÚAazure_cluster,update_maskÊA! - AzureClusterOperationMetadata· -GetAzureCluster5.google.cloud.gkemulticloud.v1.GetAzureClusterRequest+.google.cloud.gkemulticloud.v1.AzureCluster"@‚Óä“31/v1/{name=projects/*/locations/*/azureClusters/*}ÚAnameÊ -ListAzureClusters7.google.cloud.gkemulticloud.v1.ListAzureClustersRequest8.google.cloud.gkemulticloud.v1.ListAzureClustersResponse"B‚Óä“31/v1/{parent=projects/*/locations/*}/azureClustersÚAparentÜ -DeleteAzureCluster8.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest.google.longrunning.Operation"m‚Óä“3*1/v1/{name=projects/*/locations/*/azureClusters/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataø -GenerateAzureAccessToken>.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest?.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse"[‚Óä“US/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessTokenž -CreateAzureNodePool9.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest.google.longrunning.Operation"¬‚Óä“U"B/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools:azure_node_poolÚA)parent,azure_node_pool,azure_node_pool_idÊA" - AzureNodePoolOperationMetadata  -UpdateAzureNodePool9.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest.google.longrunning.Operation"®‚Óä“e2R/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}:azure_node_poolÚAazure_node_pool,update_maskÊA" - AzureNodePoolOperationMetadataË -GetAzureNodePool6.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest,.google.cloud.gkemulticloud.v1.AzureNodePool"Q‚Óä“DB/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}ÚAnameÞ -ListAzureNodePools8.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest9.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse"S‚Óä“DB/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePoolsÚAparentï -DeleteAzureNodePool9.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest.google.longrunning.Operation"~‚Óä“D*B/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}ÚAnameÊA* -google.protobuf.EmptyOperationMetadataÈ -GetAzureServerConfig:.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest0.google.cloud.gkemulticloud.v1.AzureServerConfig"B‚Óä“53/v1/{name=projects/*/locations/*/azureServerConfig}ÚAnamePÊAgkemulticloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBç -!com.google.cloud.gkemulticloud.v1BAzureServiceProtoPZJgoogle.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloudªGoogle.Cloud.GkeMultiCloud.V1ÊGoogle\\Cloud\\GkeMultiCloud\\V1ê Google::Cloud::GkeMultiCloud::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/GPBMetadata/Google/Cloud/Gkemulticloud/V1/CommonResources.php deleted file mode 100644 index c405f78106ee45076528d9adfc59a50461a802b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2183 zcmbVNUsKyg5U=g9q1d(maUL4A?TI#n=Oel#Hk9SvtfOS*M;P zH?+e{KTkhKAN!b3(C2)Lu5_{t4K$tj$-3SB?e1@Xcl*`z;52{-WSjX+(ug^ve@>!P zMgl1!VGED+#>^ciP)*RXKWCA z5m#Ts)f&bRgl|cv+(SK00N~RB3j=C1vfbHgv4}b}qP^`Dt5;93dfS(=dPl440JcZN zkknJm{ShSm1_XaW-1oRm!iZve@{orX_j$yr$A884HpmI}LWUS``<}$U9dY54B%tlv zY~?Xgn2GPhKp-6(WK>)yVF=mj?f4OsKJ|JH7TS^rk&qp9H4K+UIj_md%Hu3;0>@9t zimK5t-YRl~L^5WVvlAj&6ia_Stvdm@$p7`Op>8way(VX#v&By7kPB%Thh-< zXeub2M=ctatu$8s0Tx~edFBb~>^RJicywMD{t0(A4SDy3RLx=aF$^%QDhui4qim=E#6A{Q?@1ekVz@z$TTrFRp8c;$^PQh_~-#F zNcMA#>S2y$Q@l!^mv*{1iB8igWc76cX7-SlZc11gN@wg`4I!}?aXJ%2>cvb=K%F&U zlHq$~tGaKm)kfT0FAhD&*UdC6MX4Ucr25nrKr@?7v);81_YOK{eW$r&Hp(ApAHnQi z+d8O!V>S+V&2k}e?ChIObKkmrUes;_;DPzQSwHNWc0yxV1quB;VBQsjg_iD!rZQKUGBS?Hrr56-dy3MVl6w>Yo>=U-_di9lSM1Q>YoKz zxZb3_gbMR%-(#343koq=Y326X^Y==oY~(;@d3m2g%ZvvQ}^N7 zJGyA8_)Z?4arPP9y}^VEnNplN=~$+>-W1?I()Zt)w(cMqxCry5g()M^DZKnPyW_6# zsPF1Rx;2;i*iR&C%0vSm-mqQQuRMx>6z^@P`%_Q%r;huxmF!~mb+r1|$ll8qY_eg; x9z9&KZ;C`g7)Bap7*|{j<7l-%nHKltQU1(-u9nuN9e3k?OFh*Vx_}FSe*njUxCQ_K diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php deleted file mode 100644 index 9f956818f542..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster.php +++ /dev/null @@ -1,877 +0,0 @@ -google.cloud.gkemulticloud.v1.AttachedCluster - */ -class AttachedCluster extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. OpenID Connect (OIDC) configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $oidc_config = null; - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $platform_version = ''; - /** - * Required. The Kubernetes distribution of the underlying attached cluster. - * Supported values: ["eks", "aks"]. - * - * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $distribution = ''; - /** - * Output only. The region where this cluster runs. - * For EKS clusters, this is a AWS region. For AKS clusters, - * this is an Azure region. - * - * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_region = ''; - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $fleet = null; - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this cluster was registered. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11; - */ - protected $etag = ''; - /** - * Output only. The Kubernetes version of the cluster. - * - * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $kubernetes_version = ''; - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_identity_config = null; - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $logging_config = null; - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Optional. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $authorization = null; - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $monitoring_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type string $description - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * @type \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig $oidc_config - * Required. OpenID Connect (OIDC) configuration for the cluster. - * @type string $platform_version - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * @type string $distribution - * Required. The Kubernetes distribution of the underlying attached cluster. - * Supported values: ["eks", "aks"]. - * @type string $cluster_region - * Output only. The region where this cluster runs. - * For EKS clusters, this is a AWS region. For AKS clusters, - * this is an Azure region. - * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet - * Required. Fleet configuration. - * @type int $state - * Output only. The current state of the cluster. - * @type string $uid - * Output only. A globally unique identifier for the cluster. - * @type bool $reconciling - * Output only. If set, there are currently changes in flight to the cluster. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this cluster was registered. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this cluster was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type string $kubernetes_version - * Output only. The Kubernetes version of the cluster. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config - * Output only. Workload Identity settings. - * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config - * Optional. Logging configuration for this cluster. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization $authorization - * Optional. Configuration related to the cluster RBAC settings. - * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config - * Optional. Monitoring configuration for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field 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; - } - - /** - * Required. OpenID Connect (OIDC) configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig|null - */ - public function getOidcConfig() - { - return $this->oidc_config; - } - - public function hasOidcConfig() - { - return isset($this->oidc_config); - } - - public function clearOidcConfig() - { - unset($this->oidc_config); - } - - /** - * Required. OpenID Connect (OIDC) configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig $var - * @return $this - */ - public function setOidcConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedOidcConfig::class); - $this->oidc_config = $var; - - return $this; - } - - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPlatformVersion() - { - return $this->platform_version; - } - - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPlatformVersion($var) - { - GPBUtil::checkString($var, True); - $this->platform_version = $var; - - return $this; - } - - /** - * Required. The Kubernetes distribution of the underlying attached cluster. - * Supported values: ["eks", "aks"]. - * - * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDistribution() - { - return $this->distribution; - } - - /** - * Required. The Kubernetes distribution of the underlying attached cluster. - * Supported values: ["eks", "aks"]. - * - * Generated from protobuf field string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDistribution($var) - { - GPBUtil::checkString($var, True); - $this->distribution = $var; - - return $this; - } - - /** - * Output only. The region where this cluster runs. - * For EKS clusters, this is a AWS region. For AKS clusters, - * this is an Azure region. - * - * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClusterRegion() - { - return $this->cluster_region; - } - - /** - * Output only. The region where this cluster runs. - * For EKS clusters, this is a AWS region. For AKS clusters, - * this is an Azure region. - * - * Generated from protobuf field string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClusterRegion($var) - { - GPBUtil::checkString($var, True); - $this->cluster_region = $var; - - return $this; - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null - */ - public function getFleet() - { - return $this->fleet; - } - - public function hasFleet() - { - return isset($this->fleet); - } - - public function clearFleet() - { - unset($this->fleet); - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var - * @return $this - */ - public function setFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); - $this->fleet = $var; - - return $this; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this cluster was registered. - * - * 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 at which this cluster was registered. - * - * 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 at which this cluster was last 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 at which this cluster was last 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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The Kubernetes version of the cluster. - * - * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getKubernetesVersion() - { - return $this->kubernetes_version; - } - - /** - * Output only. The Kubernetes version of the cluster. - * - * Generated from protobuf field string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setKubernetesVersion($var) - { - GPBUtil::checkString($var, True); - $this->kubernetes_version = $var; - - return $this; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null - */ - public function getWorkloadIdentityConfig() - { - return $this->workload_identity_config; - } - - public function hasWorkloadIdentityConfig() - { - return isset($this->workload_identity_config); - } - - public function clearWorkloadIdentityConfig() - { - unset($this->workload_identity_config); - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); - $this->workload_identity_config = $var; - - return $this; - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedClusterError::class); - $this->errors = $arr; - - return $this; - } - - /** - * Optional. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization|null - */ - public function getAuthorization() - { - return $this->authorization; - } - - public function hasAuthorization() - { - return isset($this->authorization); - } - - public function clearAuthorization() - { - unset($this->authorization); - } - - /** - * Optional. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization $var - * @return $this - */ - public function setAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedClustersAuthorization::class); - $this->authorization = $var; - - return $this; - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null - */ - public function getMonitoringConfig() - { - return $this->monitoring_config; - } - - public function hasMonitoringConfig() - { - return isset($this->monitoring_config); - } - - public function clearMonitoringConfig() - { - unset($this->monitoring_config); - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php deleted file mode 100644 index 51a928e34a8a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster/State.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.gkemulticloud.v1.AttachedCluster.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the cluster is being registered. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the cluster has been register and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading software components. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the cluster is being de-registered. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the cluster is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the cluster requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AttachedCluster_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php deleted file mode 100644 index 7e2ea588596e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterError.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AttachedClusterError - */ -class AttachedClusterError extends \Google\Protobuf\Internal\Message -{ - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Human-friendly description of the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); - parent::__construct($data); - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php deleted file mode 100644 index f020f59ff48b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClusterUser.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AttachedClusterUser - */ -class AttachedClusterUser extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $username = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php deleted file mode 100644 index 57e11504c53e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedCluster_State.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AttachedClustersAuthorization - */ -class AttachedClustersAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $admin_users; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdminUsers() - { - return $this->admin_users; - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdminUsers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedClusterUser::class); - $this->admin_users = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php deleted file mode 100644 index dcd909c8a16e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedClustersGrpcClient.php +++ /dev/null @@ -1,181 +0,0 @@ -_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAttachedClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAttachedClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Imports creates a new - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * by importing an existing Fleet Membership resource. - * - * Attached Clusters created before the introduction of the Anthos Multi-Cloud - * API can be imported through this method. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\ImportAttachedClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ImportAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\ImportAttachedClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAttachedClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\GetAttachedClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] - * resources on a given Google Cloud project and region. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAttachedClusters(\Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAttachedClustersResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAttachedClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAttachedCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAttachedClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Returns information, such as supported Kubernetes versions, on a given - * Google Cloud location. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAttachedServerConfigRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAttachedServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAttachedServerConfigRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AttachedServerConfig', 'decode'], - $metadata, $options); - } - - /** - * Generates the install manifest to be installed on the target cluster. - * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GenerateAttachedClusterInstallManifest(\Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php deleted file mode 100644 index 82a830dd5f33..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedOidcConfig.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.gkemulticloud.v1.AttachedOidcConfig - */ -class AttachedOidcConfig extends \Google\Protobuf\Internal\Message -{ - /** - * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. - * - * Generated from protobuf field string issuer_url = 1; - */ - protected $issuer_url = ''; - /** - * Optional. OIDC verification keys in JWKS format (RFC 7517). - * It contains a list of OIDC verification keys that can be used to verify - * OIDC JWTs. - * This field is required for cluster that doesn't have a publicly available - * discovery endpoint. When provided, it will be directly used - * to verify the OIDC JWT asserted by the IDP. - * - * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $jwks = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $issuer_url - * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. - * @type string $jwks - * Optional. OIDC verification keys in JWKS format (RFC 7517). - * It contains a list of OIDC verification keys that can be used to verify - * OIDC JWTs. - * This field is required for cluster that doesn't have a publicly available - * discovery endpoint. When provided, it will be directly used - * to verify the OIDC JWT asserted by the IDP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); - parent::__construct($data); - } - - /** - * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. - * - * Generated from protobuf field string issuer_url = 1; - * @return string - */ - public function getIssuerUrl() - { - return $this->issuer_url; - } - - /** - * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. - * - * Generated from protobuf field string issuer_url = 1; - * @param string $var - * @return $this - */ - public function setIssuerUrl($var) - { - GPBUtil::checkString($var, True); - $this->issuer_url = $var; - - return $this; - } - - /** - * Optional. OIDC verification keys in JWKS format (RFC 7517). - * It contains a list of OIDC verification keys that can be used to verify - * OIDC JWTs. - * This field is required for cluster that doesn't have a publicly available - * discovery endpoint. When provided, it will be directly used - * to verify the OIDC JWT asserted by the IDP. - * - * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getJwks() - { - return $this->jwks; - } - - /** - * Optional. OIDC verification keys in JWKS format (RFC 7517). - * It contains a list of OIDC verification keys that can be used to verify - * OIDC JWTs. - * This field is required for cluster that doesn't have a publicly available - * discovery endpoint. When provided, it will be directly used - * to verify the OIDC JWT asserted by the IDP. - * - * Generated from protobuf field bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setJwks($var) - { - GPBUtil::checkString($var, False); - $this->jwks = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php deleted file mode 100644 index a81ade67a335..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedPlatformVersionInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo - */ -class AttachedPlatformVersionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Platform version name. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Platform version name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); - parent::__construct($data); - } - - /** - * Platform version name. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Platform version name. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php deleted file mode 100644 index 3257fd12cab9..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AttachedServerConfig.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.gkemulticloud.v1.AttachedServerConfig - */ -class AttachedServerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the config. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * List of valid platform versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; - */ - private $valid_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the config. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions - * List of valid platform versions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedResources::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the config. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the config. - * - * 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; - } - - /** - * List of valid platform versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidVersions() - { - return $this->valid_versions; - } - - /** - * List of valid platform versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedPlatformVersionInfo::class); - $this->valid_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php deleted file mode 100644 index 02a19ba26a49..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAuthorization.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsAuthorization - */ -class AwsAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $admin_users; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdminUsers() - { - return $this->admin_users; - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterUser>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdminUsers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterUser::class); - $this->admin_users = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php deleted file mode 100644 index dddb1fd5dc97..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsAutoscalingGroupMetricsCollection.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection - */ -class AwsAutoscalingGroupMetricsCollection extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The frequency at which EC2 Auto Scaling sends aggregated data to - * AWS CloudWatch. The only valid value is "1Minute". - * - * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $granularity = ''; - /** - * Optional. The metrics to enable. For a list of valid metrics, see - * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. - * If you specify Granularity and don't specify any metrics, all metrics are - * enabled. - * - * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $granularity - * Required. The frequency at which EC2 Auto Scaling sends aggregated data to - * AWS CloudWatch. The only valid value is "1Minute". - * @type array|\Google\Protobuf\Internal\RepeatedField $metrics - * Optional. The metrics to enable. For a list of valid metrics, see - * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. - * If you specify Granularity and don't specify any metrics, all metrics are - * enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The frequency at which EC2 Auto Scaling sends aggregated data to - * AWS CloudWatch. The only valid value is "1Minute". - * - * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getGranularity() - { - return $this->granularity; - } - - /** - * Required. The frequency at which EC2 Auto Scaling sends aggregated data to - * AWS CloudWatch. The only valid value is "1Minute". - * - * Generated from protobuf field string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setGranularity($var) - { - GPBUtil::checkString($var, True); - $this->granularity = $var; - - return $this; - } - - /** - * Optional. The metrics to enable. For a list of valid metrics, see - * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. - * If you specify Granularity and don't specify any metrics, all metrics are - * enabled. - * - * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Optional. The metrics to enable. For a list of valid metrics, see - * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. - * If you specify Granularity and don't specify any metrics, all metrics are - * enabled. - * - * Generated from protobuf field repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php deleted file mode 100644 index b069eab6fc8b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster.php +++ /dev/null @@ -1,879 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsCluster - */ -class AwsCluster extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $networking = null; - /** - * Required. The AWS region where the cluster runs. - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * - * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_region = ''; - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $control_plane = null; - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorization = null; - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint = ''; - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - */ - protected $etag = ''; - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_identity_config = null; - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_ca_certificate = ''; - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $fleet = null; - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $logging_config = null; - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $monitoring_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type string $description - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking $networking - * Required. Cluster-wide networking configuration. - * @type string $aws_region - * Required. The AWS region where the cluster runs. - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane $control_plane - * Required. Configuration related to the cluster control plane. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization $authorization - * Required. Configuration related to the cluster RBAC settings. - * @type int $state - * Output only. The current state of the cluster. - * @type string $endpoint - * Output only. The endpoint of the cluster's API server. - * @type string $uid - * Output only. A globally unique identifier for the cluster. - * @type bool $reconciling - * Output only. If set, there are currently changes in flight to the cluster. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this cluster was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this cluster was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config - * Output only. Workload Identity settings. - * @type string $cluster_ca_certificate - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet - * Required. Fleet configuration. - * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config - * Optional. Logging configuration for this cluster. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config - * Optional. Monitoring configuration for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field 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; - } - - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking|null - */ - public function getNetworking() - { - return $this->networking; - } - - public function hasNetworking() - { - return isset($this->networking); - } - - public function clearNetworking() - { - unset($this->networking); - } - - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsClusterNetworking networking = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking $var - * @return $this - */ - public function setNetworking($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsClusterNetworking::class); - $this->networking = $var; - - return $this; - } - - /** - * Required. The AWS region where the cluster runs. - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * - * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAwsRegion() - { - return $this->aws_region; - } - - /** - * Required. The AWS region where the cluster runs. - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * - * Generated from protobuf field string aws_region = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAwsRegion($var) - { - GPBUtil::checkString($var, True); - $this->aws_region = $var; - - return $this; - } - - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane|null - */ - public function getControlPlane() - { - return $this->control_plane; - } - - public function hasControlPlane() - { - return isset($this->control_plane); - } - - public function clearControlPlane() - { - unset($this->control_plane); - } - - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane $var - * @return $this - */ - public function setControlPlane($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsControlPlane::class); - $this->control_plane = $var; - - return $this; - } - - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization|null - */ - public function getAuthorization() - { - return $this->authorization; - } - - public function hasAuthorization() - { - return isset($this->authorization); - } - - public function clearAuthorization() - { - unset($this->authorization); - } - - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAuthorization authorization = 15 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization $var - * @return $this - */ - public function setAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAuthorization::class); - $this->authorization = $var; - - return $this; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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 at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null - */ - public function getWorkloadIdentityConfig() - { - return $this->workload_identity_config; - } - - public function hasWorkloadIdentityConfig() - { - return isset($this->workload_identity_config); - } - - public function clearWorkloadIdentityConfig() - { - unset($this->workload_identity_config); - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); - $this->workload_identity_config = $var; - - return $this; - } - - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClusterCaCertificate() - { - return $this->cluster_ca_certificate; - } - - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClusterCaCertificate($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ca_certificate = $var; - - return $this; - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null - */ - public function getFleet() - { - return $this->fleet; - } - - public function hasFleet() - { - return isset($this->fleet); - } - - public function clearFleet() - { - unset($this->fleet); - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var - * @return $this - */ - public function setFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); - $this->fleet = $var; - - return $this; - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsClusterError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsClusterError::class); - $this->errors = $arr; - - return $this; - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null - */ - public function getMonitoringConfig() - { - return $this->monitoring_config; - } - - public function hasMonitoringConfig() - { - return isset($this->monitoring_config); - } - - public function clearMonitoringConfig() - { - unset($this->monitoring_config); - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php deleted file mode 100644 index 59e416b25a7b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster/State.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsCluster.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the cluster is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the cluster has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading the control plane replicas. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the cluster is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the cluster is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the cluster requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AwsCluster_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php deleted file mode 100644 index f40a291a78f8..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterError.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsClusterError - */ -class AwsClusterError extends \Google\Protobuf\Internal\Message -{ - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Human-friendly description of the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php deleted file mode 100644 index f4b4ded352a1..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterNetworking.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsClusterNetworking - */ -class AwsClusterNetworking extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * This field cannot be changed after creation. - * - * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vpc_id = ''; - /** - * Required. All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $pod_address_cidr_blocks; - /** - * Required. All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $service_address_cidr_blocks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $vpc_id - * Required. The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * This field cannot be changed after creation. - * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks - * Required. All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks - * Required. All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * This field cannot be changed after creation. - * - * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVpcId() - { - return $this->vpc_id; - } - - /** - * Required. The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * This field cannot be changed after creation. - * - * Generated from protobuf field string vpc_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVpcId($var) - { - GPBUtil::checkString($var, True); - $this->vpc_id = $var; - - return $this; - } - - /** - * Required. All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPodAddressCidrBlocks() - { - return $this->pod_address_cidr_blocks; - } - - /** - * Required. All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPodAddressCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pod_address_cidr_blocks = $arr; - - return $this; - } - - /** - * Required. All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAddressCidrBlocks() - { - return $this->service_address_cidr_blocks; - } - - /** - * Required. All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAddressCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_address_cidr_blocks = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php deleted file mode 100644 index 005bd094c801..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsClusterUser.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsClusterUser - */ -class AwsClusterUser extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $username = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php deleted file mode 100644 index 5b0cb23eabe2..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsCluster_State.php +++ /dev/null @@ -1,16 +0,0 @@ -_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAwsClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAwsCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAwsCluster(\Google\Cloud\GkeMultiCloud\V1\GetAwsClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AwsCluster', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * on a given Google Cloud project and region. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAwsClusters(\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAwsClustersResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource. - * - * Fails if the cluster has one or more associated - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAwsClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAwsCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAwsClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Generates a short-lived access token to authenticate to a given - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GenerateAwsAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], - * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\CreateAwsNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\CreateAwsNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAwsNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAwsNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources on a given - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAwsNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAwsNodePoolsResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAwsNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAwsNodePool(\Google\Cloud\GkeMultiCloud\V1\DeleteAwsNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Returns information, such as supported AWS regions and Kubernetes - * versions, on a given Google Cloud location. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAwsServerConfigRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAwsServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAwsServerConfigRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AwsServerConfig', 'decode'], - $metadata, $options); - } - -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php deleted file mode 100644 index ed4be8aef12a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsConfigEncryption.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsConfigEncryption - */ -class AwsConfigEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ARN of the AWS KMS key used to encrypt user data. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $kms_key_arn = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key_arn - * Required. The ARN of the AWS KMS key used to encrypt user data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt user data. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKmsKeyArn() - { - return $this->kms_key_arn; - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt user data. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKmsKeyArn($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_arn = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php deleted file mode 100644 index 826ee8af1a67..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsControlPlane.php +++ /dev/null @@ -1,693 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsControlPlane - */ -class AwsControlPlane extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = ''; - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the cluster's version. - * - * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_type = ''; - /** - * Optional. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssh_config = null; - /** - * Required. The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * - * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $subnet_ids; - /** - * Optional. The IDs of additional security groups to add to control plane - * replicas. The Anthos Multi-Cloud API will automatically create and manage - * security groups with the minimum rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $security_group_ids; - /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * - * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $iam_instance_profile = ''; - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $root_volume = null; - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 8 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $main_volume = null; - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_encryption = null; - /** - * Optional. A set of AWS resource tags to propagate to all underlying managed - * AWS resources. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Required. Authentication configuration for management of AWS resources. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_services_authentication = null; - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_config = null; - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config_encryption = null; - /** - * Optional. The placement to use on control plane instances. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_placement = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @type string $instance_type - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the cluster's version. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config - * Optional. SSH configuration for how to access the underlying control plane - * machines. - * @type array|\Google\Protobuf\Internal\RepeatedField $subnet_ids - * Required. The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids - * Optional. The IDs of additional security groups to add to control plane - * replicas. The Anthos Multi-Cloud API will automatically create and manage - * security groups with the minimum rules needed for a functioning cluster. - * @type string $iam_instance_profile - * Required. The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $main_volume - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 8 GiB with the GP2 volume type. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $database_encryption - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of AWS resource tags to propagate to all underlying managed - * AWS resources. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication $aws_services_authentication - * Required. Authentication configuration for management of AWS resources. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption - * Required. Config encryption for user data. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement - * Optional. The placement to use on control plane instances. - * When unspecified, the VPC's default tenancy will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the cluster's version. - * - * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getInstanceType() - { - return $this->instance_type; - } - - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the cluster's version. - * - * Generated from protobuf field string instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setInstanceType($var) - { - GPBUtil::checkString($var, True); - $this->instance_type = $var; - - return $this; - } - - /** - * Optional. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null - */ - public function getSshConfig() - { - return $this->ssh_config; - } - - public function hasSshConfig() - { - return isset($this->ssh_config); - } - - public function clearSshConfig() - { - unset($this->ssh_config); - } - - /** - * Optional. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $var - * @return $this - */ - public function setSshConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig::class); - $this->ssh_config = $var; - - return $this; - } - - /** - * Required. The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * - * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubnetIds() - { - return $this->subnet_ids; - } - - /** - * Required. The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * - * Generated from protobuf field repeated string subnet_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubnetIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->subnet_ids = $arr; - - return $this; - } - - /** - * Optional. The IDs of additional security groups to add to control plane - * replicas. The Anthos Multi-Cloud API will automatically create and manage - * security groups with the minimum rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecurityGroupIds() - { - return $this->security_group_ids; - } - - /** - * Optional. The IDs of additional security groups to add to control plane - * replicas. The Anthos Multi-Cloud API will automatically create and manage - * security groups with the minimum rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecurityGroupIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->security_group_ids = $arr; - - return $this; - } - - /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * - * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getIamInstanceProfile() - { - return $this->iam_instance_profile; - } - - /** - * Required. The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * - * Generated from protobuf field string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setIamInstanceProfile($var) - { - GPBUtil::checkString($var, True); - $this->iam_instance_profile = $var; - - return $this; - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null - */ - public function getRootVolume() - { - return $this->root_volume; - } - - public function hasRootVolume() - { - return isset($this->root_volume); - } - - public function clearRootVolume() - { - unset($this->root_volume); - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var - * @return $this - */ - public function setRootVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); - $this->root_volume = $var; - - return $this; - } - - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 8 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null - */ - public function getMainVolume() - { - return $this->main_volume; - } - - public function hasMainVolume() - { - return isset($this->main_volume); - } - - public function clearMainVolume() - { - unset($this->main_volume); - } - - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * Volumes will be provisioned in the availability zone associated - * with the corresponding subnet. - * When unspecified, it defaults to 8 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate main_volume = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var - * @return $this - */ - public function setMainVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); - $this->main_volume = $var; - - return $this; - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption|null - */ - public function getDatabaseEncryption() - { - return $this->database_encryption; - } - - public function hasDatabaseEncryption() - { - return isset($this->database_encryption); - } - - public function clearDatabaseEncryption() - { - unset($this->database_encryption); - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption $var - * @return $this - */ - public function setDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption::class); - $this->database_encryption = $var; - - return $this; - } - - /** - * Optional. A set of AWS resource tags to propagate to all underlying managed - * AWS resources. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A set of AWS resource tags to propagate to all underlying managed - * AWS resources. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Required. Authentication configuration for management of AWS resources. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication|null - */ - public function getAwsServicesAuthentication() - { - return $this->aws_services_authentication; - } - - public function hasAwsServicesAuthentication() - { - return isset($this->aws_services_authentication); - } - - public function clearAwsServicesAuthentication() - { - unset($this->aws_services_authentication); - } - - /** - * Required. Authentication configuration for management of AWS resources. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsServicesAuthentication aws_services_authentication = 12 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication $var - * @return $this - */ - public function setAwsServicesAuthentication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication::class); - $this->aws_services_authentication = $var; - - return $this; - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null - */ - public function getProxyConfig() - { - return $this->proxy_config; - } - - public function hasProxyConfig() - { - return isset($this->proxy_config); - } - - public function clearProxyConfig() - { - unset($this->proxy_config); - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $var - * @return $this - */ - public function setProxyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig::class); - $this->proxy_config = $var; - - return $this; - } - - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null - */ - public function getConfigEncryption() - { - return $this->config_encryption; - } - - public function hasConfigEncryption() - { - return isset($this->config_encryption); - } - - public function clearConfigEncryption() - { - unset($this->config_encryption); - } - - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 17 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $var - * @return $this - */ - public function setConfigEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption::class); - $this->config_encryption = $var; - - return $this; - } - - /** - * Optional. The placement to use on control plane instances. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null - */ - public function getInstancePlacement() - { - return $this->instance_placement; - } - - public function hasInstancePlacement() - { - return isset($this->instance_placement); - } - - public function clearInstancePlacement() - { - unset($this->instance_placement); - } - - /** - * Optional. The placement to use on control plane instances. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $var - * @return $this - */ - public function setInstancePlacement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement::class); - $this->instance_placement = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php deleted file mode 100644 index e7e0ce60bd12..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsDatabaseEncryption.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsDatabaseEncryption - */ -class AwsDatabaseEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $kms_key_arn = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key_arn - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKmsKeyArn() - { - return $this->kms_key_arn; - } - - /** - * Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - * - * Generated from protobuf field string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKmsKeyArn($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_arn = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php deleted file mode 100644 index e2eccd85ae67..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsInstancePlacement - */ -class AwsInstancePlacement extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The tenancy for instance. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $tenancy = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $tenancy - * Required. The tenancy for instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The tenancy for instance. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getTenancy() - { - return $this->tenancy; - } - - /** - * Required. The tenancy for instance. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setTenancy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement\Tenancy::class); - $this->tenancy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php deleted file mode 100644 index 7c147a1fef41..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement/Tenancy.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy - */ -class Tenancy -{ - /** - * Not set. - * - * Generated from protobuf enum TENANCY_UNSPECIFIED = 0; - */ - const TENANCY_UNSPECIFIED = 0; - /** - * Use default VPC tenancy. - * - * Generated from protobuf enum DEFAULT = 1; - */ - const PBDEFAULT = 1; - /** - * Run a dedicated instance. - * - * Generated from protobuf enum DEDICATED = 2; - */ - const DEDICATED = 2; - /** - * Launch this instance to a dedicated host. - * - * Generated from protobuf enum HOST = 3; - */ - const HOST = 3; - - private static $valueToName = [ - self::TENANCY_UNSPECIFIED => 'TENANCY_UNSPECIFIED', - self::PBDEFAULT => 'DEFAULT', - self::DEDICATED => 'DEDICATED', - self::HOST => 'HOST', - ]; - - 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(Tenancy::class, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement_Tenancy::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php deleted file mode 100644 index 1c6525314c65..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsInstancePlacement_Tenancy.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsK8sVersionInfo - */ -class AwsK8sVersionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Kubernetes version name. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Kubernetes version name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Kubernetes version name. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Kubernetes version name. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php deleted file mode 100644 index 453635f072b7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodeConfig.php +++ /dev/null @@ -1,607 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodeConfig - */ -class AwsNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the node pool's version. - * - * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_type = ''; - /** - * Optional. Template for the root volume provisioned for node pool nodes. - * Volumes will be provisioned in the availability zone assigned - * to the node pool subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $root_volume = null; - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $taints; - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Key/value metadata to assign to each underlying AWS resource. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * - * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $iam_instance_profile = ''; - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image_type = ''; - /** - * Optional. The SSH configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssh_config = null; - /** - * Optional. The IDs of additional security groups to add to nodes in this - * pool. The manager will automatically create security groups with minimum - * rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $security_group_ids; - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_config = null; - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config_encryption = null; - /** - * Optional. Placement related info for this node. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_placement = null; - /** - * Optional. Configuration related to CloudWatch metrics collection on the - * Auto Scaling group of the node pool. - * When unspecified, metrics collection is disabled. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $autoscaling_metrics_collection = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $instance_type - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the node pool's version. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $root_volume - * Optional. Template for the root volume provisioned for node pool nodes. - * Volumes will be provisioned in the availability zone assigned - * to the node pool subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * @type array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * Optional. The initial taints assigned to nodes of this node pool. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. Key/value metadata to assign to each underlying AWS resource. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * @type string $iam_instance_profile - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * @type string $image_type - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $ssh_config - * Optional. The SSH configuration. - * @type array|\Google\Protobuf\Internal\RepeatedField $security_group_ids - * Optional. The IDs of additional security groups to add to nodes in this - * pool. The manager will automatically create security groups with minimum - * rules needed for a functioning cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $proxy_config - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $config_encryption - * Required. Config encryption for user data. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $instance_placement - * Optional. Placement related info for this node. - * When unspecified, the VPC's default tenancy will be used. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $autoscaling_metrics_collection - * Optional. Configuration related to CloudWatch metrics collection on the - * Auto Scaling group of the node pool. - * When unspecified, metrics collection is disabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the node pool's version. - * - * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getInstanceType() - { - return $this->instance_type; - } - - /** - * Optional. The AWS instance type. - * When unspecified, it uses a default based on the node pool's version. - * - * Generated from protobuf field string instance_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setInstanceType($var) - { - GPBUtil::checkString($var, True); - $this->instance_type = $var; - - return $this; - } - - /** - * Optional. Template for the root volume provisioned for node pool nodes. - * Volumes will be provisioned in the availability zone assigned - * to the node pool subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null - */ - public function getRootVolume() - { - return $this->root_volume; - } - - public function hasRootVolume() - { - return isset($this->root_volume); - } - - public function clearRootVolume() - { - unset($this->root_volume); - } - - /** - * Optional. Template for the root volume provisioned for node pool nodes. - * Volumes will be provisioned in the availability zone assigned - * to the node pool subnet. - * When unspecified, it defaults to 32 GiB with the GP2 volume type. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate $var - * @return $this - */ - public function setRootVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate::class); - $this->root_volume = $var; - - return $this; - } - - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.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; - } - - /** - * Optional. Key/value metadata to assign to each underlying AWS resource. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. Key/value metadata to assign to each underlying AWS resource. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * - * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getIamInstanceProfile() - { - return $this->iam_instance_profile; - } - - /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * - * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setIamInstanceProfile($var) - { - GPBUtil::checkString($var, True); - $this->iam_instance_profile = $var; - - return $this; - } - - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * Optional. The SSH configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null - */ - public function getSshConfig() - { - return $this->ssh_config; - } - - public function hasSshConfig() - { - return isset($this->ssh_config); - } - - public function clearSshConfig() - { - unset($this->ssh_config); - } - - /** - * Optional. The SSH configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsSshConfig ssh_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig $var - * @return $this - */ - public function setSshConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsSshConfig::class); - $this->ssh_config = $var; - - return $this; - } - - /** - * Optional. The IDs of additional security groups to add to nodes in this - * pool. The manager will automatically create security groups with minimum - * rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecurityGroupIds() - { - return $this->security_group_ids; - } - - /** - * Optional. The IDs of additional security groups to add to nodes in this - * pool. The manager will automatically create security groups with minimum - * rules needed for a functioning cluster. - * - * Generated from protobuf field repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecurityGroupIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->security_group_ids = $arr; - - return $this; - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null - */ - public function getProxyConfig() - { - return $this->proxy_config; - } - - public function hasProxyConfig() - { - return isset($this->proxy_config); - } - - public function clearProxyConfig() - { - unset($this->proxy_config); - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig $var - * @return $this - */ - public function setProxyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig::class); - $this->proxy_config = $var; - - return $this; - } - - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null - */ - public function getConfigEncryption() - { - return $this->config_encryption; - } - - public function hasConfigEncryption() - { - return isset($this->config_encryption); - } - - public function clearConfigEncryption() - { - unset($this->config_encryption); - } - - /** - * Required. Config encryption for user data. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsConfigEncryption config_encryption = 13 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption $var - * @return $this - */ - public function setConfigEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption::class); - $this->config_encryption = $var; - - return $this; - } - - /** - * Optional. Placement related info for this node. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null - */ - public function getInstancePlacement() - { - return $this->instance_placement; - } - - public function hasInstancePlacement() - { - return isset($this->instance_placement); - } - - public function clearInstancePlacement() - { - unset($this->instance_placement); - } - - /** - * Optional. Placement related info for this node. - * When unspecified, the VPC's default tenancy will be used. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsInstancePlacement instance_placement = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement $var - * @return $this - */ - public function setInstancePlacement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement::class); - $this->instance_placement = $var; - - return $this; - } - - /** - * Optional. Configuration related to CloudWatch metrics collection on the - * Auto Scaling group of the node pool. - * When unspecified, metrics collection is disabled. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection|null - */ - public function getAutoscalingMetricsCollection() - { - return $this->autoscaling_metrics_collection; - } - - public function hasAutoscalingMetricsCollection() - { - return isset($this->autoscaling_metrics_collection); - } - - public function clearAutoscalingMetricsCollection() - { - unset($this->autoscaling_metrics_collection); - } - - /** - * Optional. Configuration related to CloudWatch metrics collection on the - * Auto Scaling group of the node pool. - * When unspecified, metrics collection is disabled. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection $var - * @return $this - */ - public function setAutoscalingMetricsCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsAutoscalingGroupMetricsCollection::class); - $this->autoscaling_metrics_collection = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php deleted file mode 100644 index 2c71f5573170..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool.php +++ /dev/null @@ -1,639 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodePool - */ -class AwsNodePool extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = ''; - /** - * Required. The configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling = null; - /** - * Required. The subnet where the node pool node run. - * - * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet_id = ''; - /** - * Output only. The lifecycle state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently changes in flight to the node - * pool. - * - * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this node pool was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this node pool was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 21; - */ - protected $etag = ''; - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_pods_constraint = null; - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * @type string $version - * Required. The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig $config - * Required. The configuration of the node pool. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling $autoscaling - * Required. Autoscaler configuration for this node pool. - * @type string $subnet_id - * Required. The subnet where the node pool node run. - * @type int $state - * Output only. The lifecycle state of the node pool. - * @type string $uid - * Output only. A globally unique identifier for the node pool. - * @type bool $reconciling - * Output only. If set, there are currently changes in flight to the node - * pool. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this node pool was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this node pool was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * 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; - } - - /** - * Required. The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Required. The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Required. The configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. The configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * Required. The subnet where the node pool node run. - * - * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Required. The subnet where the node pool node run. - * - * Generated from protobuf field string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Output only. The lifecycle state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The lifecycle state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently changes in flight to the node - * pool. - * - * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently changes in flight to the node - * pool. - * - * Generated from protobuf field bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this node pool was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.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 at which this node pool was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 19 [(.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 at which this node pool was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.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 at which this node pool was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 20 [(.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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 21; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 21; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Key can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint|null - */ - public function getMaxPodsConstraint() - { - return $this->max_pods_constraint; - } - - public function hasMaxPodsConstraint() - { - return isset($this->max_pods_constraint); - } - - public function clearMaxPodsConstraint() - { - unset($this->max_pods_constraint); - } - - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint::class); - $this->max_pods_constraint = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePoolError::class); - $this->errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php deleted file mode 100644 index 6c57e22b0028..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool/State.php +++ /dev/null @@ -1,95 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodePool.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the node pool is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the node pool has been created - * and is fully usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that the node pool is being reconciled. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the node pool is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the node pool is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the node pool requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AwsNodePool_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php deleted file mode 100644 index fa2cda6ccf53..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolAutoscaling.php +++ /dev/null @@ -1,110 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling - */ -class AwsNodePoolAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $min_node_count = 0; - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $min_node_count - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * @type int $max_node_count - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMinNodeCount() - { - return $this->min_node_count; - } - - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->min_node_count = $var; - - return $this; - } - - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMaxNodeCount() - { - return $this->max_node_count; - } - - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->max_node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php deleted file mode 100644 index c5a04b7d3934..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePoolError.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsNodePoolError - */ -class AwsNodePoolError extends \Google\Protobuf\Internal\Message -{ - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Human-friendly description of the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php deleted file mode 100644 index 2e4dbf88c811..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsNodePool_State.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsProxyConfig - */ -class AwsProxyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy - * configuration. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file - * - * Generated from protobuf field string secret_arn = 1; - */ - protected $secret_arn = ''; - /** - * The version string of the AWS Secret Manager secret that contains the - * HTTP(S) proxy configuration. - * - * Generated from protobuf field string secret_version = 2; - */ - protected $secret_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $secret_arn - * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy - * configuration. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file - * @type string $secret_version - * The version string of the AWS Secret Manager secret that contains the - * HTTP(S) proxy configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy - * configuration. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file - * - * Generated from protobuf field string secret_arn = 1; - * @return string - */ - public function getSecretArn() - { - return $this->secret_arn; - } - - /** - * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy - * configuration. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file - * - * Generated from protobuf field string secret_arn = 1; - * @param string $var - * @return $this - */ - public function setSecretArn($var) - { - GPBUtil::checkString($var, True); - $this->secret_arn = $var; - - return $this; - } - - /** - * The version string of the AWS Secret Manager secret that contains the - * HTTP(S) proxy configuration. - * - * Generated from protobuf field string secret_version = 2; - * @return string - */ - public function getSecretVersion() - { - return $this->secret_version; - } - - /** - * The version string of the AWS Secret Manager secret that contains the - * HTTP(S) proxy configuration. - * - * Generated from protobuf field string secret_version = 2; - * @param string $var - * @return $this - */ - public function setSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->secret_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php deleted file mode 100644 index c00bfe0636c7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServerConfig.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsServerConfig - */ -class AwsServerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the config. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; - */ - private $valid_versions; - /** - * The list of supported AWS regions. - * - * Generated from protobuf field repeated string supported_aws_regions = 3; - */ - private $supported_aws_regions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the config. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions - * List of valid Kubernetes versions. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_aws_regions - * The list of supported AWS regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the config. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the config. - * - * 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; - } - - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidVersions() - { - return $this->valid_versions; - } - - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsK8sVersionInfo valid_versions = 2; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsK8sVersionInfo::class); - $this->valid_versions = $arr; - - return $this; - } - - /** - * The list of supported AWS regions. - * - * Generated from protobuf field repeated string supported_aws_regions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedAwsRegions() - { - return $this->supported_aws_regions; - } - - /** - * The list of supported AWS regions. - * - * Generated from protobuf field repeated string supported_aws_regions = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedAwsRegions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->supported_aws_regions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php deleted file mode 100644 index cef249ad091f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsServicesAuthentication.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsServicesAuthentication - */ -class AwsServicesAuthentication extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * - * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $role_arn = ''; - /** - * Optional. An identifier for the assumed role session. - * When unspecified, it defaults to `multicloud-service-agent`. - * - * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $role_session_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $role_arn - * Required. The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * @type string $role_session_name - * Optional. An identifier for the assumed role session. - * When unspecified, it defaults to `multicloud-service-agent`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * - * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRoleArn() - { - return $this->role_arn; - } - - /** - * Required. The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * - * Generated from protobuf field string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRoleArn($var) - { - GPBUtil::checkString($var, True); - $this->role_arn = $var; - - return $this; - } - - /** - * Optional. An identifier for the assumed role session. - * When unspecified, it defaults to `multicloud-service-agent`. - * - * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRoleSessionName() - { - return $this->role_session_name; - } - - /** - * Optional. An identifier for the assumed role session. - * When unspecified, it defaults to `multicloud-service-agent`. - * - * Generated from protobuf field string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRoleSessionName($var) - { - GPBUtil::checkString($var, True); - $this->role_session_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php deleted file mode 100644 index a3e356328b16..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsSshConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsSshConfig - */ -class AwsSshConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the EC2 key pair used to login into cluster machines. - * - * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ec2_key_pair = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ec2_key_pair - * Required. The name of the EC2 key pair used to login into cluster machines. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the EC2 key pair used to login into cluster machines. - * - * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEc2KeyPair() - { - return $this->ec2_key_pair; - } - - /** - * Required. The name of the EC2 key pair used to login into cluster machines. - * - * Generated from protobuf field string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEc2KeyPair($var) - { - GPBUtil::checkString($var, True); - $this->ec2_key_pair = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php deleted file mode 100644 index 99028858b4e9..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsVolumeTemplate - */ -class AwsVolumeTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The size of the volume, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $size_gib = 0; - /** - * Optional. Type of the EBS volume. - * When unspecified, it defaults to GP2 volume. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $volume_type = 0; - /** - * Optional. The number of I/O operations per second (IOPS) to provision for - * GP3 volume. - * - * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $iops = 0; - /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) - * used to encrypt AWS EBS volumes. - * If not specified, the default Amazon managed key associated to - * the AWS region where this cluster runs will be used. - * - * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $kms_key_arn = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $size_gib - * Optional. The size of the volume, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * @type int $volume_type - * Optional. Type of the EBS volume. - * When unspecified, it defaults to GP2 volume. - * @type int $iops - * Optional. The number of I/O operations per second (IOPS) to provision for - * GP3 volume. - * @type string $kms_key_arn - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) - * used to encrypt AWS EBS volumes. - * If not specified, the default Amazon managed key associated to - * the AWS region where this cluster runs will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The size of the volume, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSizeGib() - { - return $this->size_gib; - } - - /** - * Optional. The size of the volume, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSizeGib($var) - { - GPBUtil::checkInt32($var); - $this->size_gib = $var; - - return $this; - } - - /** - * Optional. Type of the EBS volume. - * When unspecified, it defaults to GP2 volume. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getVolumeType() - { - return $this->volume_type; - } - - /** - * Optional. Type of the EBS volume. - * When unspecified, it defaults to GP2 volume. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setVolumeType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate\VolumeType::class); - $this->volume_type = $var; - - return $this; - } - - /** - * Optional. The number of I/O operations per second (IOPS) to provision for - * GP3 volume. - * - * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getIops() - { - return $this->iops; - } - - /** - * Optional. The number of I/O operations per second (IOPS) to provision for - * GP3 volume. - * - * Generated from protobuf field int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setIops($var) - { - GPBUtil::checkInt32($var); - $this->iops = $var; - - return $this; - } - - /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) - * used to encrypt AWS EBS volumes. - * If not specified, the default Amazon managed key associated to - * the AWS region where this cluster runs will be used. - * - * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKmsKeyArn() - { - return $this->kms_key_arn; - } - - /** - * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) - * used to encrypt AWS EBS volumes. - * If not specified, the default Amazon managed key associated to - * the AWS region where this cluster runs will be used. - * - * Generated from protobuf field string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKmsKeyArn($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_arn = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php deleted file mode 100644 index 8a88654de373..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate/VolumeType.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType - */ -class VolumeType -{ - /** - * Not set. - * - * Generated from protobuf enum VOLUME_TYPE_UNSPECIFIED = 0; - */ - const VOLUME_TYPE_UNSPECIFIED = 0; - /** - * GP2 (General Purpose SSD volume type). - * - * Generated from protobuf enum GP2 = 1; - */ - const GP2 = 1; - /** - * GP3 (General Purpose SSD volume type). - * - * Generated from protobuf enum GP3 = 2; - */ - const GP3 = 2; - - private static $valueToName = [ - self::VOLUME_TYPE_UNSPECIFIED => 'VOLUME_TYPE_UNSPECIFIED', - self::GP2 => 'GP2', - self::GP3 => 'GP3', - ]; - - 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(VolumeType::class, \Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate_VolumeType::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php deleted file mode 100644 index dc53da62729d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AwsVolumeTemplate_VolumeType.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureAuthorization - */ -class AzureAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $admin_users; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterUser>|\Google\Protobuf\Internal\RepeatedField $admin_users - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdminUsers() - { - return $this->admin_users; - } - - /** - * Required. Users that can perform operations as a cluster admin. A managed - * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole - * to the users. Up to ten admin users can be provided. - * For more info on RBAC, see - * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterUser>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdminUsers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterUser::class); - $this->admin_users = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php deleted file mode 100644 index 0b11e8856493..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClient.php +++ /dev/null @@ -1,333 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClient - */ -class AzureClient extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * `AzureClient` resource names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The Azure Active Directory Tenant ID. - * - * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $tenant_id = ''; - /** - * Required. The Azure Active Directory Application ID. - * - * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $application_id = ''; - /** - * Optional. Annotations on the resource. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Output only. The PEM encoded x509 certificate. - * - * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pem_certificate = ''; - /** - * Output only. A globally unique identifier for the client. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time at which this resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * `AzureClient` resource names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type string $tenant_id - * Required. The Azure Active Directory Tenant ID. - * @type string $application_id - * Required. The Azure Active Directory Application ID. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the resource. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type string $pem_certificate - * Output only. The PEM encoded x509 certificate. - * @type string $uid - * Output only. A globally unique identifier for the client. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this resource was created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * `AzureClient` resource names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * `AzureClient` resource names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * Required. The Azure Active Directory Tenant ID. - * - * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Required. The Azure Active Directory Tenant ID. - * - * Generated from protobuf field string tenant_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Required. The Azure Active Directory Application ID. - * - * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Required. The Azure Active Directory Application ID. - * - * Generated from protobuf field string application_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Optional. Annotations on the resource. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the resource. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. The PEM encoded x509 certificate. - * - * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPemCertificate() - { - return $this->pem_certificate; - } - - /** - * Output only. The PEM encoded x509 certificate. - * - * Generated from protobuf field string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPemCertificate($var) - { - GPBUtil::checkString($var, True); - $this->pem_certificate = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the client. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the client. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time at which this resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 at which this resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php deleted file mode 100644 index 017ffe4961e7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster.php +++ /dev/null @@ -1,1035 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureCluster - */ -class AzureCluster extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The Azure region where the cluster runs. - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * - * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_region = ''; - /** - * Required. The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * - * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_group_id = ''; - /** - * Required. Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_client = ''; - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $networking = null; - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $control_plane = null; - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorization = null; - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint = ''; - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - */ - protected $etag = ''; - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_identity_config = null; - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_ca_certificate = ''; - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $fleet = null; - /** - * Output only. Managed Azure resources for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $managed_resources = null; - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $logging_config = null; - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $monitoring_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type string $description - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * @type string $azure_region - * Required. The Azure region where the cluster runs. - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * @type string $resource_group_id - * Required. The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * @type string $azure_client - * Required. Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking $networking - * Required. Cluster-wide networking configuration. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane $control_plane - * Required. Configuration related to the cluster control plane. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization $authorization - * Required. Configuration related to the cluster RBAC settings. - * @type int $state - * Output only. The current state of the cluster. - * @type string $endpoint - * Output only. The endpoint of the cluster's API server. - * @type string $uid - * Output only. A globally unique identifier for the cluster. - * @type bool $reconciling - * Output only. If set, there are currently changes in flight to the cluster. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this cluster was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this cluster was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $workload_identity_config - * Output only. Workload Identity settings. - * @type string $cluster_ca_certificate - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * @type \Google\Cloud\GkeMultiCloud\V1\Fleet $fleet - * Required. Fleet configuration. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $managed_resources - * Output only. Managed Azure resources for this cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $logging_config - * Optional. Logging configuration for this cluster. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the cluster. - * @type \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $monitoring_config - * Optional. Monitoring configuration for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Cluster names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A human readable description of this cluster. - * Cannot be longer than 255 UTF-8 encoded bytes. - * - * Generated from protobuf field 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; - } - - /** - * Required. The Azure region where the cluster runs. - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * - * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureRegion() - { - return $this->azure_region; - } - - /** - * Required. The Azure region where the cluster runs. - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * - * Generated from protobuf field string azure_region = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureRegion($var) - { - GPBUtil::checkString($var, True); - $this->azure_region = $var; - - return $this; - } - - /** - * Required. The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * - * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResourceGroupId() - { - return $this->resource_group_id; - } - - /** - * Required. The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * - * Generated from protobuf field string resource_group_id = 17 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResourceGroupId($var) - { - GPBUtil::checkString($var, True); - $this->resource_group_id = $var; - - return $this; - } - - /** - * Required. Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureClient() - { - return $this->azure_client; - } - - /** - * Required. Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_client = 16 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureClient($var) - { - GPBUtil::checkString($var, True); - $this->azure_client = $var; - - return $this; - } - - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking|null - */ - public function getNetworking() - { - return $this->networking; - } - - public function hasNetworking() - { - return isset($this->networking); - } - - public function clearNetworking() - { - unset($this->networking); - } - - /** - * Required. Cluster-wide networking configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterNetworking networking = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking $var - * @return $this - */ - public function setNetworking($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClusterNetworking::class); - $this->networking = $var; - - return $this; - } - - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane|null - */ - public function getControlPlane() - { - return $this->control_plane; - } - - public function hasControlPlane() - { - return isset($this->control_plane); - } - - public function clearControlPlane() - { - unset($this->control_plane); - } - - /** - * Required. Configuration related to the cluster control plane. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureControlPlane control_plane = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane $var - * @return $this - */ - public function setControlPlane($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureControlPlane::class); - $this->control_plane = $var; - - return $this; - } - - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization|null - */ - public function getAuthorization() - { - return $this->authorization; - } - - public function hasAuthorization() - { - return isset($this->authorization); - } - - public function clearAuthorization() - { - unset($this->authorization); - } - - /** - * Required. Configuration related to the cluster RBAC settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureAuthorization authorization = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization $var - * @return $this - */ - public function setAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureAuthorization::class); - $this->authorization = $var; - - return $this; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Output only. The endpoint of the cluster's API server. - * - * Generated from protobuf field string endpoint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the cluster. - * - * Generated from protobuf field string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently changes in flight to the cluster. - * - * Generated from protobuf field bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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 at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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 at which this cluster was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 13; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the cluster. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig|null - */ - public function getWorkloadIdentityConfig() - { - return $this->workload_identity_config; - } - - public function hasWorkloadIdentityConfig() - { - return isset($this->workload_identity_config); - } - - public function clearWorkloadIdentityConfig() - { - unset($this->workload_identity_config); - } - - /** - * Output only. Workload Identity settings. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\WorkloadIdentityConfig::class); - $this->workload_identity_config = $var; - - return $this; - } - - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClusterCaCertificate() - { - return $this->cluster_ca_certificate; - } - - /** - * Output only. PEM encoded x509 certificate of the cluster root of trust. - * - * Generated from protobuf field string cluster_ca_certificate = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClusterCaCertificate($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ca_certificate = $var; - - return $this; - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\Fleet|null - */ - public function getFleet() - { - return $this->fleet; - } - - public function hasFleet() - { - return isset($this->fleet); - } - - public function clearFleet() - { - unset($this->fleet); - } - - /** - * Required. Fleet configuration. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\Fleet $var - * @return $this - */ - public function setFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\Fleet::class); - $this->fleet = $var; - - return $this; - } - - /** - * Output only. Managed Azure resources for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources|null - */ - public function getManagedResources() - { - return $this->managed_resources; - } - - public function hasManagedResources() - { - return isset($this->managed_resources); - } - - public function clearManagedResources() - { - unset($this->managed_resources); - } - - /** - * Output only. Managed Azure resources for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClusterResources managed_resources = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources $var - * @return $this - */ - public function setManagedResources($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClusterResources::class); - $this->managed_resources = $var; - - return $this; - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Optional. Logging configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the cluster. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClusterError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClusterError::class); - $this->errors = $arr; - - return $this; - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig|null - */ - public function getMonitoringConfig() - { - return $this->monitoring_config; - } - - public function hasMonitoringConfig() - { - return isset($this->monitoring_config); - } - - public function clearMonitoringConfig() - { - unset($this->monitoring_config); - } - - /** - * Optional. Monitoring configuration for this cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php deleted file mode 100644 index e62a7b58f248..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster/State.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureCluster.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the cluster is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the cluster has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading the control plane replicas. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the cluster is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the cluster is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the cluster requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AzureCluster_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php deleted file mode 100644 index cf9a9b6b2e5d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterError.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClusterError - */ -class AzureClusterError extends \Google\Protobuf\Internal\Message -{ - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Human-friendly description of the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php deleted file mode 100644 index c4425dee6e7c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterNetworking.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClusterNetworking - */ -class AzureClusterNetworking extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * This field cannot be changed after creation. - * - * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $virtual_network_id = ''; - /** - * Required. The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $pod_address_cidr_blocks; - /** - * Required. The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creating a cluster. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $service_address_cidr_blocks; - /** - * Optional. The ARM ID of the subnet where Kubernetes private service type - * load balancers are deployed. When unspecified, it defaults to - * AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - * - * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_load_balancer_subnet_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $virtual_network_id - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * This field cannot be changed after creation. - * @type array|\Google\Protobuf\Internal\RepeatedField $pod_address_cidr_blocks - * Required. The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creation. - * @type array|\Google\Protobuf\Internal\RepeatedField $service_address_cidr_blocks - * Required. The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creating a cluster. - * @type string $service_load_balancer_subnet_id - * Optional. The ARM ID of the subnet where Kubernetes private service type - * load balancers are deployed. When unspecified, it defaults to - * AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * This field cannot be changed after creation. - * - * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVirtualNetworkId() - { - return $this->virtual_network_id; - } - - /** - * Required. The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * This field cannot be changed after creation. - * - * Generated from protobuf field string virtual_network_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVirtualNetworkId($var) - { - GPBUtil::checkString($var, True); - $this->virtual_network_id = $var; - - return $this; - } - - /** - * Required. The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPodAddressCidrBlocks() - { - return $this->pod_address_cidr_blocks; - } - - /** - * Required. The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creation. - * - * Generated from protobuf field repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPodAddressCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pod_address_cidr_blocks = $arr; - - return $this; - } - - /** - * Required. The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creating a cluster. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAddressCidrBlocks() - { - return $this->service_address_cidr_blocks; - } - - /** - * Required. The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * This field cannot be changed after creating a cluster. - * - * Generated from protobuf field repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAddressCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_address_cidr_blocks = $arr; - - return $this; - } - - /** - * Optional. The ARM ID of the subnet where Kubernetes private service type - * load balancers are deployed. When unspecified, it defaults to - * AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - * - * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceLoadBalancerSubnetId() - { - return $this->service_load_balancer_subnet_id; - } - - /** - * Optional. The ARM ID of the subnet where Kubernetes private service type - * load balancers are deployed. When unspecified, it defaults to - * AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - * - * Generated from protobuf field string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceLoadBalancerSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->service_load_balancer_subnet_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php deleted file mode 100644 index ca301cadedac..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterResources.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClusterResources - */ -class AzureClusterResources extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The ARM ID of the cluster network security group. - * - * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_security_group_id = ''; - /** - * Output only. The ARM ID of the control plane application security group. - * - * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $control_plane_application_security_group_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network_security_group_id - * Output only. The ARM ID of the cluster network security group. - * @type string $control_plane_application_security_group_id - * Output only. The ARM ID of the control plane application security group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The ARM ID of the cluster network security group. - * - * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNetworkSecurityGroupId() - { - return $this->network_security_group_id; - } - - /** - * Output only. The ARM ID of the cluster network security group. - * - * Generated from protobuf field string network_security_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNetworkSecurityGroupId($var) - { - GPBUtil::checkString($var, True); - $this->network_security_group_id = $var; - - return $this; - } - - /** - * Output only. The ARM ID of the control plane application security group. - * - * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getControlPlaneApplicationSecurityGroupId() - { - return $this->control_plane_application_security_group_id; - } - - /** - * Output only. The ARM ID of the control plane application security group. - * - * Generated from protobuf field string control_plane_application_security_group_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setControlPlaneApplicationSecurityGroupId($var) - { - GPBUtil::checkString($var, True); - $this->control_plane_application_security_group_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php deleted file mode 100644 index 3aecd59fbf61..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureClusterUser.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureClusterUser - */ -class AzureClusterUser extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $username = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Required. The name of the user, e.g. `my-gcp-id@gmail.com`. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php deleted file mode 100644 index 8920c0ef3e68..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureCluster_State.php +++ /dev/null @@ -1,16 +0,0 @@ -_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureClient', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureClient(\Google\Cloud\GkeMultiCloud\V1\GetAzureClientRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AzureClient', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources on a given Google Cloud project and region. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAzureClients(\Google\Cloud\GkeMultiCloud\V1\ListAzureClientsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAzureClientsResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource. - * - * If the client is used by one or more clusters, deletion will - * fail and a `FAILED_PRECONDITION` error will be returned. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureClientRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAzureClient(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClientRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureClient', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource on a given GCP project and region. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\CreateAzureClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\CreateAzureClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAzureCluster(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureCluster(\Google\Cloud\GkeMultiCloud\V1\GetAzureClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AzureCluster', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources on a given Google Cloud project and region. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAzureClusters(\Google\Cloud\GkeMultiCloud\V1\ListAzureClustersRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAzureClustersResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * - * Fails if the cluster has one or more associated - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAzureCluster(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureCluster', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Generates a short-lived access token to authenticate to a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GenerateAzureAccessToken(\Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], - * attached to a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\CreateAzureNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\CreateAzureNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * @param \Google\Cloud\GkeMultiCloud\V1\UpdateAzureNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\UpdateAzureNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Describes a specific - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\GetAzureNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', 'decode'], - $metadata, $options); - } - - /** - * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources on a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * @param \Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAzureNodePools(\Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\ListAzureNodePoolsResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a specific - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * @param \Google\Cloud\GkeMultiCloud\V1\DeleteAzureNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAzureNodePool(\Google\Cloud\GkeMultiCloud\V1\DeleteAzureNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool', - $argument, - ['\Google\LongRunning\Operation', 'decode'], - $metadata, $options); - } - - /** - * Returns information, such as supported Azure regions and Kubernetes - * versions, on a given Google Cloud location. - * @param \Google\Cloud\GkeMultiCloud\V1\GetAzureServerConfigRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureServerConfig(\Google\Cloud\GkeMultiCloud\V1\GetAzureServerConfigRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig', - $argument, - ['\Google\Cloud\GkeMultiCloud\V1\AzureServerConfig', 'decode'], - $metadata, $options); - } - -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php deleted file mode 100644 index f90fcdd501a4..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureConfigEncryption.php +++ /dev/null @@ -1,131 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureConfigEncryption - */ -class AzureConfigEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config - * data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * - * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_id = ''; - /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting - * the data. - * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) - * in ASN.1 DER form. The string must be comprised of a single PEM block of - * type "PUBLIC KEY". - * - * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $public_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_id - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config - * data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * @type string $public_key - * Optional. RSA key of the Azure Key Vault public key to use for encrypting - * the data. - * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) - * in ASN.1 DER form. The string must be comprised of a single PEM block of - * type "PUBLIC KEY". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config - * data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * - * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKeyId() - { - return $this->key_id; - } - - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config - * data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * - * Generated from protobuf field string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKeyId($var) - { - GPBUtil::checkString($var, True); - $this->key_id = $var; - - return $this; - } - - /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting - * the data. - * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) - * in ASN.1 DER form. The string must be comprised of a single PEM block of - * type "PUBLIC KEY". - * - * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPublicKey() - { - return $this->public_key; - } - - /** - * Optional. RSA key of the Azure Key Vault public key to use for encrypting - * the data. - * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) - * in ASN.1 DER form. The string must be comprised of a single PEM block of - * type "PUBLIC KEY". - * - * Generated from protobuf field string public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPublicKey($var) - { - GPBUtil::checkString($var, True); - $this->public_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php deleted file mode 100644 index 92f3fed0095f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureControlPlane.php +++ /dev/null @@ -1,613 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureControlPlane - */ -class AzureControlPlane extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = ''; - /** - * Optional. The ARM ID of the default subnet for the control plane. The - * control plane VMs are deployed in this subnet, unless - * `AzureControlPlane.replica_placements` is specified. This subnet will also - * be used as default for `AzureControlPlane.endpoint_subnet_id` if - * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will - * be used as default for - * `AzureClusterNetworking.service_load_balancer_subnet_id`. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $subnet_id = ''; - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * For available VM sizes, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vm_size = ''; - /** - * Required. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ssh_config = null; - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * When unspecified, it defaults to 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $root_volume = null; - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * When unspecified, it defaults to a 8-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $main_volume = null; - /** - * Optional. Configuration related to application-layer secrets encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database_encryption = null; - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_config = null; - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $config_encryption = null; - /** - * Optional. A set of tags to apply to all underlying control plane Azure - * resources. - * - * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Optional. Configuration for where to place the control plane replicas. - * Up to three replica placement instances can be specified. If - * replica_placements is set, the replica placement instances will be applied - * to the three control plane replicas as evenly as possible. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $replica_placements; - /** - * Optional. The ARM ID of the subnet where the control plane load balancer is - * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" - * - * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $endpoint_subnet_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * @type string $subnet_id - * Optional. The ARM ID of the default subnet for the control plane. The - * control plane VMs are deployed in this subnet, unless - * `AzureControlPlane.replica_placements` is specified. This subnet will also - * be used as default for `AzureControlPlane.endpoint_subnet_id` if - * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will - * be used as default for - * `AzureClusterNetworking.service_load_balancer_subnet_id`. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. - * @type string $vm_size - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * For available VM sizes, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. - * When unspecified, it defaults to `Standard_DS2_v2`. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $ssh_config - * Required. SSH configuration for how to access the underlying control plane - * machines. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $root_volume - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * When unspecified, it defaults to 32-GiB Azure Disk. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $main_volume - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * When unspecified, it defaults to a 8-GiB Azure Disk. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption $database_encryption - * Optional. Configuration related to application-layer secrets encryption. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $proxy_config - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption - * Optional. Configuration related to vm config encryption. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of tags to apply to all underlying control plane Azure - * resources. - * @type array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $replica_placements - * Optional. Configuration for where to place the control plane replicas. - * Up to three replica placement instances can be specified. If - * replica_placements is set, the replica placement instances will be applied - * to the three control plane replicas as evenly as possible. - * @type string $endpoint_subnet_id - * Optional. The ARM ID of the subnet where the control plane load balancer is - * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Required. The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional. The ARM ID of the default subnet for the control plane. The - * control plane VMs are deployed in this subnet, unless - * `AzureControlPlane.replica_placements` is specified. This subnet will also - * be used as default for `AzureControlPlane.endpoint_subnet_id` if - * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will - * be used as default for - * `AzureClusterNetworking.service_load_balancer_subnet_id`. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Optional. The ARM ID of the default subnet for the control plane. The - * control plane VMs are deployed in this subnet, unless - * `AzureControlPlane.replica_placements` is specified. This subnet will also - * be used as default for `AzureControlPlane.endpoint_subnet_id` if - * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will - * be used as default for - * `AzureClusterNetworking.service_load_balancer_subnet_id`. - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/default`. - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * For available VM sizes, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVmSize() - { - return $this->vm_size; - } - - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * For available VM sizes, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVmSize($var) - { - GPBUtil::checkString($var, True); - $this->vm_size = $var; - - return $this; - } - - /** - * Required. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig|null - */ - public function getSshConfig() - { - return $this->ssh_config; - } - - public function hasSshConfig() - { - return isset($this->ssh_config); - } - - public function clearSshConfig() - { - unset($this->ssh_config); - } - - /** - * Required. SSH configuration for how to access the underlying control plane - * machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $var - * @return $this - */ - public function setSshConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig::class); - $this->ssh_config = $var; - - return $this; - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * When unspecified, it defaults to 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null - */ - public function getRootVolume() - { - return $this->root_volume; - } - - public function hasRootVolume() - { - return isset($this->root_volume); - } - - public function clearRootVolume() - { - unset($this->root_volume); - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * control plane replica. - * When unspecified, it defaults to 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var - * @return $this - */ - public function setRootVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); - $this->root_volume = $var; - - return $this; - } - - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * When unspecified, it defaults to a 8-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null - */ - public function getMainVolume() - { - return $this->main_volume; - } - - public function hasMainVolume() - { - return isset($this->main_volume); - } - - public function clearMainVolume() - { - unset($this->main_volume); - } - - /** - * Optional. Configuration related to the main volume provisioned for each - * control plane replica. - * The main volume is in charge of storing all of the cluster's etcd state. - * When unspecified, it defaults to a 8-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate main_volume = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var - * @return $this - */ - public function setMainVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); - $this->main_volume = $var; - - return $this; - } - - /** - * Optional. Configuration related to application-layer secrets encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption|null - */ - public function getDatabaseEncryption() - { - return $this->database_encryption; - } - - public function hasDatabaseEncryption() - { - return isset($this->database_encryption); - } - - public function clearDatabaseEncryption() - { - unset($this->database_encryption); - } - - /** - * Optional. Configuration related to application-layer secrets encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDatabaseEncryption database_encryption = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption $var - * @return $this - */ - public function setDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDatabaseEncryption::class); - $this->database_encryption = $var; - - return $this; - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig|null - */ - public function getProxyConfig() - { - return $this->proxy_config; - } - - public function hasProxyConfig() - { - return isset($this->proxy_config); - } - - public function clearProxyConfig() - { - unset($this->proxy_config); - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $var - * @return $this - */ - public function setProxyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig::class); - $this->proxy_config = $var; - - return $this; - } - - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption|null - */ - public function getConfigEncryption() - { - return $this->config_encryption; - } - - public function hasConfigEncryption() - { - return isset($this->config_encryption); - } - - public function clearConfigEncryption() - { - unset($this->config_encryption); - } - - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $var - * @return $this - */ - public function setConfigEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption::class); - $this->config_encryption = $var; - - return $this; - } - - /** - * Optional. A set of tags to apply to all underlying control plane Azure - * resources. - * - * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A set of tags to apply to all underlying control plane Azure - * resources. - * - * Generated from protobuf field map tags = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Optional. Configuration for where to place the control plane replicas. - * Up to three replica placement instances can be specified. If - * replica_placements is set, the replica placement instances will be applied - * to the three control plane replicas as evenly as possible. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReplicaPlacements() - { - return $this->replica_placements; - } - - /** - * Optional. Configuration for where to place the control plane replicas. - * Up to three replica placement instances can be specified. If - * replica_placements is set, the replica placement instances will be applied - * to the three control plane replicas as evenly as possible. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.ReplicaPlacement replica_placements = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReplicaPlacements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\ReplicaPlacement::class); - $this->replica_placements = $arr; - - return $this; - } - - /** - * Optional. The ARM ID of the subnet where the control plane load balancer is - * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" - * - * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEndpointSubnetId() - { - return $this->endpoint_subnet_id; - } - - /** - * Optional. The ARM ID of the subnet where the control plane load balancer is - * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. - * Example: - * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" - * - * Generated from protobuf field string endpoint_subnet_id = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEndpointSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_subnet_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php deleted file mode 100644 index 21c7b8009267..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDatabaseEncryption.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureDatabaseEncryption - */ -class AzureDatabaseEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * Encryption will always take the latest version of the key and hence - * specific version is not supported. - * - * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_id - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * Encryption will always take the latest version of the key and hence - * specific version is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * Encryption will always take the latest version of the key and hence - * specific version is not supported. - * - * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKeyId() - { - return $this->key_id; - } - - /** - * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data. - * For example: - * `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` - * Encryption will always take the latest version of the key and hence - * specific version is not supported. - * - * Generated from protobuf field string key_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKeyId($var) - { - GPBUtil::checkString($var, True); - $this->key_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php deleted file mode 100644 index f3c1a39446b7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureDiskTemplate.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureDiskTemplate - */ -class AzureDiskTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The size of the disk, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $size_gib = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $size_gib - * Optional. The size of the disk, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The size of the disk, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSizeGib() - { - return $this->size_gib; - } - - /** - * Optional. The size of the disk, in GiBs. - * When unspecified, a default value is provided. See the specific reference - * in the parent resource. - * - * Generated from protobuf field int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSizeGib($var) - { - GPBUtil::checkInt32($var); - $this->size_gib = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php deleted file mode 100644 index c5f4598bb33e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureK8sVersionInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureK8sVersionInfo - */ -class AzureK8sVersionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * A supported Kubernetes version (for example, `1.19.10-gke.1000`) - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * A supported Kubernetes version (for example, `1.19.10-gke.1000`) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * A supported Kubernetes version (for example, `1.19.10-gke.1000`) - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * A supported Kubernetes version (for example, `1.19.10-gke.1000`) - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php deleted file mode 100644 index 6008f9ede920..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodeConfig.php +++ /dev/null @@ -1,436 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodeConfig - */ -class AzureNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * See [Supported VM - * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vm_size = ''; - /** - * Optional. Configuration related to the root volume provisioned for each - * node pool machine. - * When unspecified, it defaults to a 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $root_volume = null; - /** - * Optional. A set of tags to apply to all underlying Azure resources for this - * node pool. This currently only includes Virtual Machine Scale Sets. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image_type = ''; - /** - * Required. SSH configuration for how to access the node pool machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ssh_config = null; - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_config = null; - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $config_encryption = null; - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $taints; - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $vm_size - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * See [Supported VM - * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. - * When unspecified, it defaults to `Standard_DS2_v2`. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $root_volume - * Optional. Configuration related to the root volume provisioned for each - * node pool machine. - * When unspecified, it defaults to a 32-GiB Azure Disk. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. A set of tags to apply to all underlying Azure resources for this - * node pool. This currently only includes Virtual Machine Scale Sets. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * @type string $image_type - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $ssh_config - * Required. SSH configuration for how to access the node pool machines. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $proxy_config - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $config_encryption - * Optional. Configuration related to vm config encryption. - * @type array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * Optional. The initial taints assigned to nodes of this node pool. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * See [Supported VM - * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVmSize() - { - return $this->vm_size; - } - - /** - * Optional. The Azure VM size name. Example: `Standard_DS2_v2`. - * See [Supported VM - * sizes](/anthos/clusters/docs/azure/reference/supported-vms) for options. - * When unspecified, it defaults to `Standard_DS2_v2`. - * - * Generated from protobuf field string vm_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVmSize($var) - { - GPBUtil::checkString($var, True); - $this->vm_size = $var; - - return $this; - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * node pool machine. - * When unspecified, it defaults to a 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate|null - */ - public function getRootVolume() - { - return $this->root_volume; - } - - public function hasRootVolume() - { - return isset($this->root_volume); - } - - public function clearRootVolume() - { - unset($this->root_volume); - } - - /** - * Optional. Configuration related to the root volume provisioned for each - * node pool machine. - * When unspecified, it defaults to a 32-GiB Azure Disk. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureDiskTemplate root_volume = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate $var - * @return $this - */ - public function setRootVolume($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureDiskTemplate::class); - $this->root_volume = $var; - - return $this; - } - - /** - * Optional. A set of tags to apply to all underlying Azure resources for this - * node pool. This currently only includes Virtual Machine Scale Sets. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. A set of tags to apply to all underlying Azure resources for this - * node pool. This currently only includes Virtual Machine Scale Sets. - * Specify at most 50 pairs containing alphanumerics, spaces, and symbols - * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to - * 255 Unicode characters. - * - * Generated from protobuf field map tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * Optional. The OS image type to use on node pool instances. - * Can have a value of `ubuntu`, or `windows` if the cluster enables - * the Windows node pool preview feature. - * When unspecified, it defaults to `ubuntu`. - * - * Generated from protobuf field string image_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * Required. SSH configuration for how to access the node pool machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig|null - */ - public function getSshConfig() - { - return $this->ssh_config; - } - - public function hasSshConfig() - { - return isset($this->ssh_config); - } - - public function clearSshConfig() - { - unset($this->ssh_config); - } - - /** - * Required. SSH configuration for how to access the node pool machines. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureSshConfig ssh_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig $var - * @return $this - */ - public function setSshConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureSshConfig::class); - $this->ssh_config = $var; - - return $this; - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig|null - */ - public function getProxyConfig() - { - return $this->proxy_config; - } - - public function hasProxyConfig() - { - return isset($this->proxy_config); - } - - public function clearProxyConfig() - { - unset($this->proxy_config); - } - - /** - * Optional. Proxy configuration for outbound HTTP(S) traffic. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig $var - * @return $this - */ - public function setProxyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureProxyConfig::class); - $this->proxy_config = $var; - - return $this; - } - - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption|null - */ - public function getConfigEncryption() - { - return $this->config_encryption; - } - - public function hasConfigEncryption() - { - return isset($this->config_encryption); - } - - public function clearConfigEncryption() - { - unset($this->config_encryption); - } - - /** - * Optional. Configuration related to vm config encryption. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureConfigEncryption config_encryption = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption $var - * @return $this - */ - public function setConfigEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureConfigEncryption::class); - $this->config_encryption = $var; - - return $this; - } - - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * Optional. The initial taints assigned to nodes of this node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. The initial labels assigned to nodes of this node pool. An object - * containing a list of "key": value pairs. Example: { "name": "wrench", - * "mass": "1.3kg", "count": "3" }. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php deleted file mode 100644 index 957f0cef0a6c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool.php +++ /dev/null @@ -1,669 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodePool - */ -class AzureNodePool extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = ''; - /** - * Required. The node configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * - * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet_id = ''; - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling = null; - /** - * Output only. The current state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. If set, there are currently pending changes to the node - * pool. - * - * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Output only. The time at which this node pool 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 at which this node pool was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12; - */ - protected $etag = ''; - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_pods_constraint = null; - /** - * Optional. The Azure availability zone of the nodes in this nodepool. - * When unspecified, it defaults to `1`. - * - * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $azure_availability_zone = ''; - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * @type string $version - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $config - * Required. The node configuration of the node pool. - * @type string $subnet_id - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $autoscaling - * Required. Autoscaler configuration for this node pool. - * @type int $state - * Output only. The current state of the node pool. - * @type string $uid - * Output only. A globally unique identifier for the node pool. - * @type bool $reconciling - * Output only. If set, there are currently pending changes to the node - * pool. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this node pool was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which this node pool was last updated. - * @type string $etag - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * @type \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $max_pods_constraint - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * @type string $azure_availability_zone - * Optional. The Azure availability zone of the nodes in this nodepool. - * When unspecified, it defaults to `1`. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A set of errors found in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this resource. - * Node pool names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * For more details on Google Cloud resource names, - * see [Resource Names](https://cloud.google.com/apis/design/resource_names) - * - * 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; - } - - /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Required. The node configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. The node configuration of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * - * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Required. The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * - * Generated from protobuf field string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Required. Autoscaler configuration for this node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * Output only. The current state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier for the node pool. - * - * Generated from protobuf field string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. If set, there are currently pending changes to the node - * pool. - * - * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If set, there are currently pending changes to the node - * pool. - * - * Generated from protobuf field bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Output only. The time at which this node pool 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 at which this node pool 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 at which this node pool was last 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 at which this node pool was last 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; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Allows clients to perform consistent read-modify-writes - * through optimistic concurrency control. - * Can be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Annotations on the node pool. - * This field has the same restrictions as Kubernetes annotations. - * The total size of all keys and values combined is limited to 256k. - * Keys can have 2 segments: prefix (optional) and name (required), - * separated by a slash (/). - * Prefix must be a DNS subdomain. - * Name must be 63 characters or less, begin and end with alphanumerics, - * with dashes (-), underscores (_), dots (.), and alphanumerics between. - * - * Generated from protobuf field map annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint|null - */ - public function getMaxPodsConstraint() - { - return $this->max_pods_constraint; - } - - public function hasMaxPodsConstraint() - { - return isset($this->max_pods_constraint); - } - - public function clearMaxPodsConstraint() - { - unset($this->max_pods_constraint); - } - - /** - * Required. The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\MaxPodsConstraint::class); - $this->max_pods_constraint = $var; - - return $this; - } - - /** - * Optional. The Azure availability zone of the nodes in this nodepool. - * When unspecified, it defaults to `1`. - * - * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAzureAvailabilityZone() - { - return $this->azure_availability_zone; - } - - /** - * Optional. The Azure availability zone of the nodes in this nodepool. - * When unspecified, it defaults to `1`. - * - * Generated from protobuf field string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAzureAvailabilityZone($var) - { - GPBUtil::checkString($var, True); - $this->azure_availability_zone = $var; - - return $this; - } - - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A set of errors found in the node pool. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePoolError::class); - $this->errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php deleted file mode 100644 index 1d994d640f61..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool/State.php +++ /dev/null @@ -1,95 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodePool.State - */ -class State -{ - /** - * Not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the node pool is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the node pool has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that the node pool is being reconciled. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the node pool is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the node pool is in a broken unrecoverable - * state. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the node pool requires user action to - * restore full functionality. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - 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\GkeMultiCloud\V1\AzureNodePool_State::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php deleted file mode 100644 index 2688e11da544..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolAutoscaling.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling - */ -class AzureNodePoolAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $min_node_count = 0; - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $min_node_count - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * @type int $max_node_count - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMinNodeCount() - { - return $this->min_node_count; - } - - /** - * Required. Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * - * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->min_node_count = $var; - - return $this; - } - - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMaxNodeCount() - { - return $this->max_node_count; - } - - /** - * Required. Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * - * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->max_node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php deleted file mode 100644 index 854ce75b671a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePoolError.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureNodePoolError - */ -class AzureNodePoolError extends \Google\Protobuf\Internal\Message -{ - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Human-friendly description of the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Human-friendly description of the error. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php deleted file mode 100644 index 564057a0a4f3..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureNodePool_State.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureProxyConfig - */ -class AzureProxyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The ARM ID the of the resource group containing proxy keyvault. - * Resource group ids are formatted as - * `/subscriptions//resourceGroups/`. - * - * Generated from protobuf field string resource_group_id = 1; - */ - protected $resource_group_id = ''; - /** - * The URL the of the proxy setting secret with its version. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file - * Secret ids are formatted as - * `https://.vault.azure.net/secrets//`. - * - * Generated from protobuf field string secret_id = 2; - */ - protected $secret_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_group_id - * The ARM ID the of the resource group containing proxy keyvault. - * Resource group ids are formatted as - * `/subscriptions//resourceGroups/`. - * @type string $secret_id - * The URL the of the proxy setting secret with its version. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file - * Secret ids are formatted as - * `https://.vault.azure.net/secrets//`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The ARM ID the of the resource group containing proxy keyvault. - * Resource group ids are formatted as - * `/subscriptions//resourceGroups/`. - * - * Generated from protobuf field string resource_group_id = 1; - * @return string - */ - public function getResourceGroupId() - { - return $this->resource_group_id; - } - - /** - * The ARM ID the of the resource group containing proxy keyvault. - * Resource group ids are formatted as - * `/subscriptions//resourceGroups/`. - * - * Generated from protobuf field string resource_group_id = 1; - * @param string $var - * @return $this - */ - public function setResourceGroupId($var) - { - GPBUtil::checkString($var, True); - $this->resource_group_id = $var; - - return $this; - } - - /** - * The URL the of the proxy setting secret with its version. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file - * Secret ids are formatted as - * `https://.vault.azure.net/secrets//`. - * - * Generated from protobuf field string secret_id = 2; - * @return string - */ - public function getSecretId() - { - return $this->secret_id; - } - - /** - * The URL the of the proxy setting secret with its version. - * The secret must be a JSON encoded proxy configuration - * as described in - * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file - * Secret ids are formatted as - * `https://.vault.azure.net/secrets//`. - * - * Generated from protobuf field string secret_id = 2; - * @param string $var - * @return $this - */ - public function setSecretId($var) - { - GPBUtil::checkString($var, True); - $this->secret_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php deleted file mode 100644 index d05c8963587f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureServerConfig.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureServerConfig - */ -class AzureServerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The `AzureServerConfig` resource name. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; - */ - private $valid_versions; - /** - * The list of supported Azure regions. - * - * Generated from protobuf field repeated string supported_azure_regions = 3; - */ - private $supported_azure_regions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The `AzureServerConfig` resource name. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $valid_versions - * List of valid Kubernetes versions. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_azure_regions - * The list of supported Azure regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * The `AzureServerConfig` resource name. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The `AzureServerConfig` resource name. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidVersions() - { - return $this->valid_versions; - } - - /** - * List of valid Kubernetes versions. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureK8sVersionInfo valid_versions = 2; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureK8sVersionInfo::class); - $this->valid_versions = $arr; - - return $this; - } - - /** - * The list of supported Azure regions. - * - * Generated from protobuf field repeated string supported_azure_regions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedAzureRegions() - { - return $this->supported_azure_regions; - } - - /** - * The list of supported Azure regions. - * - * Generated from protobuf field repeated string supported_azure_regions = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedAzureRegions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->supported_azure_regions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php deleted file mode 100644 index 1327e9f14c97..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/AzureSshConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.gkemulticloud.v1.AzureSshConfig - */ -class AzureSshConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * - * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorized_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $authorized_key - * Required. The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * - * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAuthorizedKey() - { - return $this->authorized_key; - } - - /** - * Required. The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * - * Generated from protobuf field string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAuthorizedKey($var) - { - GPBUtil::checkString($var, True); - $this->authorized_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php deleted file mode 100644 index 2e04dc9e7bd6..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAttachedClusterRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest - */ -class CreateAttachedClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attached_cluster = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attached_cluster_id = ''; - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $attached_cluster - * Required. The specification of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. - * @type string $attached_cluster_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AttachedCluster|null - */ - public function getAttachedCluster() - { - return $this->attached_cluster; - } - - public function hasAttachedCluster() - { - return isset($this->attached_cluster); - } - - public function clearAttachedCluster() - { - unset($this->attached_cluster); - } - - /** - * Required. The specification of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $var - * @return $this - */ - public function setAttachedCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); - $this->attached_cluster = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAttachedClusterId() - { - return $this->attached_cluster_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAttachedClusterId($var) - { - GPBUtil::checkString($var, True); - $this->attached_cluster_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php deleted file mode 100644 index 62f0e71056dd..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsClusterRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAwsClusterRequest - */ -class CreateAwsClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_cluster = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_cluster_id = ''; - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster - * Required. The specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * @type string $aws_cluster_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null - */ - public function getAwsCluster() - { - return $this->aws_cluster; - } - - public function hasAwsCluster() - { - return isset($this->aws_cluster); - } - - public function clearAwsCluster() - { - unset($this->aws_cluster); - } - - /** - * Required. The specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var - * @return $this - */ - public function setAwsCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); - $this->aws_cluster = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAwsClusterId() - { - return $this->aws_cluster_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAwsClusterId($var) - { - GPBUtil::checkString($var, True); - $this->aws_cluster_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php deleted file mode 100644 index 8509d663ab0f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAwsNodePoolRequest.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest - */ -class CreateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_node_pool = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_node_pool_id = ''; - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool - * Required. The specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * @type string $aws_node_pool_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the node - * pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null - */ - public function getAwsNodePool() - { - return $this->aws_node_pool; - } - - public function hasAwsNodePool() - { - return isset($this->aws_node_pool); - } - - public function clearAwsNodePool() - { - unset($this->aws_node_pool); - } - - /** - * Required. The specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var - * @return $this - */ - public function setAwsNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); - $this->aws_node_pool = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAwsNodePoolId() - { - return $this->aws_node_pool_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAwsNodePoolId($var) - { - GPBUtil::checkString($var, True); - $this->aws_node_pool_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php deleted file mode 100644 index 79a670bcfe0b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClientRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAzureClientRequest - */ -class CreateAzureClientRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_client = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_client_id = ''; - /** - * If set, only validate the request, but do not actually create the client. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureClient $azure_client - * Required. The specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * @type string $azure_client_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the client. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureClient|null - */ - public function getAzureClient() - { - return $this->azure_client; - } - - public function hasAzureClient() - { - return isset($this->azure_client); - } - - public function clearAzureClient() - { - unset($this->azure_client); - } - - /** - * Required. The specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureClient azure_client = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureClient $var - * @return $this - */ - public function setAzureClient($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureClient::class); - $this->azure_client = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureClientId() - { - return $this->azure_client_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureClientId($var) - { - GPBUtil::checkString($var, True); - $this->azure_client_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the client. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the client. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php deleted file mode 100644 index cd34124a8b15..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureClusterRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAzureClusterRequest - */ -class CreateAzureClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_cluster = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_cluster_id = ''; - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster - * Required. The specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * @type string $azure_cluster_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null - */ - public function getAzureCluster() - { - return $this->azure_cluster; - } - - public function hasAzureCluster() - { - return isset($this->azure_cluster); - } - - public function clearAzureCluster() - { - unset($this->azure_cluster); - } - - /** - * Required. The specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var - * @return $this - */ - public function setAzureCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); - $this->azure_cluster = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureClusterId() - { - return $this->azure_cluster_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureClusterId($var) - { - GPBUtil::checkString($var, True); - $this->azure_cluster_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the cluster. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php deleted file mode 100644 index 19fd796cdee5..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/CreateAzureNodePoolRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest - */ -class CreateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_node_pool = null; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_node_pool_id = ''; - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool - * Required. The specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * @type string $azure_node_pool_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @type bool $validate_only - * If set, only validate the request, but do not actually create the node - * pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null - */ - public function getAzureNodePool() - { - return $this->azure_node_pool; - } - - public function hasAzureNodePool() - { - return isset($this->azure_node_pool); - } - - public function clearAzureNodePool() - { - unset($this->azure_node_pool); - } - - /** - * Required. The specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var - * @return $this - */ - public function setAzureNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); - $this->azure_node_pool = $var; - - return $this; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureNodePoolId() - { - return $this->azure_node_pool_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * Generated from protobuf field string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureNodePoolId($var) - { - GPBUtil::checkString($var, True); - $this->azure_node_pool_id = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually create the node - * pool. - * - * Generated from protobuf field bool validate_only = 4; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php deleted file mode 100644 index 5203109f005f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAttachedClusterRequest.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest - */ -class DeleteAttachedClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * If set to true, and the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * is not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * If set to true, the deletion of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will succeed even if errors occur during deleting in cluster resources. - * Using this parameter may result in orphaned resources in the cluster. - * - * Generated from protobuf field bool ignore_errors = 5; - */ - protected $ignore_errors = false; - /** - * The current etag of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the resource. - * @type bool $allow_missing - * If set to true, and the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * is not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * @type bool $ignore_errors - * If set to true, the deletion of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will succeed even if errors occur during deleting in cluster resources. - * Using this parameter may result in orphaned resources in the cluster. - * @type string $etag - * The current etag of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * If set to true, and the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * is not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * is not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * If set to true, the deletion of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will succeed even if errors occur during deleting in cluster resources. - * Using this parameter may result in orphaned resources in the cluster. - * - * Generated from protobuf field bool ignore_errors = 5; - * @return bool - */ - public function getIgnoreErrors() - { - return $this->ignore_errors; - } - - /** - * If set to true, the deletion of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will succeed even if errors occur during deleting in cluster resources. - * Using this parameter may result in orphaned resources in the cluster. - * - * Generated from protobuf field bool ignore_errors = 5; - * @param bool $var - * @return $this - */ - public function setIgnoreErrors($var) - { - GPBUtil::checkBool($var); - $this->ignore_errors = $var; - - return $this; - } - - /** - * The current etag of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php deleted file mode 100644 index 8c731da6dff7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsClusterRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest - */ -class DeleteAwsClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the resource. - * @type bool $allow_missing - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * @type string $etag - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php deleted file mode 100644 index 333666be0668..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAwsNodePoolRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest - */ -class DeleteAwsNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the node - * pool. - * @type bool $allow_missing - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * @type string $etag - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php deleted file mode 100644 index 926bfcb4f6c8..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClientRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAzureClientRequest - */ -class DeleteAzureClientRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - */ - protected $allow_missing = false; - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type bool $allow_missing - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php deleted file mode 100644 index ad770b028af7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureClusterRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest - */ -class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - */ - protected $allow_missing = false; - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - /** - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type bool $allow_missing - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the resource. - * @type string $etag - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 2; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the resource. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php deleted file mode 100644 index 4c7e541bd178..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/DeleteAzureNodePoolRequest.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest - */ -class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type bool $validate_only - * If set, only validate the request, but do not actually delete the node - * pool. - * @type bool $allow_missing - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * @type string $etag - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually delete the node - * pool. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * Useful for idempotent deletion. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * Allows clients to perform deletions through optimistic concurrency control. - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php deleted file mode 100644 index ddc8d53d7ae1..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/Fleet.php +++ /dev/null @@ -1,131 +0,0 @@ -google.cloud.gkemulticloud.v1.Fleet - */ -class Fleet extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Fleet host project where this cluster will be - * registered. - * Project names are formatted as - * `projects/`. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project = ''; - /** - * Output only. The name of the managed Hub Membership resource associated to - * this cluster. - * Membership names are formatted as - * `projects//locations/global/membership/`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $membership = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project - * Required. The name of the Fleet host project where this cluster will be - * registered. - * Project names are formatted as - * `projects/`. - * @type string $membership - * Output only. The name of the managed Hub Membership resource associated to - * this cluster. - * Membership names are formatted as - * `projects//locations/global/membership/`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Fleet host project where this cluster will be - * registered. - * Project names are formatted as - * `projects/`. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Required. The name of the Fleet host project where this cluster will be - * registered. - * Project names are formatted as - * `projects/`. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. The name of the managed Hub Membership resource associated to - * this cluster. - * Membership names are formatted as - * `projects//locations/global/membership/`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMembership() - { - return $this->membership; - } - - /** - * Output only. The name of the managed Hub Membership resource associated to - * this cluster. - * Membership names are formatted as - * `projects//locations/global/membership/`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkString($var, True); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php deleted file mode 100644 index 67e0ad776fc6..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestRequest.php +++ /dev/null @@ -1,208 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest - */ -class GenerateAttachedClusterInstallManifestRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * When generating an install manifest for importing an existing Membership - * resource, the attached_cluster_id field must be the Membership id. - * Membership names are formatted as `resource name formatted as - * `projects//locations//memberships/`. - * - * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attached_cluster_id = ''; - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $platform_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type string $attached_cluster_id - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * When generating an install manifest for importing an existing Membership - * resource, the attached_cluster_id field must be the Membership id. - * Membership names are formatted as `resource name formatted as - * `projects//locations//memberships/`. - * @type string $platform_version - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * When generating an install manifest for importing an existing Membership - * resource, the attached_cluster_id field must be the Membership id. - * Membership names are formatted as `resource name formatted as - * `projects//locations//memberships/`. - * - * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAttachedClusterId() - { - return $this->attached_cluster_id; - } - - /** - * Required. A client provided ID the resource. Must be unique within the - * parent resource. - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * When generating an install manifest for importing an existing Membership - * resource, the attached_cluster_id field must be the Membership id. - * Membership names are formatted as `resource name formatted as - * `projects//locations//memberships/`. - * - * Generated from protobuf field string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAttachedClusterId($var) - { - GPBUtil::checkString($var, True); - $this->attached_cluster_id = $var; - - return $this; - } - - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPlatformVersion() - { - return $this->platform_version; - } - - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPlatformVersion($var) - { - GPBUtil::checkString($var, True); - $this->platform_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php deleted file mode 100644 index 558f3fe1e5d2..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAttachedClusterInstallManifestResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse - */ -class GenerateAttachedClusterInstallManifestResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A set of Kubernetes resources (in YAML format) to be applied - * to the cluster to be attached. - * - * Generated from protobuf field string manifest = 1; - */ - protected $manifest = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $manifest - * A set of Kubernetes resources (in YAML format) to be applied - * to the cluster to be attached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * A set of Kubernetes resources (in YAML format) to be applied - * to the cluster to be attached. - * - * Generated from protobuf field string manifest = 1; - * @return string - */ - public function getManifest() - { - return $this->manifest; - } - - /** - * A set of Kubernetes resources (in YAML format) to be applied - * to the cluster to be attached. - * - * Generated from protobuf field string manifest = 1; - * @param string $var - * @return $this - */ - public function setManifest($var) - { - GPBUtil::checkString($var, True); - $this->manifest = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php deleted file mode 100644 index d3d109e81257..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest - */ -class GenerateAwsAccessTokenRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $aws_cluster = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $aws_cluster - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAwsCluster() - { - return $this->aws_cluster; - } - - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAwsCluster($var) - { - GPBUtil::checkString($var, True); - $this->aws_cluster = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php deleted file mode 100644 index 35f1695ffc34..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAwsAccessTokenResponse.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse - */ -class GenerateAwsAccessTokenResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $access_token = ''; - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $access_token - * Output only. Access token to authenticate to k8s api-server. - * @type \Google\Protobuf\Timestamp $expiration_time - * Output only. Timestamp at which the token will expire. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAccessToken($var) - { - GPBUtil::checkString($var, True); - $this->access_token = $var; - - return $this; - } - - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php deleted file mode 100644 index f655c348d217..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest - */ -class GenerateAzureAccessTokenRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $azure_cluster = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $azure_cluster - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAzureCluster() - { - return $this->azure_cluster; - } - - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAzureCluster($var) - { - GPBUtil::checkString($var, True); - $this->azure_cluster = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php deleted file mode 100644 index 4371394919c5..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GenerateAzureAccessTokenResponse.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse - */ -class GenerateAzureAccessTokenResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $access_token = ''; - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $access_token - * Output only. Access token to authenticate to k8s api-server. - * @type \Google\Protobuf\Timestamp $expiration_time - * Output only. Timestamp at which the token will expire. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Output only. Access token to authenticate to k8s api-server. - * - * Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAccessToken($var) - { - GPBUtil::checkString($var, True); - $this->access_token = $var; - - return $this; - } - - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Output only. Timestamp at which the token will expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php deleted file mode 100644 index 3ec2e3c44c68..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedClusterRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAttachedClusterRequest - */ -class GetAttachedClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to describe. - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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. The name of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to describe. - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to describe. - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 name of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to describe. - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php deleted file mode 100644 index d8eb050d9aad..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAttachedServerConfigRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest - */ -class GetAttachedServerConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] - * resource to describe. - * `AttachedServerConfig` names are formatted as - * `projects//locations//attachedServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] - * resource to describe. - * `AttachedServerConfig` names are formatted as - * `projects//locations//attachedServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] - * resource to describe. - * `AttachedServerConfig` names are formatted as - * `projects//locations//attachedServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] - * resource to describe. - * `AttachedServerConfig` names are formatted as - * `projects//locations//attachedServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php deleted file mode 100644 index c1bdee5e88d9..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsClusterRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAwsClusterRequest - */ -class GetAwsClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php deleted file mode 100644 index 080416baaf93..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsNodePoolRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest - */ -class GetAwsNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php deleted file mode 100644 index e8b728cd3e58..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAwsServerConfigRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest - */ -class GetAwsServerConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php deleted file mode 100644 index 87a4874bbe65..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClientRequest.php +++ /dev/null @@ -1,95 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAzureClientRequest - */ -class GetAzureClientRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php deleted file mode 100644 index fc806adc7c00..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureClusterRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAzureClusterRequest - */ -class GetAzureClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php deleted file mode 100644 index feb41baef9dc..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureNodePoolRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest - */ -class GetAzureNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php deleted file mode 100644 index c46bc07a1d07..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/GetAzureServerConfigRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest - */ -class GetAzureServerConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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. The name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php deleted file mode 100644 index 8c30d8f35007..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ImportAttachedClusterRequest.php +++ /dev/null @@ -1,239 +0,0 @@ -google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest - */ -class ImportAttachedClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * If set, only validate the request, but do not actually import the cluster. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. The name of the fleet membership resource to import. - * - * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $fleet_membership = ''; - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $platform_version = ''; - /** - * Required. The Kubernetes distribution of the underlying attached cluster. - * Supported values: ["eks", "aks"]. - * - * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $distribution = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type bool $validate_only - * If set, only validate the request, but do not actually import the cluster. - * @type string $fleet_membership - * Required. The name of the fleet membership resource to import. - * @type string $platform_version - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * @type string $distribution - * Required. The Kubernetes distribution of the underlying attached cluster. - * Supported values: ["eks", "aks"]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * If set, only validate the request, but do not actually import the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually import the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. The name of the fleet membership resource to import. - * - * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFleetMembership() - { - return $this->fleet_membership; - } - - /** - * Required. The name of the fleet membership resource to import. - * - * Generated from protobuf field string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFleetMembership($var) - { - GPBUtil::checkString($var, True); - $this->fleet_membership = $var; - - return $this; - } - - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPlatformVersion() - { - return $this->platform_version; - } - - /** - * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * - * Generated from protobuf field string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPlatformVersion($var) - { - GPBUtil::checkString($var, True); - $this->platform_version = $var; - - return $this; - } - - /** - * Required. The Kubernetes distribution of the underlying attached cluster. - * Supported values: ["eks", "aks"]. - * - * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDistribution() - { - return $this->distribution; - } - - /** - * Required. The Kubernetes distribution of the underlying attached cluster. - * Supported values: ["eks", "aks"]. - * - * Generated from protobuf field string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDistribution($var) - { - GPBUtil::checkString($var, True); - $this->distribution = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php deleted file mode 100644 index 32fbfe164090..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAttachedClustersRequest - */ -class ListAttachedClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location which owns this collection of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location which owns this collection of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location which owns this collection of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 location which owns this collection of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php deleted file mode 100644 index 08b8a9bece9f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAttachedClustersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAttachedClustersResponse - */ -class ListAttachedClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; - */ - private $attached_clusters; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AttachedCluster>|\Google\Protobuf\Internal\RepeatedField $attached_clusters - * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] - * resources in the specified GCP project and region region. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttachedClusters() - { - return $this->attached_clusters; - } - - /** - * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AttachedCluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttachedClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); - $this->attached_clusters = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php deleted file mode 100644 index fcaa4e64925f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAwsClustersRequest - */ -class ListAwsClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php deleted file mode 100644 index ee30c0f40089..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsClustersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAwsClustersResponse - */ -class ListAwsClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; - */ - private $aws_clusters; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $aws_clusters - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * in the specified GCP project and region region. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAwsClusters() - { - return $this->aws_clusters; - } - - /** - * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsCluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAwsClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); - $this->aws_clusters = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php deleted file mode 100644 index 5859e1a2c927..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest - */ -class ListAwsNodePoolsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php deleted file mode 100644 index e6a681467d5a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAwsNodePoolsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse - */ -class ListAwsNodePoolsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources in the specified `AwsCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; - */ - private $aws_node_pools; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $aws_node_pools - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources in the specified `AwsCluster`. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources in the specified `AwsCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAwsNodePools() - { - return $this->aws_node_pools; - } - - /** - * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources in the specified `AwsCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AwsNodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAwsNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); - $this->aws_node_pools = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php deleted file mode 100644 index e858bc67dc6b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureClientsRequest - */ -class ListAzureClientsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php deleted file mode 100644 index 6ec3fccc2c48..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClientsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureClientsResponse - */ -class ListAzureClientsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources in the specified Google Cloud project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; - */ - private $azure_clients; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $azure_clients - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources in the specified Google Cloud project and region region. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources in the specified Google Cloud project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAzureClients() - { - return $this->azure_clients; - } - - /** - * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources in the specified Google Cloud project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureClient>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAzureClients($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureClient::class); - $this->azure_clients = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php deleted file mode 100644 index a90572b91bd4..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureClustersRequest - */ -class ListAzureClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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 location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * Location names are formatted as `projects//locations/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php deleted file mode 100644 index a7e8c5a90da8..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureClustersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureClustersResponse - */ -class ListAzureClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; - */ - private $azure_clusters; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $azure_clusters - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources in the specified GCP project and region region. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAzureClusters() - { - return $this->azure_clusters; - } - - /** - * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources in the specified GCP project and region region. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureCluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAzureClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); - $this->azure_clusters = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php deleted file mode 100644 index 6509d98fdacc..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest - */ -class ListAzureNodePoolsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @type int $page_size - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] - * request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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 `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * - * 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; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * If not specified, a default value of 50 will be used by the service. - * Regardless of the pageSize value, the response can include a partial list - * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * 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; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] - * request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `nextPageToken` value returned from a previous - * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] - * request, if any. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php deleted file mode 100644 index dba3b96d705d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ListAzureNodePoolsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse - */ -class ListAzureNodePoolsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources in the specified `AzureCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; - */ - private $azure_node_pools; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $azure_node_pools - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources in the specified `AzureCluster`. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources in the specified `AzureCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAzureNodePools() - { - return $this->azure_node_pools; - } - - /** - * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources in the specified `AzureCluster`. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; - * @param array<\Google\Cloud\GkeMultiCloud\V1\AzureNodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAzureNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); - $this->azure_node_pools = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php deleted file mode 100644 index 422fc56a7d5e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.LoggingComponentConfig - */ -class LoggingComponentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The components to be enabled. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; - */ - private $enable_components; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components - * The components to be enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * The components to be enabled. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnableComponents() - { - return $this->enable_components; - } - - /** - * The components to be enabled. - * - * Generated from protobuf field repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnableComponents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig\Component::class); - $this->enable_components = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php deleted file mode 100644 index 7bbb2b8b88ac..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig/Component.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component - */ -class Component -{ - /** - * No component is specified - * - * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; - */ - const COMPONENT_UNSPECIFIED = 0; - /** - * This indicates that system logging components is enabled. - * - * Generated from protobuf enum SYSTEM_COMPONENTS = 1; - */ - const SYSTEM_COMPONENTS = 1; - /** - * This indicates that user workload logging component is enabled. - * - * Generated from protobuf enum WORKLOADS = 2; - */ - const WORKLOADS = 2; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::WORKLOADS => 'WORKLOADS', - ]; - - 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(Component::class, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig_Component::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php deleted file mode 100644 index 3d7fd5da3767..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/LoggingComponentConfig_Component.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.LoggingConfig - */ -class LoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The configuration of the logging components; - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; - */ - protected $component_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $component_config - * The configuration of the logging components; - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * The configuration of the logging components; - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; - * @return \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig|null - */ - public function getComponentConfig() - { - return $this->component_config; - } - - public function hasComponentConfig() - { - return isset($this->component_config); - } - - public function clearComponentConfig() - { - unset($this->component_config); - } - - /** - * The configuration of the logging components; - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1; - * @param \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $var - * @return $this - */ - public function setComponentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig::class); - $this->component_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php deleted file mode 100644 index c3f7e469972b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ManagedPrometheusConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.gkemulticloud.v1.ManagedPrometheusConfig - */ -class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable Managed Collection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php deleted file mode 100644 index abbd020c984a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MaxPodsConstraint.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkemulticloud.v1.MaxPodsConstraint - */ -class MaxPodsConstraint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The maximum number of pods to schedule on a single node. - * - * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_pods_per_node = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_pods_per_node - * Required. The maximum number of pods to schedule on a single node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The maximum number of pods to schedule on a single node. - * - * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getMaxPodsPerNode() - { - return $this->max_pods_per_node; - } - - /** - * Required. The maximum number of pods to schedule on a single node. - * - * Generated from protobuf field int64 max_pods_per_node = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setMaxPodsPerNode($var) - { - GPBUtil::checkInt64($var); - $this->max_pods_per_node = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php deleted file mode 100644 index a6b9a2e0a799..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/MonitoringConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.gkemulticloud.v1.MonitoringConfig - */ -class MonitoringConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enable Google Cloud Managed Service for Prometheus in the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - protected $managed_prometheus_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig $managed_prometheus_config - * Enable Google Cloud Managed Service for Prometheus in the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Enable Google Cloud Managed Service for Prometheus in the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @return \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig|null - */ - public function getManagedPrometheusConfig() - { - return $this->managed_prometheus_config; - } - - public function hasManagedPrometheusConfig() - { - return isset($this->managed_prometheus_config); - } - - public function clearManagedPrometheusConfig() - { - unset($this->managed_prometheus_config); - } - - /** - * Enable Google Cloud Managed Service for Prometheus in the cluster. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @param \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig $var - * @return $this - */ - public function setManagedPrometheusConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\ManagedPrometheusConfig::class); - $this->managed_prometheus_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php deleted file mode 100644 index 3008c9dd75ef..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.gkemulticloud.v1.NodeTaint - */ -class NodeTaint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Key for the taint. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key = ''; - /** - * Required. Value for the taint. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Required. The taint effect. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $effect = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Required. Key for the taint. - * @type string $value - * Required. Value for the taint. - * @type int $effect - * Required. The taint effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Key for the taint. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Required. Key for the taint. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Required. Value for the taint. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. Value for the taint. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Required. The taint effect. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEffect() - { - return $this->effect; - } - - /** - * Required. The taint effect. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEffect($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeMultiCloud\V1\NodeTaint\Effect::class); - $this->effect = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php deleted file mode 100644 index e91ecf54c3c1..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint/Effect.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.gkemulticloud.v1.NodeTaint.Effect - */ -class Effect -{ - /** - * Not set. - * - * Generated from protobuf enum EFFECT_UNSPECIFIED = 0; - */ - const EFFECT_UNSPECIFIED = 0; - /** - * Do not allow new pods to schedule onto the node unless they tolerate the - * taint, but allow all pods submitted to Kubelet without going through the - * scheduler to start, and allow all already-running pods to continue - * running. Enforced by the scheduler. - * - * Generated from protobuf enum NO_SCHEDULE = 1; - */ - const NO_SCHEDULE = 1; - /** - * Like TaintEffectNoSchedule, but the scheduler tries not to schedule - * new pods onto the node, rather than prohibiting new pods from scheduling - * onto the node entirely. Enforced by the scheduler. - * - * Generated from protobuf enum PREFER_NO_SCHEDULE = 2; - */ - const PREFER_NO_SCHEDULE = 2; - /** - * Evict any already-running pods that do not tolerate the taint. - * Currently enforced by NodeController. - * - * Generated from protobuf enum NO_EXECUTE = 3; - */ - const NO_EXECUTE = 3; - - private static $valueToName = [ - self::EFFECT_UNSPECIFIED => 'EFFECT_UNSPECIFIED', - self::NO_SCHEDULE => 'NO_SCHEDULE', - self::PREFER_NO_SCHEDULE => 'PREFER_NO_SCHEDULE', - self::NO_EXECUTE => 'NO_EXECUTE', - ]; - - 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(Effect::class, \Google\Cloud\GkeMultiCloud\V1\NodeTaint_Effect::class); - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php deleted file mode 100644 index efd070529c2b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/NodeTaint_Effect.php +++ /dev/null @@ -1,16 +0,0 @@ -google.cloud.gkemulticloud.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time at which this operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which this operation was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The name of the resource associated to this operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_detail = ''; - /** - * Output only. Human-readable status of any error that occurred during the - * operation. - * - * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_detail = ''; - /** - * Output only. The verb associated with the API method which triggered this - * operation. Possible values are "create", "delete", "update" and "import". - * - * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Identifies whether it has been requested cancellation - * for the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which this operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time at which this operation was completed. - * @type string $target - * Output only. The name of the resource associated to this operation. - * @type string $status_detail - * Output only. Human-readable status of the operation, if any. - * @type string $error_detail - * Output only. Human-readable status of any error that occurred during the - * operation. - * @type string $verb - * Output only. The verb associated with the API method which triggered this - * operation. Possible values are "create", "delete", "update" and "import". - * @type bool $requested_cancellation - * Output only. Identifies whether it has been requested cancellation - * for the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time at which this operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 at which this operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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 at which this operation was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. The time at which this operation was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The name of the resource associated to this operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. The name of the resource associated to this operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusDetail() - { - return $this->status_detail; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusDetail($var) - { - GPBUtil::checkString($var, True); - $this->status_detail = $var; - - return $this; - } - - /** - * Output only. Human-readable status of any error that occurred during the - * operation. - * - * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getErrorDetail() - { - return $this->error_detail; - } - - /** - * Output only. Human-readable status of any error that occurred during the - * operation. - * - * Generated from protobuf field string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setErrorDetail($var) - { - GPBUtil::checkString($var, True); - $this->error_detail = $var; - - return $this; - } - - /** - * Output only. The verb associated with the API method which triggered this - * operation. Possible values are "create", "delete", "update" and "import". - * - * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. The verb associated with the API method which triggered this - * operation. Possible values are "create", "delete", "update" and "import". - * - * Generated from protobuf field string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Identifies whether it has been requested cancellation - * for the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether it has been requested cancellation - * for the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php deleted file mode 100644 index c78be2466d12..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/ReplicaPlacement.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.gkemulticloud.v1.ReplicaPlacement - */ -class ReplicaPlacement extends \Google\Protobuf\Internal\Message -{ - /** - * Required. For a given replica, the ARM ID of the subnet where the control - * plane VM is deployed. Make sure it's a subnet under the virtual network in - * the cluster configuration. - * - * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet_id = ''; - /** - * Required. For a given replica, the Azure availability zone where to - * provision the control plane VM and the ETCD disk. - * - * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_availability_zone = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnet_id - * Required. For a given replica, the ARM ID of the subnet where the control - * plane VM is deployed. Make sure it's a subnet under the virtual network in - * the cluster configuration. - * @type string $azure_availability_zone - * Required. For a given replica, the Azure availability zone where to - * provision the control plane VM and the ETCD disk. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce(); - parent::__construct($data); - } - - /** - * Required. For a given replica, the ARM ID of the subnet where the control - * plane VM is deployed. Make sure it's a subnet under the virtual network in - * the cluster configuration. - * - * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Required. For a given replica, the ARM ID of the subnet where the control - * plane VM is deployed. Make sure it's a subnet under the virtual network in - * the cluster configuration. - * - * Generated from protobuf field string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Required. For a given replica, the Azure availability zone where to - * provision the control plane VM and the ETCD disk. - * - * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAzureAvailabilityZone() - { - return $this->azure_availability_zone; - } - - /** - * Required. For a given replica, the Azure availability zone where to - * provision the control plane VM and the ETCD disk. - * - * Generated from protobuf field string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAzureAvailabilityZone($var) - { - GPBUtil::checkString($var, True); - $this->azure_availability_zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php deleted file mode 100644 index dc288355a2c5..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAttachedClusterRequest.php +++ /dev/null @@ -1,199 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest - */ -class UpdateAttachedClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attached_cluster = null; - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: - * * `description`. - * * `annotations`. - * * `platform_version`. - * * `authorization.admin_users`. - * * `logging_config.component_config.enable_components`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $attached_cluster - * Required. The - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to update. - * @type bool $validate_only - * If set, only validate the request, but do not actually update the cluster. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: - * * `description`. - * * `annotations`. - * * `platform_version`. - * * `authorization.admin_users`. - * * `logging_config.component_config.enable_components`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AttachedService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AttachedCluster|null - */ - public function getAttachedCluster() - { - return $this->attached_cluster; - } - - public function hasAttachedCluster() - { - return isset($this->attached_cluster); - } - - public function clearAttachedCluster() - { - unset($this->attached_cluster); - } - - /** - * Required. The - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AttachedCluster $var - * @return $this - */ - public function setAttachedCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AttachedCluster::class); - $this->attached_cluster = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: - * * `description`. - * * `annotations`. - * * `platform_version`. - * * `authorization.admin_users`. - * * `logging_config.component_config.enable_components`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these - * fields from - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: - * * `description`. - * * `annotations`. - * * `platform_version`. - * * `authorization.admin_users`. - * * `logging_config.component_config.enable_components`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php deleted file mode 100644 index 56f049ee89a7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsClusterRequest.php +++ /dev/null @@ -1,259 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest - */ -class UpdateAwsClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_cluster = null; - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AwsCluster $aws_cluster - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * @type bool $validate_only - * If set, only validate the request, but do not actually update the cluster. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsCluster|null - */ - public function getAwsCluster() - { - return $this->aws_cluster; - } - - public function hasAwsCluster() - { - return isset($this->aws_cluster); - } - - public function clearAwsCluster() - { - unset($this->aws_cluster); - } - - /** - * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsCluster aws_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsCluster $var - * @return $this - */ - public function setAwsCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsCluster::class); - $this->aws_cluster = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php deleted file mode 100644 index bd09a5cc4266..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAwsNodePoolRequest.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest - */ -class UpdateAwsNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aws_node_pool = null; - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $aws_node_pool - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * @type bool $validate_only - * If set, only validate the request, but don't actually update the node pool. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AwsNodePool|null - */ - public function getAwsNodePool() - { - return $this->aws_node_pool; - } - - public function hasAwsNodePool() - { - return isset($this->aws_node_pool); - } - - public function clearAwsNodePool() - { - unset($this->aws_node_pool); - } - - /** - * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AwsNodePool $var - * @return $this - */ - public function setAwsNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AwsNodePool::class); - $this->aws_node_pool = $var; - - return $this; - } - - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php deleted file mode 100644 index 9c178a6e74a0..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureClusterRequest.php +++ /dev/null @@ -1,219 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest - */ -class UpdateAzureClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_cluster = null; - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AzureCluster $azure_cluster - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * @type bool $validate_only - * If set, only validate the request, but do not actually update the cluster. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureCluster|null - */ - public function getAzureCluster() - { - return $this->azure_cluster; - } - - public function hasAzureCluster() - { - return isset($this->azure_cluster); - } - - public function clearAzureCluster() - { - unset($this->azure_cluster); - } - - /** - * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureCluster azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureCluster $var - * @return $this - */ - public function setAzureCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureCluster::class); - $this->azure_cluster = $var; - - return $this; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but do not actually update the cluster. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php deleted file mode 100644 index 4124d7d763ad..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/UpdateAzureNodePoolRequest.php +++ /dev/null @@ -1,187 +0,0 @@ -google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest - */ -class UpdateAzureNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $azure_node_pool = null; - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $azure_node_pool - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * @type bool $validate_only - * If set, only validate the request, but don't actually update the node pool. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeMultiCloud\V1\AzureNodePool|null - */ - public function getAzureNodePool() - { - return $this->azure_node_pool; - } - - public function hasAzureNodePool() - { - return isset($this->azure_node_pool); - } - - public function clearAzureNodePool() - { - unset($this->azure_node_pool); - } - - /** - * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * - * Generated from protobuf field .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeMultiCloud\V1\AzureNodePool $var - * @return $this - */ - public function setAzureNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\AzureNodePool::class); - $this->azure_node_pool = $var; - - return $this; - } - - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, only validate the request, but don't actually update the node pool. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php b/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php deleted file mode 100644 index 261f7d8542a3..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/proto/src/Google/Cloud/GkeMultiCloud/V1/WorkloadIdentityConfig.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.gkemulticloud.v1.WorkloadIdentityConfig - */ -class WorkloadIdentityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The OIDC issuer URL for this cluster. - * - * Generated from protobuf field string issuer_uri = 1; - */ - protected $issuer_uri = ''; - /** - * The Workload Identity Pool associated to the cluster. - * - * Generated from protobuf field string workload_pool = 2; - */ - protected $workload_pool = ''; - /** - * The ID of the OIDC Identity Provider (IdP) associated to the Workload - * Identity Pool. - * - * Generated from protobuf field string identity_provider = 3; - */ - protected $identity_provider = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $issuer_uri - * The OIDC issuer URL for this cluster. - * @type string $workload_pool - * The Workload Identity Pool associated to the cluster. - * @type string $identity_provider - * The ID of the OIDC Identity Provider (IdP) associated to the Workload - * Identity Pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce(); - parent::__construct($data); - } - - /** - * The OIDC issuer URL for this cluster. - * - * Generated from protobuf field string issuer_uri = 1; - * @return string - */ - public function getIssuerUri() - { - return $this->issuer_uri; - } - - /** - * The OIDC issuer URL for this cluster. - * - * Generated from protobuf field string issuer_uri = 1; - * @param string $var - * @return $this - */ - public function setIssuerUri($var) - { - GPBUtil::checkString($var, True); - $this->issuer_uri = $var; - - return $this; - } - - /** - * The Workload Identity Pool associated to the cluster. - * - * Generated from protobuf field string workload_pool = 2; - * @return string - */ - public function getWorkloadPool() - { - return $this->workload_pool; - } - - /** - * The Workload Identity Pool associated to the cluster. - * - * Generated from protobuf field string workload_pool = 2; - * @param string $var - * @return $this - */ - public function setWorkloadPool($var) - { - GPBUtil::checkString($var, True); - $this->workload_pool = $var; - - return $this; - } - - /** - * The ID of the OIDC Identity Provider (IdP) associated to the Workload - * Identity Pool. - * - * Generated from protobuf field string identity_provider = 3; - * @return string - */ - public function getIdentityProvider() - { - return $this->identity_provider; - } - - /** - * The ID of the OIDC Identity Provider (IdP) associated to the Workload - * Identity Pool. - * - * Generated from protobuf field string identity_provider = 3; - * @param string $var - * @return $this - */ - public function setIdentityProvider($var) - { - GPBUtil::checkString($var, True); - $this->identity_provider = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php deleted file mode 100644 index 963971728fc6..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/create_attached_cluster.php +++ /dev/null @@ -1,144 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AttachedClustersClient::locationName()} for help formatting this field. - * @param string $attachedClusterPlatformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * @param string $attachedClusterDistribution The Kubernetes distribution of the underlying attached cluster. - * - * Supported values: ["eks", "aks"]. - * @param string $attachedClusterFleetProject The name of the Fleet host project where this cluster will be - * registered. - * - * Project names are formatted as - * `projects/`. - * @param string $attachedClusterId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_attached_cluster_sample( - string $formattedParent, - string $attachedClusterPlatformVersion, - string $attachedClusterDistribution, - string $attachedClusterFleetProject, - string $attachedClusterId -): void { - // Create a client. - $attachedClustersClient = new AttachedClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $attachedClusterOidcConfig = new AttachedOidcConfig(); - $attachedClusterFleet = (new Fleet()) - ->setProject($attachedClusterFleetProject); - $attachedCluster = (new AttachedCluster()) - ->setOidcConfig($attachedClusterOidcConfig) - ->setPlatformVersion($attachedClusterPlatformVersion) - ->setDistribution($attachedClusterDistribution) - ->setFleet($attachedClusterFleet); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $attachedClustersClient->createAttachedCluster( - $formattedParent, - $attachedCluster, - $attachedClusterId - ); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $attachedClusterPlatformVersion = '[PLATFORM_VERSION]'; - $attachedClusterDistribution = '[DISTRIBUTION]'; - $attachedClusterFleetProject = '[PROJECT]'; - $attachedClusterId = '[ATTACHED_CLUSTER_ID]'; - - create_attached_cluster_sample( - $formattedParent, - $attachedClusterPlatformVersion, - $attachedClusterDistribution, - $attachedClusterFleetProject, - $attachedClusterId - ); -} -// [END gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php deleted file mode 100644 index 48690e6b1cbb..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/delete_attached_cluster.php +++ /dev/null @@ -1,91 +0,0 @@ -/locations//attachedClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AttachedClustersClient::attachedClusterName()} for help formatting this field. - */ -function delete_attached_cluster_sample(string $formattedName): void -{ - // Create a client. - $attachedClustersClient = new AttachedClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $attachedClustersClient->deleteAttachedCluster($formattedName); - $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 = AttachedClustersClient::attachedClusterName( - '[PROJECT]', - '[LOCATION]', - '[ATTACHED_CLUSTER]' - ); - - delete_attached_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php deleted file mode 100644 index eb307e204d4b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/generate_attached_cluster_install_manifest.php +++ /dev/null @@ -1,106 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AttachedClustersClient::locationName()} for help formatting this field. - * @param string $attachedClusterId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * When generating an install manifest for importing an existing Membership - * resource, the attached_cluster_id field must be the Membership id. - * - * Membership names are formatted as `resource name formatted as - * `projects//locations//memberships/`. - * @param string $platformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - */ -function generate_attached_cluster_install_manifest_sample( - string $formattedParent, - string $attachedClusterId, - string $platformVersion -): void { - // Create a client. - $attachedClustersClient = new AttachedClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var GenerateAttachedClusterInstallManifestResponse $response */ - $response = $attachedClustersClient->generateAttachedClusterInstallManifest( - $formattedParent, - $attachedClusterId, - $platformVersion - ); - 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 -{ - $formattedParent = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $attachedClusterId = '[ATTACHED_CLUSTER_ID]'; - $platformVersion = '[PLATFORM_VERSION]'; - - generate_attached_cluster_install_manifest_sample( - $formattedParent, - $attachedClusterId, - $platformVersion - ); -} -// [END gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php deleted file mode 100644 index d34d0e43e027..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_cluster.php +++ /dev/null @@ -1,79 +0,0 @@ -/locations//attachedClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AttachedClustersClient::attachedClusterName()} for help formatting this field. - */ -function get_attached_cluster_sample(string $formattedName): void -{ - // Create a client. - $attachedClustersClient = new AttachedClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AttachedCluster $response */ - $response = $attachedClustersClient->getAttachedCluster($formattedName); - 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 = AttachedClustersClient::attachedClusterName( - '[PROJECT]', - '[LOCATION]', - '[ATTACHED_CLUSTER]' - ); - - get_attached_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php deleted file mode 100644 index bd20d6c1b7f2..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/get_attached_server_config.php +++ /dev/null @@ -1,75 +0,0 @@ -/locations//attachedServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AttachedClustersClient::attachedServerConfigName()} for help formatting this field. - */ -function get_attached_server_config_sample(string $formattedName): void -{ - // Create a client. - $attachedClustersClient = new AttachedClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AttachedServerConfig $response */ - $response = $attachedClustersClient->getAttachedServerConfig($formattedName); - 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 = AttachedClustersClient::attachedServerConfigName('[PROJECT]', '[LOCATION]'); - - get_attached_server_config_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php deleted file mode 100644 index 4966c4a9e1f4..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/import_attached_cluster.php +++ /dev/null @@ -1,115 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AttachedClustersClient::locationName()} for help formatting this field. - * @param string $fleetMembership The name of the fleet membership resource to import. - * @param string $platformVersion The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * @param string $distribution The Kubernetes distribution of the underlying attached cluster. - * - * Supported values: ["eks", "aks"]. - */ -function import_attached_cluster_sample( - string $formattedParent, - string $fleetMembership, - string $platformVersion, - string $distribution -): void { - // Create a client. - $attachedClustersClient = new AttachedClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $attachedClustersClient->importAttachedCluster( - $formattedParent, - $fleetMembership, - $platformVersion, - $distribution - ); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $fleetMembership = '[FLEET_MEMBERSHIP]'; - $platformVersion = '[PLATFORM_VERSION]'; - $distribution = '[DISTRIBUTION]'; - - import_attached_cluster_sample($formattedParent, $fleetMembership, $platformVersion, $distribution); -} -// [END gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php deleted file mode 100644 index f2865ea206d4..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/list_attached_clusters.php +++ /dev/null @@ -1,78 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AttachedClustersClient::locationName()} for help formatting this field. - */ -function list_attached_clusters_sample(string $formattedParent): void -{ - // Create a client. - $attachedClustersClient = new AttachedClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $attachedClustersClient->listAttachedClusters($formattedParent); - - /** @var AttachedCluster $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 = AttachedClustersClient::locationName('[PROJECT]', '[LOCATION]'); - - list_attached_clusters_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php deleted file mode 100644 index 684a900ad68f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AttachedClustersClient/update_attached_cluster.php +++ /dev/null @@ -1,113 +0,0 @@ -`. - */ -function update_attached_cluster_sample( - string $attachedClusterPlatformVersion, - string $attachedClusterDistribution, - string $attachedClusterFleetProject -): void { - // Create a client. - $attachedClustersClient = new AttachedClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $attachedClusterOidcConfig = new AttachedOidcConfig(); - $attachedClusterFleet = (new Fleet()) - ->setProject($attachedClusterFleetProject); - $attachedCluster = (new AttachedCluster()) - ->setOidcConfig($attachedClusterOidcConfig) - ->setPlatformVersion($attachedClusterPlatformVersion) - ->setDistribution($attachedClusterDistribution) - ->setFleet($attachedClusterFleet); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AttachedCluster $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 -{ - $attachedClusterPlatformVersion = '[PLATFORM_VERSION]'; - $attachedClusterDistribution = '[DISTRIBUTION]'; - $attachedClusterFleetProject = '[PROJECT]'; - - update_attached_cluster_sample( - $attachedClusterPlatformVersion, - $attachedClusterDistribution, - $attachedClusterFleetProject - ); -} -// [END gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php deleted file mode 100644 index 8e5deb1b4773..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_cluster.php +++ /dev/null @@ -1,224 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::locationName()} for help formatting this field. - * @param string $awsClusterNetworkingVpcId The VPC associated with the cluster. All component clusters - * (i.e. control plane and node pools) run on a single VPC. - * - * This field cannot be changed after creation. - * @param string $awsClusterNetworkingPodAddressCidrBlocksElement All pods in the cluster are assigned an IPv4 address from these - * ranges. Only a single range is supported. This field cannot be changed - * after creation. - * @param string $awsClusterNetworkingServiceAddressCidrBlocksElement All services in the cluster are assigned an IPv4 address from - * these ranges. Only a single range is supported. This field cannot be - * changed after creation. - * @param string $awsClusterAwsRegion The AWS region where the cluster runs. - * - * Each Google Cloud region supports a subset of nearby AWS regions. - * You can call - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig] - * to list all supported AWS regions within a given Google Cloud region. - * @param string $awsClusterControlPlaneVersion The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @param string $awsClusterControlPlaneSubnetIdsElement The list of subnets where control plane replicas will run. - * A replica will be provisioned on each subnet and up to three values - * can be provided. - * Each subnet must be in a different AWS Availability Zone (AZ). - * @param string $awsClusterControlPlaneIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to each - * control plane replica. - * @param string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt cluster secrets. - * @param string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn The Amazon Resource Name (ARN) of the role that the Anthos - * Multi-Cloud API will assume when managing AWS resources on your account. - * @param string $awsClusterControlPlaneConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. - * @param string $awsClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. - * @param string $awsClusterFleetProject The name of the Fleet host project where this cluster will be - * registered. - * - * Project names are formatted as - * `projects/`. - * @param string $awsClusterId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_aws_cluster_sample( - string $formattedParent, - string $awsClusterNetworkingVpcId, - string $awsClusterNetworkingPodAddressCidrBlocksElement, - string $awsClusterNetworkingServiceAddressCidrBlocksElement, - string $awsClusterAwsRegion, - string $awsClusterControlPlaneVersion, - string $awsClusterControlPlaneSubnetIdsElement, - string $awsClusterControlPlaneIamInstanceProfile, - string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, - string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, - string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - string $awsClusterAuthorizationAdminUsersUsername, - string $awsClusterFleetProject, - string $awsClusterId -): void { - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $awsClusterNetworkingPodAddressCidrBlocks = [$awsClusterNetworkingPodAddressCidrBlocksElement,]; - $awsClusterNetworkingServiceAddressCidrBlocks = [ - $awsClusterNetworkingServiceAddressCidrBlocksElement, - ]; - $awsClusterNetworking = (new AwsClusterNetworking()) - ->setVpcId($awsClusterNetworkingVpcId) - ->setPodAddressCidrBlocks($awsClusterNetworkingPodAddressCidrBlocks) - ->setServiceAddressCidrBlocks($awsClusterNetworkingServiceAddressCidrBlocks); - $awsClusterControlPlaneSubnetIds = [$awsClusterControlPlaneSubnetIdsElement,]; - $awsClusterControlPlaneDatabaseEncryption = (new AwsDatabaseEncryption()) - ->setKmsKeyArn($awsClusterControlPlaneDatabaseEncryptionKmsKeyArn); - $awsClusterControlPlaneAwsServicesAuthentication = (new AwsServicesAuthentication()) - ->setRoleArn($awsClusterControlPlaneAwsServicesAuthenticationRoleArn); - $awsClusterControlPlaneConfigEncryption = (new AwsConfigEncryption()) - ->setKmsKeyArn($awsClusterControlPlaneConfigEncryptionKmsKeyArn); - $awsClusterControlPlane = (new AwsControlPlane()) - ->setVersion($awsClusterControlPlaneVersion) - ->setSubnetIds($awsClusterControlPlaneSubnetIds) - ->setIamInstanceProfile($awsClusterControlPlaneIamInstanceProfile) - ->setDatabaseEncryption($awsClusterControlPlaneDatabaseEncryption) - ->setAwsServicesAuthentication($awsClusterControlPlaneAwsServicesAuthentication) - ->setConfigEncryption($awsClusterControlPlaneConfigEncryption); - $awsClusterUser = (new AwsClusterUser()) - ->setUsername($awsClusterAuthorizationAdminUsersUsername); - $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; - $awsClusterAuthorization = (new AwsAuthorization()) - ->setAdminUsers($awsClusterAuthorizationAdminUsers); - $awsClusterFleet = (new Fleet()) - ->setProject($awsClusterFleetProject); - $awsCluster = (new AwsCluster()) - ->setNetworking($awsClusterNetworking) - ->setAwsRegion($awsClusterAwsRegion) - ->setControlPlane($awsClusterControlPlane) - ->setAuthorization($awsClusterAuthorization) - ->setFleet($awsClusterFleet); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AwsCluster $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 = AwsClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $awsClusterNetworkingVpcId = '[VPC_ID]'; - $awsClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; - $awsClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; - $awsClusterAwsRegion = '[AWS_REGION]'; - $awsClusterControlPlaneVersion = '[VERSION]'; - $awsClusterControlPlaneSubnetIdsElement = '[SUBNET_IDS]'; - $awsClusterControlPlaneIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; - $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; - $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; - $awsClusterFleetProject = '[PROJECT]'; - $awsClusterId = '[AWS_CLUSTER_ID]'; - - create_aws_cluster_sample( - $formattedParent, - $awsClusterNetworkingVpcId, - $awsClusterNetworkingPodAddressCidrBlocksElement, - $awsClusterNetworkingServiceAddressCidrBlocksElement, - $awsClusterAwsRegion, - $awsClusterControlPlaneVersion, - $awsClusterControlPlaneSubnetIdsElement, - $awsClusterControlPlaneIamInstanceProfile, - $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, - $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, - $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - $awsClusterAuthorizationAdminUsersUsername, - $awsClusterFleetProject, - $awsClusterId - ); -} -// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php deleted file mode 100644 index 4da2f2d18116..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/create_aws_node_pool.php +++ /dev/null @@ -1,163 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - * @param string $awsNodePoolVersion The Kubernetes version to run on this node pool (e.g. - * `1.19.10-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the - * pool. - * @param string $awsNodePoolConfigConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. - * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * @param int $awsNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * @param string $awsNodePoolSubnetId The subnet where the node pool node run. - * @param int $awsNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. - * @param string $awsNodePoolId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_aws_node_pool_sample( - string $formattedParent, - string $awsNodePoolVersion, - string $awsNodePoolConfigIamInstanceProfile, - string $awsNodePoolConfigConfigEncryptionKmsKeyArn, - int $awsNodePoolAutoscalingMinNodeCount, - int $awsNodePoolAutoscalingMaxNodeCount, - string $awsNodePoolSubnetId, - int $awsNodePoolMaxPodsConstraintMaxPodsPerNode, - string $awsNodePoolId -): void { - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $awsNodePoolConfigConfigEncryption = (new AwsConfigEncryption()) - ->setKmsKeyArn($awsNodePoolConfigConfigEncryptionKmsKeyArn); - $awsNodePoolConfig = (new AwsNodeConfig()) - ->setIamInstanceProfile($awsNodePoolConfigIamInstanceProfile) - ->setConfigEncryption($awsNodePoolConfigConfigEncryption); - $awsNodePoolAutoscaling = (new AwsNodePoolAutoscaling()) - ->setMinNodeCount($awsNodePoolAutoscalingMinNodeCount) - ->setMaxNodeCount($awsNodePoolAutoscalingMaxNodeCount); - $awsNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) - ->setMaxPodsPerNode($awsNodePoolMaxPodsConstraintMaxPodsPerNode); - $awsNodePool = (new AwsNodePool()) - ->setVersion($awsNodePoolVersion) - ->setConfig($awsNodePoolConfig) - ->setAutoscaling($awsNodePoolAutoscaling) - ->setSubnetId($awsNodePoolSubnetId) - ->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AwsNodePool $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $awsNodePoolVersion = '[VERSION]'; - $awsNodePoolConfigIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; - $awsNodePoolConfigConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsNodePoolAutoscalingMinNodeCount = 0; - $awsNodePoolAutoscalingMaxNodeCount = 0; - $awsNodePoolSubnetId = '[SUBNET_ID]'; - $awsNodePoolMaxPodsConstraintMaxPodsPerNode = 0; - $awsNodePoolId = '[AWS_NODE_POOL_ID]'; - - create_aws_node_pool_sample( - $formattedParent, - $awsNodePoolVersion, - $awsNodePoolConfigIamInstanceProfile, - $awsNodePoolConfigConfigEncryptionKmsKeyArn, - $awsNodePoolAutoscalingMinNodeCount, - $awsNodePoolAutoscalingMaxNodeCount, - $awsNodePoolSubnetId, - $awsNodePoolMaxPodsConstraintMaxPodsPerNode, - $awsNodePoolId - ); -} -// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php deleted file mode 100644 index c276799702e5..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_cluster.php +++ /dev/null @@ -1,90 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - */ -function delete_aws_cluster_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->deleteAwsCluster($formattedName); - $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - - delete_aws_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php deleted file mode 100644 index 4b0ad2a8fb00..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/delete_aws_node_pool.php +++ /dev/null @@ -1,92 +0,0 @@ -/locations//awsClusters//awsNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsNodePoolName()} for help formatting this field. - */ -function delete_aws_node_pool_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->deleteAwsNodePool($formattedName); - $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 = AwsClustersClient::awsNodePoolName( - '[PROJECT]', - '[LOCATION]', - '[AWS_CLUSTER]', - '[AWS_NODE_POOL]' - ); - - delete_aws_node_pool_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php deleted file mode 100644 index 0a93e6b77317..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/generate_aws_access_token.php +++ /dev/null @@ -1,79 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - */ -function generate_aws_access_token_sample(string $formattedAwsCluster): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var GenerateAwsAccessTokenResponse $response */ - $response = $awsClustersClient->generateAwsAccessToken($formattedAwsCluster); - 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 -{ - $formattedAwsCluster = AwsClustersClient::awsClusterName( - '[PROJECT]', - '[LOCATION]', - '[AWS_CLUSTER]' - ); - - generate_aws_access_token_sample($formattedAwsCluster); -} -// [END gkemulticloud_v1_generated_AwsClusters_GenerateAwsAccessToken_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php deleted file mode 100644 index 0f06ca7b899a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_cluster.php +++ /dev/null @@ -1,75 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - */ -function get_aws_cluster_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AwsCluster $response */ - $response = $awsClustersClient->getAwsCluster($formattedName); - 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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - - get_aws_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_GetAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php deleted file mode 100644 index eb55af6dcc5c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_node_pool.php +++ /dev/null @@ -1,80 +0,0 @@ -/locations//awsClusters//awsNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsNodePoolName()} for help formatting this field. - */ -function get_aws_node_pool_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AwsNodePool $response */ - $response = $awsClustersClient->getAwsNodePool($formattedName); - 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 = AwsClustersClient::awsNodePoolName( - '[PROJECT]', - '[LOCATION]', - '[AWS_CLUSTER]', - '[AWS_NODE_POOL]' - ); - - get_aws_node_pool_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_GetAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php deleted file mode 100644 index 030d47feaae4..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/get_aws_server_config.php +++ /dev/null @@ -1,75 +0,0 @@ -/locations//awsServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsServerConfigName()} for help formatting this field. - */ -function get_aws_server_config_sample(string $formattedName): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AwsServerConfig $response */ - $response = $awsClustersClient->getAwsServerConfig($formattedName); - 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 = AwsClustersClient::awsServerConfigName('[PROJECT]', '[LOCATION]'); - - get_aws_server_config_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AwsClusters_GetAwsServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php deleted file mode 100644 index 74f49e97e0ea..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_clusters.php +++ /dev/null @@ -1,78 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AwsClustersClient::locationName()} for help formatting this field. - */ -function list_aws_clusters_sample(string $formattedParent): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $awsClustersClient->listAwsClusters($formattedParent); - - /** @var AwsCluster $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 = AwsClustersClient::locationName('[PROJECT]', '[LOCATION]'); - - list_aws_clusters_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AwsClusters_ListAwsClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php deleted file mode 100644 index 4d833aef1d2c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/list_aws_node_pools.php +++ /dev/null @@ -1,80 +0,0 @@ -/locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AwsClustersClient::awsClusterName()} for help formatting this field. - */ -function list_aws_node_pools_sample(string $formattedParent): void -{ - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $awsClustersClient->listAwsNodePools($formattedParent); - - /** @var AwsNodePool $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 = AwsClustersClient::awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - - list_aws_node_pools_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AwsClusters_ListAwsNodePools_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php deleted file mode 100644 index 41b8ac481b81..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_cluster.php +++ /dev/null @@ -1,197 +0,0 @@ -`. - */ -function update_aws_cluster_sample( - string $awsClusterNetworkingVpcId, - string $awsClusterNetworkingPodAddressCidrBlocksElement, - string $awsClusterNetworkingServiceAddressCidrBlocksElement, - string $awsClusterAwsRegion, - string $awsClusterControlPlaneVersion, - string $awsClusterControlPlaneSubnetIdsElement, - string $awsClusterControlPlaneIamInstanceProfile, - string $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, - string $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, - string $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - string $awsClusterAuthorizationAdminUsersUsername, - string $awsClusterFleetProject -): void { - // Create a client. - $awsClustersClient = new AwsClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $awsClusterNetworkingPodAddressCidrBlocks = [$awsClusterNetworkingPodAddressCidrBlocksElement,]; - $awsClusterNetworkingServiceAddressCidrBlocks = [ - $awsClusterNetworkingServiceAddressCidrBlocksElement, - ]; - $awsClusterNetworking = (new AwsClusterNetworking()) - ->setVpcId($awsClusterNetworkingVpcId) - ->setPodAddressCidrBlocks($awsClusterNetworkingPodAddressCidrBlocks) - ->setServiceAddressCidrBlocks($awsClusterNetworkingServiceAddressCidrBlocks); - $awsClusterControlPlaneSubnetIds = [$awsClusterControlPlaneSubnetIdsElement,]; - $awsClusterControlPlaneDatabaseEncryption = (new AwsDatabaseEncryption()) - ->setKmsKeyArn($awsClusterControlPlaneDatabaseEncryptionKmsKeyArn); - $awsClusterControlPlaneAwsServicesAuthentication = (new AwsServicesAuthentication()) - ->setRoleArn($awsClusterControlPlaneAwsServicesAuthenticationRoleArn); - $awsClusterControlPlaneConfigEncryption = (new AwsConfigEncryption()) - ->setKmsKeyArn($awsClusterControlPlaneConfigEncryptionKmsKeyArn); - $awsClusterControlPlane = (new AwsControlPlane()) - ->setVersion($awsClusterControlPlaneVersion) - ->setSubnetIds($awsClusterControlPlaneSubnetIds) - ->setIamInstanceProfile($awsClusterControlPlaneIamInstanceProfile) - ->setDatabaseEncryption($awsClusterControlPlaneDatabaseEncryption) - ->setAwsServicesAuthentication($awsClusterControlPlaneAwsServicesAuthentication) - ->setConfigEncryption($awsClusterControlPlaneConfigEncryption); - $awsClusterUser = (new AwsClusterUser()) - ->setUsername($awsClusterAuthorizationAdminUsersUsername); - $awsClusterAuthorizationAdminUsers = [$awsClusterUser,]; - $awsClusterAuthorization = (new AwsAuthorization()) - ->setAdminUsers($awsClusterAuthorizationAdminUsers); - $awsClusterFleet = (new Fleet()) - ->setProject($awsClusterFleetProject); - $awsCluster = (new AwsCluster()) - ->setNetworking($awsClusterNetworking) - ->setAwsRegion($awsClusterAwsRegion) - ->setControlPlane($awsClusterControlPlane) - ->setAuthorization($awsClusterAuthorization) - ->setFleet($awsClusterFleet); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AwsCluster $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 -{ - $awsClusterNetworkingVpcId = '[VPC_ID]'; - $awsClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; - $awsClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; - $awsClusterAwsRegion = '[AWS_REGION]'; - $awsClusterControlPlaneVersion = '[VERSION]'; - $awsClusterControlPlaneSubnetIdsElement = '[SUBNET_IDS]'; - $awsClusterControlPlaneIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; - $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsClusterControlPlaneAwsServicesAuthenticationRoleArn = '[ROLE_ARN]'; - $awsClusterControlPlaneConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsClusterAuthorizationAdminUsersUsername = '[USERNAME]'; - $awsClusterFleetProject = '[PROJECT]'; - - update_aws_cluster_sample( - $awsClusterNetworkingVpcId, - $awsClusterNetworkingPodAddressCidrBlocksElement, - $awsClusterNetworkingServiceAddressCidrBlocksElement, - $awsClusterAwsRegion, - $awsClusterControlPlaneVersion, - $awsClusterControlPlaneSubnetIdsElement, - $awsClusterControlPlaneIamInstanceProfile, - $awsClusterControlPlaneDatabaseEncryptionKmsKeyArn, - $awsClusterControlPlaneAwsServicesAuthenticationRoleArn, - $awsClusterControlPlaneConfigEncryptionKmsKeyArn, - $awsClusterAuthorizationAdminUsersUsername, - $awsClusterFleetProject - ); -} -// [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php deleted file mode 100644 index 46ca1348c412..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AwsClustersClient/update_aws_node_pool.php +++ /dev/null @@ -1,136 +0,0 @@ -setKmsKeyArn($awsNodePoolConfigConfigEncryptionKmsKeyArn); - $awsNodePoolConfig = (new AwsNodeConfig()) - ->setIamInstanceProfile($awsNodePoolConfigIamInstanceProfile) - ->setConfigEncryption($awsNodePoolConfigConfigEncryption); - $awsNodePoolAutoscaling = (new AwsNodePoolAutoscaling()) - ->setMinNodeCount($awsNodePoolAutoscalingMinNodeCount) - ->setMaxNodeCount($awsNodePoolAutoscalingMaxNodeCount); - $awsNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) - ->setMaxPodsPerNode($awsNodePoolMaxPodsConstraintMaxPodsPerNode); - $awsNodePool = (new AwsNodePool()) - ->setVersion($awsNodePoolVersion) - ->setConfig($awsNodePoolConfig) - ->setAutoscaling($awsNodePoolAutoscaling) - ->setSubnetId($awsNodePoolSubnetId) - ->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AwsNodePool $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 -{ - $awsNodePoolVersion = '[VERSION]'; - $awsNodePoolConfigIamInstanceProfile = '[IAM_INSTANCE_PROFILE]'; - $awsNodePoolConfigConfigEncryptionKmsKeyArn = '[KMS_KEY_ARN]'; - $awsNodePoolAutoscalingMinNodeCount = 0; - $awsNodePoolAutoscalingMaxNodeCount = 0; - $awsNodePoolSubnetId = '[SUBNET_ID]'; - $awsNodePoolMaxPodsConstraintMaxPodsPerNode = 0; - - update_aws_node_pool_sample( - $awsNodePoolVersion, - $awsNodePoolConfigIamInstanceProfile, - $awsNodePoolConfigConfigEncryptionKmsKeyArn, - $awsNodePoolAutoscalingMinNodeCount, - $awsNodePoolAutoscalingMaxNodeCount, - $awsNodePoolSubnetId, - $awsNodePoolMaxPodsConstraintMaxPodsPerNode - ); -} -// [END gkemulticloud_v1_generated_AwsClusters_UpdateAwsNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php deleted file mode 100644 index 7ae4e09b4da3..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_client.php +++ /dev/null @@ -1,122 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::locationName()} for help formatting this field. - * @param string $azureClientTenantId The Azure Active Directory Tenant ID. - * @param string $azureClientApplicationId The Azure Active Directory Application ID. - * @param string $azureClientId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_azure_client_sample( - string $formattedParent, - string $azureClientTenantId, - string $azureClientApplicationId, - string $azureClientId -): void { - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $azureClient = (new AzureClient()) - ->setTenantId($azureClientTenantId) - ->setApplicationId($azureClientApplicationId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureClient $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $azureClientTenantId = '[TENANT_ID]'; - $azureClientApplicationId = '[APPLICATION_ID]'; - $azureClientId = '[AZURE_CLIENT_ID]'; - - create_azure_client_sample( - $formattedParent, - $azureClientTenantId, - $azureClientApplicationId, - $azureClientId - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php deleted file mode 100644 index 817380346129..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_cluster.php +++ /dev/null @@ -1,238 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::locationName()} for help formatting this field. - * @param string $azureClusterAzureRegion The Azure region where the cluster runs. - * - * Each Google Cloud region supports a subset of nearby Azure regions. - * You can call - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig] - * to list all supported Azure regions within a given Google Cloud region. - * @param string $azureClusterResourceGroupId The ARM ID of the resource group where the cluster resources are - * deployed. For example: - * `/subscriptions//resourceGroups/` - * @param string $azureClusterAzureClient Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * - * This field cannot be changed after creation. - * @param string $azureClusterNetworkingPodAddressCidrBlocksElement The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * - * This field cannot be changed after creation. - * @param string $azureClusterNetworkingServiceAddressCidrBlocksElement The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * - * This field cannot be changed after creating a cluster. - * @param string $azureClusterControlPlaneVersion The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. - * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be - * registered. - * - * Project names are formatted as - * `projects/`. - * @param string $azureClusterId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_azure_cluster_sample( - string $formattedParent, - string $azureClusterAzureRegion, - string $azureClusterResourceGroupId, - string $azureClusterAzureClient, - string $azureClusterNetworkingVirtualNetworkId, - string $azureClusterNetworkingPodAddressCidrBlocksElement, - string $azureClusterNetworkingServiceAddressCidrBlocksElement, - string $azureClusterControlPlaneVersion, - string $azureClusterControlPlaneSshConfigAuthorizedKey, - string $azureClusterAuthorizationAdminUsersUsername, - string $azureClusterFleetProject, - string $azureClusterId -): void { - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $azureClusterNetworkingPodAddressCidrBlocks = [ - $azureClusterNetworkingPodAddressCidrBlocksElement, - ]; - $azureClusterNetworkingServiceAddressCidrBlocks = [ - $azureClusterNetworkingServiceAddressCidrBlocksElement, - ]; - $azureClusterNetworking = (new AzureClusterNetworking()) - ->setVirtualNetworkId($azureClusterNetworkingVirtualNetworkId) - ->setPodAddressCidrBlocks($azureClusterNetworkingPodAddressCidrBlocks) - ->setServiceAddressCidrBlocks($azureClusterNetworkingServiceAddressCidrBlocks); - $azureClusterControlPlaneSshConfig = (new AzureSshConfig()) - ->setAuthorizedKey($azureClusterControlPlaneSshConfigAuthorizedKey); - $azureClusterControlPlane = (new AzureControlPlane()) - ->setVersion($azureClusterControlPlaneVersion) - ->setSshConfig($azureClusterControlPlaneSshConfig); - $azureClusterUser = (new AzureClusterUser()) - ->setUsername($azureClusterAuthorizationAdminUsersUsername); - $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; - $azureClusterAuthorization = (new AzureAuthorization()) - ->setAdminUsers($azureClusterAuthorizationAdminUsers); - $azureClusterFleet = (new Fleet()) - ->setProject($azureClusterFleetProject); - $azureCluster = (new AzureCluster()) - ->setAzureRegion($azureClusterAzureRegion) - ->setResourceGroupId($azureClusterResourceGroupId) - ->setAzureClient($azureClusterAzureClient) - ->setNetworking($azureClusterNetworking) - ->setControlPlane($azureClusterControlPlane) - ->setAuthorization($azureClusterAuthorization) - ->setFleet($azureClusterFleet); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->createAzureCluster( - $formattedParent, - $azureCluster, - $azureClusterId - ); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureCluster $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); - $azureClusterAzureRegion = '[AZURE_REGION]'; - $azureClusterResourceGroupId = '[RESOURCE_GROUP_ID]'; - $azureClusterAzureClient = '[AZURE_CLIENT]'; - $azureClusterNetworkingVirtualNetworkId = '[VIRTUAL_NETWORK_ID]'; - $azureClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; - $azureClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; - $azureClusterControlPlaneVersion = '[VERSION]'; - $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; - $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; - $azureClusterFleetProject = '[PROJECT]'; - $azureClusterId = '[AZURE_CLUSTER_ID]'; - - create_azure_cluster_sample( - $formattedParent, - $azureClusterAzureRegion, - $azureClusterResourceGroupId, - $azureClusterAzureClient, - $azureClusterNetworkingVirtualNetworkId, - $azureClusterNetworkingPodAddressCidrBlocksElement, - $azureClusterNetworkingServiceAddressCidrBlocksElement, - $azureClusterControlPlaneVersion, - $azureClusterControlPlaneSshConfigAuthorizedKey, - $azureClusterAuthorizationAdminUsersUsername, - $azureClusterFleetProject, - $azureClusterId - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php deleted file mode 100644 index 2716082cbcac..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/create_azure_node_pool.php +++ /dev/null @@ -1,164 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - * @param string $azureNodePoolVersion The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this - * node pool. - * @param string $azureNodePoolConfigSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * @param string $azureNodePoolSubnetId The ARM ID of the subnet where the node pool VMs run. Make sure - * it's a subnet under the virtual network in the cluster configuration. - * @param int $azureNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or - * equal to 1 and less than or equal to max_node_count. - * @param int $azureNodePoolAutoscalingMaxNodeCount Maximum number of nodes in the node pool. Must be greater than or - * equal to min_node_count and less than or equal to 50. - * @param int $azureNodePoolMaxPodsConstraintMaxPodsPerNode The maximum number of pods to schedule on a single node. - * @param string $azureNodePoolId A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - */ -function create_azure_node_pool_sample( - string $formattedParent, - string $azureNodePoolVersion, - string $azureNodePoolConfigSshConfigAuthorizedKey, - string $azureNodePoolSubnetId, - int $azureNodePoolAutoscalingMinNodeCount, - int $azureNodePoolAutoscalingMaxNodeCount, - int $azureNodePoolMaxPodsConstraintMaxPodsPerNode, - string $azureNodePoolId -): void { - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $azureNodePoolConfigSshConfig = (new AzureSshConfig()) - ->setAuthorizedKey($azureNodePoolConfigSshConfigAuthorizedKey); - $azureNodePoolConfig = (new AzureNodeConfig()) - ->setSshConfig($azureNodePoolConfigSshConfig); - $azureNodePoolAutoscaling = (new AzureNodePoolAutoscaling()) - ->setMinNodeCount($azureNodePoolAutoscalingMinNodeCount) - ->setMaxNodeCount($azureNodePoolAutoscalingMaxNodeCount); - $azureNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) - ->setMaxPodsPerNode($azureNodePoolMaxPodsConstraintMaxPodsPerNode); - $azureNodePool = (new AzureNodePool()) - ->setVersion($azureNodePoolVersion) - ->setConfig($azureNodePoolConfig) - ->setSubnetId($azureNodePoolSubnetId) - ->setAutoscaling($azureNodePoolAutoscaling) - ->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->createAzureNodePool( - $formattedParent, - $azureNodePool, - $azureNodePoolId - ); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureNodePool $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 = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - $azureNodePoolVersion = '[VERSION]'; - $azureNodePoolConfigSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; - $azureNodePoolSubnetId = '[SUBNET_ID]'; - $azureNodePoolAutoscalingMinNodeCount = 0; - $azureNodePoolAutoscalingMaxNodeCount = 0; - $azureNodePoolMaxPodsConstraintMaxPodsPerNode = 0; - $azureNodePoolId = '[AZURE_NODE_POOL_ID]'; - - create_azure_node_pool_sample( - $formattedParent, - $azureNodePoolVersion, - $azureNodePoolConfigSshConfigAuthorizedKey, - $azureNodePoolSubnetId, - $azureNodePoolAutoscalingMinNodeCount, - $azureNodePoolAutoscalingMaxNodeCount, - $azureNodePoolMaxPodsConstraintMaxPodsPerNode, - $azureNodePoolId - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_CreateAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php deleted file mode 100644 index 90461dfda62d..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_client.php +++ /dev/null @@ -1,91 +0,0 @@ -/locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClientName()} for help formatting this field. - */ -function delete_azure_client_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->deleteAzureClient($formattedName); - $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 = AzureClustersClient::azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - - delete_azure_client_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php deleted file mode 100644 index 4149a2f8352a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_cluster.php +++ /dev/null @@ -1,94 +0,0 @@ -/locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - */ -function delete_azure_cluster_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->deleteAzureCluster($formattedName); - $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 = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - - delete_azure_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php deleted file mode 100644 index a7c03ed1c4e9..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/delete_azure_node_pool.php +++ /dev/null @@ -1,92 +0,0 @@ -/locations//azureClusters//azureNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureNodePoolName()} for help formatting this field. - */ -function delete_azure_node_pool_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->deleteAzureNodePool($formattedName); - $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 = AzureClustersClient::azureNodePoolName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]', - '[AZURE_NODE_POOL]' - ); - - delete_azure_node_pool_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_DeleteAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php deleted file mode 100644 index ecf72fa3329c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/generate_azure_access_token.php +++ /dev/null @@ -1,79 +0,0 @@ -/locations//AzureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - */ -function generate_azure_access_token_sample(string $formattedAzureCluster): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var GenerateAzureAccessTokenResponse $response */ - $response = $azureClustersClient->generateAzureAccessToken($formattedAzureCluster); - 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 -{ - $formattedAzureCluster = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - - generate_azure_access_token_sample($formattedAzureCluster); -} -// [END gkemulticloud_v1_generated_AzureClusters_GenerateAzureAccessToken_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php deleted file mode 100644 index b21b84ce42d7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_client.php +++ /dev/null @@ -1,76 +0,0 @@ -/locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClientName()} for help formatting this field. - */ -function get_azure_client_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AzureClient $response */ - $response = $azureClustersClient->getAzureClient($formattedName); - 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 = AzureClustersClient::azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - - get_azure_client_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_GetAzureClient_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php deleted file mode 100644 index 376da8b71eb7..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_cluster.php +++ /dev/null @@ -1,79 +0,0 @@ -/locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - */ -function get_azure_cluster_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AzureCluster $response */ - $response = $azureClustersClient->getAzureCluster($formattedName); - 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 = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - - get_azure_cluster_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_GetAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php deleted file mode 100644 index 9c9ad1ccd5ee..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_node_pool.php +++ /dev/null @@ -1,80 +0,0 @@ -/locations//azureClusters//azureNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureNodePoolName()} for help formatting this field. - */ -function get_azure_node_pool_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AzureNodePool $response */ - $response = $azureClustersClient->getAzureNodePool($formattedName); - 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 = AzureClustersClient::azureNodePoolName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]', - '[AZURE_NODE_POOL]' - ); - - get_azure_node_pool_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_GetAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php deleted file mode 100644 index e7a3812155c2..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/get_azure_server_config.php +++ /dev/null @@ -1,75 +0,0 @@ -/locations//azureServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureServerConfigName()} for help formatting this field. - */ -function get_azure_server_config_sample(string $formattedName): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var AzureServerConfig $response */ - $response = $azureClustersClient->getAzureServerConfig($formattedName); - 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 = AzureClustersClient::azureServerConfigName('[PROJECT]', '[LOCATION]'); - - get_azure_server_config_sample($formattedName); -} -// [END gkemulticloud_v1_generated_AzureClusters_GetAzureServerConfig_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php deleted file mode 100644 index 36eff1be24cf..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clients.php +++ /dev/null @@ -1,78 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AzureClustersClient::locationName()} for help formatting this field. - */ -function list_azure_clients_sample(string $formattedParent): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $azureClustersClient->listAzureClients($formattedParent); - - /** @var AzureClient $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); - - list_azure_clients_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AzureClusters_ListAzureClients_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php deleted file mode 100644 index 641b177a5717..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_clusters.php +++ /dev/null @@ -1,78 +0,0 @@ -/locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. Please see - * {@see AzureClustersClient::locationName()} for help formatting this field. - */ -function list_azure_clusters_sample(string $formattedParent): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $azureClustersClient->listAzureClusters($formattedParent); - - /** @var AzureCluster $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 = AzureClustersClient::locationName('[PROJECT]', '[LOCATION]'); - - list_azure_clusters_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AzureClusters_ListAzureClusters_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php deleted file mode 100644 index 906b4bdef131..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/list_azure_node_pools.php +++ /dev/null @@ -1,84 +0,0 @@ -/locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. Please see - * {@see AzureClustersClient::azureClusterName()} for help formatting this field. - */ -function list_azure_node_pools_sample(string $formattedParent): void -{ - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $azureClustersClient->listAzureNodePools($formattedParent); - - /** @var AzureNodePool $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 = AzureClustersClient::azureClusterName( - '[PROJECT]', - '[LOCATION]', - '[AZURE_CLUSTER]' - ); - - list_azure_node_pools_sample($formattedParent); -} -// [END gkemulticloud_v1_generated_AzureClusters_ListAzureNodePools_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php deleted file mode 100644 index 29093c8060e3..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_cluster.php +++ /dev/null @@ -1,207 +0,0 @@ -/resourceGroups/` - * @param string $azureClusterAzureClient Name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains - * authentication configuration for how the Anthos Multi-Cloud API connects to - * Azure APIs. - * - * The `AzureClient` resource must reside on the same GCP project and region - * as the `AzureCluster`. - * - * `AzureClient` names are formatted as - * `projects//locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param string $azureClusterNetworkingVirtualNetworkId The Azure Resource Manager (ARM) ID of the VNet associated with - * your cluster. - * - * All components in the cluster (i.e. control plane and node pools) run on a - * single VNet. - * - * Example: - * `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/` - * - * This field cannot be changed after creation. - * @param string $azureClusterNetworkingPodAddressCidrBlocksElement The IP address range of the pods in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * - * All pods in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * - * This field cannot be changed after creation. - * @param string $azureClusterNetworkingServiceAddressCidrBlocksElement The IP address range for services in this cluster, in CIDR - * notation (e.g. `10.96.0.0/14`). - * - * All services in the cluster get assigned a unique IPv4 address from these - * ranges. Only a single range is supported. - * - * This field cannot be changed after creating a cluster. - * @param string $azureClusterControlPlaneVersion The Kubernetes version to run on control plane replicas - * (e.g. `1.19.10-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. - * @param string $azureClusterControlPlaneSshConfigAuthorizedKey The SSH public key data for VMs managed by Anthos. This accepts - * the authorized_keys file format used in OpenSSH according to the sshd(8) - * manual page. - * @param string $azureClusterAuthorizationAdminUsersUsername The name of the user, e.g. `my-gcp-id@gmail.com`. - * @param string $azureClusterFleetProject The name of the Fleet host project where this cluster will be - * registered. - * - * Project names are formatted as - * `projects/`. - */ -function update_azure_cluster_sample( - string $azureClusterAzureRegion, - string $azureClusterResourceGroupId, - string $azureClusterAzureClient, - string $azureClusterNetworkingVirtualNetworkId, - string $azureClusterNetworkingPodAddressCidrBlocksElement, - string $azureClusterNetworkingServiceAddressCidrBlocksElement, - string $azureClusterControlPlaneVersion, - string $azureClusterControlPlaneSshConfigAuthorizedKey, - string $azureClusterAuthorizationAdminUsersUsername, - string $azureClusterFleetProject -): void { - // Create a client. - $azureClustersClient = new AzureClustersClient(); - - // Prepare any non-scalar elements to be passed along with the request. - $azureClusterNetworkingPodAddressCidrBlocks = [ - $azureClusterNetworkingPodAddressCidrBlocksElement, - ]; - $azureClusterNetworkingServiceAddressCidrBlocks = [ - $azureClusterNetworkingServiceAddressCidrBlocksElement, - ]; - $azureClusterNetworking = (new AzureClusterNetworking()) - ->setVirtualNetworkId($azureClusterNetworkingVirtualNetworkId) - ->setPodAddressCidrBlocks($azureClusterNetworkingPodAddressCidrBlocks) - ->setServiceAddressCidrBlocks($azureClusterNetworkingServiceAddressCidrBlocks); - $azureClusterControlPlaneSshConfig = (new AzureSshConfig()) - ->setAuthorizedKey($azureClusterControlPlaneSshConfigAuthorizedKey); - $azureClusterControlPlane = (new AzureControlPlane()) - ->setVersion($azureClusterControlPlaneVersion) - ->setSshConfig($azureClusterControlPlaneSshConfig); - $azureClusterUser = (new AzureClusterUser()) - ->setUsername($azureClusterAuthorizationAdminUsersUsername); - $azureClusterAuthorizationAdminUsers = [$azureClusterUser,]; - $azureClusterAuthorization = (new AzureAuthorization()) - ->setAdminUsers($azureClusterAuthorizationAdminUsers); - $azureClusterFleet = (new Fleet()) - ->setProject($azureClusterFleetProject); - $azureCluster = (new AzureCluster()) - ->setAzureRegion($azureClusterAzureRegion) - ->setResourceGroupId($azureClusterResourceGroupId) - ->setAzureClient($azureClusterAzureClient) - ->setNetworking($azureClusterNetworking) - ->setControlPlane($azureClusterControlPlane) - ->setAuthorization($azureClusterAuthorization) - ->setFleet($azureClusterFleet); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureCluster $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 -{ - $azureClusterAzureRegion = '[AZURE_REGION]'; - $azureClusterResourceGroupId = '[RESOURCE_GROUP_ID]'; - $azureClusterAzureClient = '[AZURE_CLIENT]'; - $azureClusterNetworkingVirtualNetworkId = '[VIRTUAL_NETWORK_ID]'; - $azureClusterNetworkingPodAddressCidrBlocksElement = '[POD_ADDRESS_CIDR_BLOCKS]'; - $azureClusterNetworkingServiceAddressCidrBlocksElement = '[SERVICE_ADDRESS_CIDR_BLOCKS]'; - $azureClusterControlPlaneVersion = '[VERSION]'; - $azureClusterControlPlaneSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; - $azureClusterAuthorizationAdminUsersUsername = '[USERNAME]'; - $azureClusterFleetProject = '[PROJECT]'; - - update_azure_cluster_sample( - $azureClusterAzureRegion, - $azureClusterResourceGroupId, - $azureClusterAzureClient, - $azureClusterNetworkingVirtualNetworkId, - $azureClusterNetworkingPodAddressCidrBlocksElement, - $azureClusterNetworkingServiceAddressCidrBlocksElement, - $azureClusterControlPlaneVersion, - $azureClusterControlPlaneSshConfigAuthorizedKey, - $azureClusterAuthorizationAdminUsersUsername, - $azureClusterFleetProject - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureCluster_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php b/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php deleted file mode 100644 index b17ab2f250b9..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/samples/V1/AzureClustersClient/update_azure_node_pool.php +++ /dev/null @@ -1,129 +0,0 @@ -setAuthorizedKey($azureNodePoolConfigSshConfigAuthorizedKey); - $azureNodePoolConfig = (new AzureNodeConfig()) - ->setSshConfig($azureNodePoolConfigSshConfig); - $azureNodePoolAutoscaling = (new AzureNodePoolAutoscaling()) - ->setMinNodeCount($azureNodePoolAutoscalingMinNodeCount) - ->setMaxNodeCount($azureNodePoolAutoscalingMaxNodeCount); - $azureNodePoolMaxPodsConstraint = (new MaxPodsConstraint()) - ->setMaxPodsPerNode($azureNodePoolMaxPodsConstraintMaxPodsPerNode); - $azureNodePool = (new AzureNodePool()) - ->setVersion($azureNodePoolVersion) - ->setConfig($azureNodePoolConfig) - ->setSubnetId($azureNodePoolSubnetId) - ->setAutoscaling($azureNodePoolAutoscaling) - ->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AzureNodePool $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 -{ - $azureNodePoolVersion = '[VERSION]'; - $azureNodePoolConfigSshConfigAuthorizedKey = '[AUTHORIZED_KEY]'; - $azureNodePoolSubnetId = '[SUBNET_ID]'; - $azureNodePoolAutoscalingMinNodeCount = 0; - $azureNodePoolAutoscalingMaxNodeCount = 0; - $azureNodePoolMaxPodsConstraintMaxPodsPerNode = 0; - - update_azure_node_pool_sample( - $azureNodePoolVersion, - $azureNodePoolConfigSshConfigAuthorizedKey, - $azureNodePoolSubnetId, - $azureNodePoolAutoscalingMinNodeCount, - $azureNodePoolAutoscalingMaxNodeCount, - $azureNodePoolMaxPodsConstraintMaxPodsPerNode - ); -} -// [END gkemulticloud_v1_generated_AzureClusters_UpdateAzureNodePool_sync] diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php deleted file mode 100644 index e8d698f9abe6..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/AttachedClustersClient.php +++ /dev/null @@ -1,34 +0,0 @@ -locationName('[PROJECT]', '[LOCATION]'); - * $attachedCluster = new AttachedCluster(); - * $attachedClusterId = 'attached_cluster_id'; - * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'createAttachedCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - */ -class AttachedClustersGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AttachedClusters'; - - /** The default address of the service. */ - const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $attachedClusterNameTemplate; - - private static $attachedServerConfigNameTemplate; - - private static $locationNameTemplate; - - private static $pathTemplateMap; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/attached_clusters_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/attached_clusters_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/attached_clusters_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/attached_clusters_rest_client_config.php', - ], - ], - ]; - } - - private static function getAttachedClusterNameTemplate() - { - if (self::$attachedClusterNameTemplate == null) { - self::$attachedClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/attachedClusters/{attached_cluster}'); - } - - return self::$attachedClusterNameTemplate; - } - - private static function getAttachedServerConfigNameTemplate() - { - if (self::$attachedServerConfigNameTemplate == null) { - self::$attachedServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/attachedServerConfig'); - } - - return self::$attachedServerConfigNameTemplate; - } - - private static function getLocationNameTemplate() - { - if (self::$locationNameTemplate == null) { - self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); - } - - return self::$locationNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'attachedCluster' => self::getAttachedClusterNameTemplate(), - 'attachedServerConfig' => self::getAttachedServerConfigNameTemplate(), - 'location' => self::getLocationNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * attached_cluster resource. - * - * @param string $project - * @param string $location - * @param string $attachedCluster - * - * @return string The formatted attached_cluster resource. - */ - public static function attachedClusterName($project, $location, $attachedCluster) - { - return self::getAttachedClusterNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'attached_cluster' => $attachedCluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * attached_server_config resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted attached_server_config resource. - */ - public static function attachedServerConfigName($project, $location) - { - return self::getAttachedServerConfigNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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($project, $location) - { - return self::getLocationNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - attachedCluster: projects/{project}/locations/{location}/attachedClusters/{attached_cluster} - * - attachedServerConfig: projects/{project}/locations/{location}/attachedServerConfig - * - location: projects/{project}/locations/{location} - * - * 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($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Constructor. - * - * @param array $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 'gkemulticloud.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @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. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** - * Creates a new - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * on a given GCP project and region. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $attachedClustersClient = new AttachedClustersClient(); - * try { - * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $attachedCluster = new AttachedCluster(); - * $attachedClusterId = 'attached_cluster_id'; - * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $attachedClustersClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'createAttachedCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AttachedCluster $attachedCluster Required. The specification of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. - * @param string $attachedClusterId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAttachedCluster($parent, $attachedCluster, $attachedClusterId, array $optionalArgs = []) - { - $request = new CreateAttachedClusterRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAttachedCluster($attachedCluster); - $request->setAttachedClusterId($attachedClusterId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $attachedClustersClient = new AttachedClustersClient(); - * try { - * $formattedName = $attachedClustersClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); - * $operationResponse = $attachedClustersClient->deleteAttachedCluster($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $attachedClustersClient->deleteAttachedCluster($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'deleteAttachedCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. - * - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the resource. - * @type bool $allowMissing - * If set to true, and the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * is not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * - * Useful for idempotent deletion. - * @type bool $ignoreErrors - * If set to true, the deletion of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will succeed even if errors occur during deleting in cluster resources. - * Using this parameter may result in orphaned resources in the cluster. - * @type string $etag - * The current etag of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAttachedCluster($name, array $optionalArgs = []) - { - $request = new DeleteAttachedClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['ignoreErrors'])) { - $request->setIgnoreErrors($optionalArgs['ignoreErrors']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Generates the install manifest to be installed on the target cluster. - * - * Sample code: - * ``` - * $attachedClustersClient = new AttachedClustersClient(); - * try { - * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $attachedClusterId = 'attached_cluster_id'; - * $platformVersion = 'platform_version'; - * $response = $attachedClustersClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param string $attachedClusterId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * name formatted as - * `projects//locations//attachedClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * - * When generating an install manifest for importing an existing Membership - * resource, the attached_cluster_id field must be the Membership id. - * - * Membership names are formatted as `resource name formatted as - * `projects//locations//memberships/`. - * @param string $platformVersion Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAttachedClusterInstallManifestResponse - * - * @throws ApiException if the remote call fails - */ - public function generateAttachedClusterInstallManifest($parent, $attachedClusterId, $platformVersion, array $optionalArgs = []) - { - $request = new GenerateAttachedClusterInstallManifestRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAttachedClusterId($attachedClusterId); - $request->setPlatformVersion($platformVersion); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GenerateAttachedClusterInstallManifest', GenerateAttachedClusterInstallManifestResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. - * - * Sample code: - * ``` - * $attachedClustersClient = new AttachedClustersClient(); - * try { - * $formattedName = $attachedClustersClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); - * $response = $attachedClustersClient->getAttachedCluster($formattedName); - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to describe. - * - * `AttachedCluster` names are formatted as - * `projects//locations//attachedClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AttachedCluster - * - * @throws ApiException if the remote call fails - */ - public function getAttachedCluster($name, array $optionalArgs = []) - { - $request = new GetAttachedClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAttachedCluster', AttachedCluster::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns information, such as supported Kubernetes versions, on a given - * Google Cloud location. - * - * Sample code: - * ``` - * $attachedClustersClient = new AttachedClustersClient(); - * try { - * $formattedName = $attachedClustersClient->attachedServerConfigName('[PROJECT]', '[LOCATION]'); - * $response = $attachedClustersClient->getAttachedServerConfig($formattedName); - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] - * resource to describe. - * - * `AttachedServerConfig` names are formatted as - * `projects//locations//attachedServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AttachedServerConfig - * - * @throws ApiException if the remote call fails - */ - public function getAttachedServerConfig($name, array $optionalArgs = []) - { - $request = new GetAttachedServerConfigRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAttachedServerConfig', AttachedServerConfig::class, $optionalArgs, $request)->wait(); - } - - /** - * Imports creates a new - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * by importing an existing Fleet Membership resource. - * - * Attached Clusters created before the introduction of the Anthos Multi-Cloud - * API can be imported through this method. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $attachedClustersClient = new AttachedClustersClient(); - * try { - * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $fleetMembership = 'fleet_membership'; - * $platformVersion = 'platform_version'; - * $distribution = 'distribution'; - * $operationResponse = $attachedClustersClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $attachedClustersClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'importAttachedCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * will be created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param string $fleetMembership Required. The name of the fleet membership resource to import. - * @param string $platformVersion Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). - * - * You can list all supported versions on a given Google Cloud region by - * calling - * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. - * @param string $distribution Required. The Kubernetes distribution of the underlying attached cluster. - * - * Supported values: ["eks", "aks"]. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually import the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function importAttachedCluster($parent, $fleetMembership, $platformVersion, $distribution, array $optionalArgs = []) - { - $request = new ImportAttachedClusterRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setFleetMembership($fleetMembership); - $request->setPlatformVersion($platformVersion); - $request->setDistribution($distribution); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('ImportAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] - * resources on a given Google Cloud project and region. - * - * Sample code: - * ``` - * $attachedClustersClient = new AttachedClustersClient(); - * try { - * $formattedParent = $attachedClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * // Iterate over pages of elements - * $pagedResponse = $attachedClustersClient->listAttachedClusters($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $attachedClustersClient->listAttachedClusters($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location which owns this collection of - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAttachedClusters($parent, array $optionalArgs = []) - { - $request = new ListAttachedClustersRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAttachedClusters', $optionalArgs, ListAttachedClustersResponse::class, $request); - } - - /** - * Updates an - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. - * - * Sample code: - * ``` - * $attachedClustersClient = new AttachedClustersClient(); - * try { - * $attachedCluster = new AttachedCluster(); - * $updateMask = new FieldMask(); - * $operationResponse = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $attachedClustersClient->updateAttachedCluster($attachedCluster, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $attachedClustersClient->resumeOperation($operationName, 'updateAttachedCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $attachedClustersClient->close(); - * } - * ``` - * - * @param AttachedCluster $attachedCluster Required. The - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - * to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from - * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: - * - * * `description`. - * * `annotations`. - * * `platform_version`. - * * `authorization.admin_users`. - * * `logging_config.component_config.enable_components`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually update the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAttachedCluster($attachedCluster, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAttachedClusterRequest(); - $requestParamHeaders = []; - $request->setAttachedCluster($attachedCluster); - $request->setUpdateMask($updateMask); - $requestParamHeaders['attached_cluster.name'] = $attachedCluster->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAttachedCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php deleted file mode 100644 index 8ce2863a684c..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AwsClustersGapicClient.php +++ /dev/null @@ -1,1365 +0,0 @@ -locationName('[PROJECT]', '[LOCATION]'); - * $awsCluster = new AwsCluster(); - * $awsClusterId = 'aws_cluster_id'; - * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - */ -class AwsClustersGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AwsClusters'; - - /** The default address of the service. */ - const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $awsClusterNameTemplate; - - private static $awsNodePoolNameTemplate; - - private static $awsServerConfigNameTemplate; - - private static $locationNameTemplate; - - private static $pathTemplateMap; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/aws_clusters_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/aws_clusters_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/aws_clusters_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/aws_clusters_rest_client_config.php', - ], - ], - ]; - } - - private static function getAwsClusterNameTemplate() - { - if (self::$awsClusterNameTemplate == null) { - self::$awsClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsClusters/{aws_cluster}'); - } - - return self::$awsClusterNameTemplate; - } - - private static function getAwsNodePoolNameTemplate() - { - if (self::$awsNodePoolNameTemplate == null) { - self::$awsNodePoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool}'); - } - - return self::$awsNodePoolNameTemplate; - } - - private static function getAwsServerConfigNameTemplate() - { - if (self::$awsServerConfigNameTemplate == null) { - self::$awsServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/awsServerConfig'); - } - - return self::$awsServerConfigNameTemplate; - } - - private static function getLocationNameTemplate() - { - if (self::$locationNameTemplate == null) { - self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); - } - - return self::$locationNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'awsCluster' => self::getAwsClusterNameTemplate(), - 'awsNodePool' => self::getAwsNodePoolNameTemplate(), - 'awsServerConfig' => self::getAwsServerConfigNameTemplate(), - 'location' => self::getLocationNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a aws_cluster - * resource. - * - * @param string $project - * @param string $location - * @param string $awsCluster - * - * @return string The formatted aws_cluster resource. - */ - public static function awsClusterName($project, $location, $awsCluster) - { - return self::getAwsClusterNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'aws_cluster' => $awsCluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * aws_node_pool resource. - * - * @param string $project - * @param string $location - * @param string $awsCluster - * @param string $awsNodePool - * - * @return string The formatted aws_node_pool resource. - */ - public static function awsNodePoolName($project, $location, $awsCluster, $awsNodePool) - { - return self::getAwsNodePoolNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'aws_cluster' => $awsCluster, - 'aws_node_pool' => $awsNodePool, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * aws_server_config resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted aws_server_config resource. - */ - public static function awsServerConfigName($project, $location) - { - return self::getAwsServerConfigNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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($project, $location) - { - return self::getLocationNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - awsCluster: projects/{project}/locations/{location}/awsClusters/{aws_cluster} - * - awsNodePool: projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool} - * - awsServerConfig: projects/{project}/locations/{location}/awsServerConfig - * - location: projects/{project}/locations/{location} - * - * 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($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Constructor. - * - * @param array $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 'gkemulticloud.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @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. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** - * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource on a given GCP project and region. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedParent = $awsClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $awsCluster = new AwsCluster(); - * $awsClusterId = 'aws_cluster_id'; - * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be - * created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AwsCluster $awsCluster Required. The specification of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. - * @param string $awsClusterId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name - * formatted as - * `projects//locations//awsClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAwsCluster($parent, $awsCluster, $awsClusterId, array $optionalArgs = []) - { - $request = new CreateAwsClusterRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAwsCluster($awsCluster); - $request->setAwsClusterId($awsClusterId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], - * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedParent = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * $awsNodePool = new AwsNodePool(); - * $awsNodePoolId = 'aws_node_pool_id'; - * $operationResponse = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'createAwsNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource where this node pool will be created. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AwsNodePool $awsNodePool Required. The specification of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. - * @param string $awsNodePoolId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name - * formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the node - * pool. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAwsNodePool($parent, $awsNodePool, $awsNodePoolId, array $optionalArgs = []) - { - $request = new CreateAwsNodePoolRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAwsNodePool($awsNodePool); - $request->setAwsNodePoolId($awsNodePoolId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource. - * - * Fails if the cluster has one or more associated - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * $operationResponse = $awsClustersClient->deleteAwsCluster($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->deleteAwsCluster($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'deleteAwsCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the resource. - * @type bool $allowMissing - * If set to true, and the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * - * Useful for idempotent deletion. - * @type string $etag - * The current etag of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAwsCluster($name, array $optionalArgs = []) - { - $request = new DeleteAwsClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - * $operationResponse = $awsClustersClient->deleteAwsNodePool($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->deleteAwsNodePool($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'deleteAwsNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. - * - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the node - * pool. - * @type bool $allowMissing - * If set to true, and the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * - * Useful for idempotent deletion. - * @type string $etag - * The current ETag of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAwsNodePool($name, array $optionalArgs = []) - { - $request = new DeleteAwsNodePoolRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Generates a short-lived access token to authenticate to a given - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedAwsCluster = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * $response = $awsClustersClient->generateAwsAccessToken($formattedAwsCluster); - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $awsCluster Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * authenticate to. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAwsAccessTokenResponse - * - * @throws ApiException if the remote call fails - */ - public function generateAwsAccessToken($awsCluster, array $optionalArgs = []) - { - $request = new GenerateAwsAccessTokenRequest(); - $requestParamHeaders = []; - $request->setAwsCluster($awsCluster); - $requestParamHeaders['aws_cluster'] = $awsCluster; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GenerateAwsAccessToken', GenerateAwsAccessTokenResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * $response = $awsClustersClient->getAwsCluster($formattedName); - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to - * describe. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AwsCluster - * - * @throws ApiException if the remote call fails - */ - public function getAwsCluster($name, array $optionalArgs = []) - { - $request = new GetAwsClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAwsCluster', AwsCluster::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - * $response = $awsClustersClient->getAwsNodePool($formattedName); - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to - * describe. - * - * `AwsNodePool` names are formatted as - * `projects//locations//awsClusters//awsNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AwsNodePool - * - * @throws ApiException if the remote call fails - */ - public function getAwsNodePool($name, array $optionalArgs = []) - { - $request = new GetAwsNodePoolRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAwsNodePool', AwsNodePool::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns information, such as supported AWS regions and Kubernetes - * versions, on a given Google Cloud location. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedName = $awsClustersClient->awsServerConfigName('[PROJECT]', '[LOCATION]'); - * $response = $awsClustersClient->getAwsServerConfig($formattedName); - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource - * to describe. - * - * `AwsServerConfig` names are formatted as - * `projects//locations//awsServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AwsServerConfig - * - * @throws ApiException if the remote call fails - */ - public function getAwsServerConfig($name, array $optionalArgs = []) - { - $request = new GetAwsServerConfigRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAwsServerConfig', AwsServerConfig::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - * on a given Google Cloud project and region. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedParent = $awsClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * // Iterate over pages of elements - * $pagedResponse = $awsClustersClient->listAwsClusters($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $awsClustersClient->listAwsClusters($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location which owns this collection of - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAwsClusters($parent, array $optionalArgs = []) - { - $request = new ListAwsClustersRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAwsClusters', $optionalArgs, ListAwsClustersResponse::class, $request); - } - - /** - * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resources on a given - * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $formattedParent = $awsClustersClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - * // Iterate over pages of elements - * $pagedResponse = $awsClustersClient->listAwsNodePools($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $awsClustersClient->listAwsNodePools($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent `AwsCluster` which owns this collection of - * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. - * - * `AwsCluster` names are formatted as - * `projects//locations//awsClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAwsNodePools($parent, array $optionalArgs = []) - { - $request = new ListAwsNodePoolsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAwsNodePools', $optionalArgs, ListAwsNodePoolsResponse::class, $request); - } - - /** - * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $awsCluster = new AwsCluster(); - * $updateMask = new FieldMask(); - * $operationResponse = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->updateAwsCluster($awsCluster, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'updateAwsCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param AwsCluster $awsCluster Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - * resource to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]: - * - * * `description`. - * * `annotations`. - * * `control_plane.version`. - * * `authorization.admin_users`. - * * `control_plane.aws_services_authentication.role_arn`. - * * `control_plane.aws_services_authentication.role_session_name`. - * * `control_plane.config_encryption.kms_key_arn`. - * * `control_plane.instance_type`. - * * `control_plane.security_group_ids`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.secret_arn`. - * * `control_plane.proxy_config.secret_version`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.iops`. - * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.ssh_config`. - * * `control_plane.ssh_config.ec2_key_pair`. - * * `control_plane.instance_placement.tenancy`. - * * `control_plane.iam_instance_profile`. - * * `logging_config.component_config.enable_components`. - * * `control_plane.tags`. - * * `monitoring_config.managed_prometheus_config.enabled`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually update the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAwsCluster($awsCluster, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAwsClusterRequest(); - $requestParamHeaders = []; - $request->setAwsCluster($awsCluster); - $request->setUpdateMask($updateMask); - $requestParamHeaders['aws_cluster.name'] = $awsCluster->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAwsCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - * - * Sample code: - * ``` - * $awsClustersClient = new AwsClustersClient(); - * try { - * $awsNodePool = new AwsNodePool(); - * $updateMask = new FieldMask(); - * $operationResponse = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $awsClustersClient->updateAwsNodePool($awsNodePool, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $awsClustersClient->resumeOperation($operationName, 'updateAwsNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $awsClustersClient->close(); - * } - * ``` - * - * @param AwsNodePool $awsNodePool Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - * resource to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]: - * - * * `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.config_encryption.kms_key_arn`. - * * `config.security_group_ids`. - * * `config.root_volume.iops`. - * * `config.root_volume.kms_key_arn`. - * * `config.root_volume.volume_type`. - * * `config.root_volume.size_gib`. - * * `config.proxy_config`. - * * `config.proxy_config.secret_arn`. - * * `config.proxy_config.secret_version`. - * * `config.ssh_config`. - * * `config.ssh_config.ec2_key_pair`. - * * `config.instance_placement.tenancy`. - * * `config.iam_instance_profile`. - * * `config.labels`. - * * `config.tags`. - * * `config.autoscaling_metrics_collection`. - * * `config.autoscaling_metrics_collection.granularity`. - * * `config.autoscaling_metrics_collection.metrics`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but don't actually update the node pool. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAwsNodePool($awsNodePool, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAwsNodePoolRequest(); - $requestParamHeaders = []; - $request->setAwsNodePool($awsNodePool); - $request->setUpdateMask($updateMask); - $requestParamHeaders['aws_node_pool.name'] = $awsNodePool->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAwsNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php deleted file mode 100644 index 6bfc862231fd..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/Gapic/AzureClustersGapicClient.php +++ /dev/null @@ -1,1697 +0,0 @@ -locationName('[PROJECT]', '[LOCATION]'); - * $azureClient = new AzureClient(); - * $azureClientId = 'azure_client_id'; - * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureClient'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - */ -class AzureClustersGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.cloud.gkemulticloud.v1.AzureClusters'; - - /** The default address of the service. */ - const SERVICE_ADDRESS = 'gkemulticloud.googleapis.com'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $azureClientNameTemplate; - - private static $azureClusterNameTemplate; - - private static $azureNodePoolNameTemplate; - - private static $azureServerConfigNameTemplate; - - private static $locationNameTemplate; - - private static $pathTemplateMap; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/azure_clusters_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/azure_clusters_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/azure_clusters_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/azure_clusters_rest_client_config.php', - ], - ], - ]; - } - - private static function getAzureClientNameTemplate() - { - if (self::$azureClientNameTemplate == null) { - self::$azureClientNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClients/{azure_client}'); - } - - return self::$azureClientNameTemplate; - } - - private static function getAzureClusterNameTemplate() - { - if (self::$azureClusterNameTemplate == null) { - self::$azureClusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClusters/{azure_cluster}'); - } - - return self::$azureClusterNameTemplate; - } - - private static function getAzureNodePoolNameTemplate() - { - if (self::$azureNodePoolNameTemplate == null) { - self::$azureNodePoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool}'); - } - - return self::$azureNodePoolNameTemplate; - } - - private static function getAzureServerConfigNameTemplate() - { - if (self::$azureServerConfigNameTemplate == null) { - self::$azureServerConfigNameTemplate = new PathTemplate('projects/{project}/locations/{location}/azureServerConfig'); - } - - return self::$azureServerConfigNameTemplate; - } - - private static function getLocationNameTemplate() - { - if (self::$locationNameTemplate == null) { - self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}'); - } - - return self::$locationNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'azureClient' => self::getAzureClientNameTemplate(), - 'azureCluster' => self::getAzureClusterNameTemplate(), - 'azureNodePool' => self::getAzureNodePoolNameTemplate(), - 'azureServerConfig' => self::getAzureServerConfigNameTemplate(), - 'location' => self::getLocationNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a azure_client - * resource. - * - * @param string $project - * @param string $location - * @param string $azureClient - * - * @return string The formatted azure_client resource. - */ - public static function azureClientName($project, $location, $azureClient) - { - return self::getAzureClientNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'azure_client' => $azureClient, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * azure_cluster resource. - * - * @param string $project - * @param string $location - * @param string $azureCluster - * - * @return string The formatted azure_cluster resource. - */ - public static function azureClusterName($project, $location, $azureCluster) - { - return self::getAzureClusterNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'azure_cluster' => $azureCluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * azure_node_pool resource. - * - * @param string $project - * @param string $location - * @param string $azureCluster - * @param string $azureNodePool - * - * @return string The formatted azure_node_pool resource. - */ - public static function azureNodePoolName($project, $location, $azureCluster, $azureNodePool) - { - return self::getAzureNodePoolNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - 'azure_cluster' => $azureCluster, - 'azure_node_pool' => $azureNodePool, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * azure_server_config resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted azure_server_config resource. - */ - public static function azureServerConfigName($project, $location) - { - return self::getAzureServerConfigNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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($project, $location) - { - return self::getLocationNameTemplate()->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - azureClient: projects/{project}/locations/{location}/azureClients/{azure_client} - * - azureCluster: projects/{project}/locations/{location}/azureClusters/{azure_cluster} - * - azureNodePool: projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool} - * - azureServerConfig: projects/{project}/locations/{location}/azureServerConfig - * - location: projects/{project}/locations/{location} - * - * 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($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * 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 = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Constructor. - * - * @param array $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 'gkemulticloud.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @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. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** - * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource on a given Google Cloud project and region. - * - * `AzureClient` resources hold client authentication - * information needed by the Anthos Multicloud API to manage Azure resources - * on your Azure subscription on your behalf. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $azureClient = new AzureClient(); - * $azureClientId = 'azure_client_id'; - * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureClient'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be - * created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AzureClient $azureClient Required. The specification of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. - * @param string $azureClientId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name - * formatted as - * `projects//locations//azureClients/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the client. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAzureClient($parent, $azureClient, $azureClientId, array $optionalArgs = []) - { - $request = new CreateAzureClientRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAzureClient($azureClient); - $request->setAzureClientId($azureClientId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAzureClient', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource on a given GCP project and region. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * $azureCluster = new AzureCluster(); - * $azureClusterId = 'azure_cluster_id'; - * $operationResponse = $azureClustersClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location where this - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be - * created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AzureCluster $azureCluster Required. The specification of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. - * @param string $azureClusterId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name - * formatted as - * `projects//locations//azureClusters/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAzureCluster($parent, $azureCluster, $azureClusterId, array $optionalArgs = []) - { - $request = new CreateAzureClusterRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAzureCluster($azureCluster); - $request->setAzureClusterId($azureClusterId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], - * attached to a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * $azureNodePool = new AzureNodePool(); - * $azureNodePoolId = 'azure_node_pool_id'; - * $operationResponse = $azureClustersClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'createAzureNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource where this node pool will be created. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param AzureNodePool $azureNodePool Required. The specification of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. - * @param string $azureNodePoolId Required. A client provided ID the resource. Must be unique within the - * parent resource. - * - * The provided ID will be part of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name - * formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * - * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually create the node - * pool. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function createAzureNodePool($parent, $azureNodePool, $azureNodePoolId, array $optionalArgs = []) - { - $request = new CreateAzureNodePoolRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAzureNodePool($azureNodePool); - $request->setAzureNodePoolId($azureNodePoolId); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resource. - * - * If the client is used by one or more clusters, deletion will - * fail and a `FAILED_PRECONDITION` error will be returned. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - * $operationResponse = $azureClustersClient->deleteAzureClient($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->deleteAzureClient($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureClient'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. - * - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $allowMissing - * If set to true, and the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * - * Useful for idempotent deletion. - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the resource. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAzureClient($name, array $optionalArgs = []) - { - $request = new DeleteAzureClientRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAzureClient', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * - * Fails if the cluster has one or more associated - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * $operationResponse = $azureClustersClient->deleteAzureCluster($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->deleteAzureCluster($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. - * - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $allowMissing - * If set to true, and the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not - * found, the request will succeed but no action will be taken on the server - * and a completed [Operation][google.longrunning.Operation] will be returned. - * - * Useful for idempotent deletion. - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the resource. - * @type string $etag - * The current etag of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided etag does not match the current etag of the cluster, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAzureCluster($name, array $optionalArgs = []) - { - $request = new DeleteAzureClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Deletes a specific - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. - * - * If successful, the response contains a newly created - * [Operation][google.longrunning.Operation] resource that can be - * described to track the status of the operation. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - * $operationResponse = $azureClustersClient->deleteAzureNodePool($formattedName); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->deleteAzureNodePool($formattedName); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'deleteAzureNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * // operation succeeded and returns no value - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. - * - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually delete the node - * pool. - * @type bool $allowMissing - * If set to true, and the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is - * not found, the request will succeed but no action will be taken on the - * server and a completed [Operation][google.longrunning.Operation] will be - * returned. - * - * Useful for idempotent deletion. - * @type string $etag - * The current ETag of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * - * Allows clients to perform deletions through optimistic concurrency control. - * - * If the provided ETag does not match the current etag of the node pool, - * the request will fail and an ABORTED error will be returned. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function deleteAzureNodePool($name, array $optionalArgs = []) - { - $request = new DeleteAzureNodePoolRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['allowMissing'])) { - $request->setAllowMissing($optionalArgs['allowMissing']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('DeleteAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Generates a short-lived access token to authenticate to a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedAzureCluster = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * $response = $azureClustersClient->generateAzureAccessToken($formattedAzureCluster); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $azureCluster Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * authenticate to. - * - * `AzureCluster` names are formatted as - * `projects//locations//AzureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\GenerateAzureAccessTokenResponse - * - * @throws ApiException if the remote call fails - */ - public function generateAzureAccessToken($azureCluster, array $optionalArgs = []) - { - $request = new GenerateAzureAccessTokenRequest(); - $requestParamHeaders = []; - $request->setAzureCluster($azureCluster); - $requestParamHeaders['azure_cluster'] = $azureCluster; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GenerateAzureAccessToken', GenerateAzureAccessTokenResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - * $response = $azureClustersClient->getAzureClient($formattedName); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to - * describe. - * - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are - * formatted as - * `projects//locations//azureClients/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AzureClient - * - * @throws ApiException if the remote call fails - */ - public function getAzureClient($name, array $optionalArgs = []) - { - $request = new GetAzureClientRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAzureClient', AzureClient::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * $response = $azureClustersClient->getAzureCluster($formattedName); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to - * describe. - * - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AzureCluster - * - * @throws ApiException if the remote call fails - */ - public function getAzureCluster($name, array $optionalArgs = []) - { - $request = new GetAzureClusterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAzureCluster', AzureCluster::class, $optionalArgs, $request)->wait(); - } - - /** - * Describes a specific - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - * $response = $azureClustersClient->getAzureNodePool($formattedName); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to - * describe. - * - * `AzureNodePool` names are formatted as - * `projects//locations//azureClusters//azureNodePools/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AzureNodePool - * - * @throws ApiException if the remote call fails - */ - public function getAzureNodePool($name, array $optionalArgs = []) - { - $request = new GetAzureNodePoolRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAzureNodePool', AzureNodePool::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns information, such as supported Azure regions and Kubernetes - * versions, on a given Google Cloud location. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedName = $azureClustersClient->azureServerConfigName('[PROJECT]', '[LOCATION]'); - * $response = $azureClustersClient->getAzureServerConfig($formattedName); - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the - * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] - * resource to describe. - * - * `AzureServerConfig` names are formatted as - * `projects//locations//azureServerConfig`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * 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 \Google\Cloud\GkeMultiCloud\V1\AzureServerConfig - * - * @throws ApiException if the remote call fails - */ - public function getAzureServerConfig($name, array $optionalArgs = []) - { - $request = new GetAzureServerConfigRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAzureServerConfig', AzureServerConfig::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - * resources on a given Google Cloud project and region. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * // Iterate over pages of elements - * $pagedResponse = $azureClustersClient->listAzureClients($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $azureClustersClient->listAzureClients($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location which owns this collection of - * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAzureClients($parent, array $optionalArgs = []) - { - $request = new ListAzureClientsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAzureClients', $optionalArgs, ListAzureClientsResponse::class, $request); - } - - /** - * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resources on a given Google Cloud project and region. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->locationName('[PROJECT]', '[LOCATION]'); - * // Iterate over pages of elements - * $pagedResponse = $azureClustersClient->listAzureClusters($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $azureClustersClient->listAzureClusters($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent location which owns this collection of - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources. - * - * Location names are formatted as `projects//locations/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAzureClusters($parent, array $optionalArgs = []) - { - $request = new ListAzureClustersRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAzureClusters', $optionalArgs, ListAzureClustersResponse::class, $request); - } - - /** - * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resources on a given - * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $formattedParent = $azureClustersClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - * // Iterate over pages of elements - * $pagedResponse = $azureClustersClient->listAzureNodePools($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $azureClustersClient->listAzureNodePools($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent `AzureCluster` which owns this collection of - * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. - * - * `AzureCluster` names are formatted as - * `projects//locations//azureClusters/`. - * - * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on Google Cloud resource names. - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @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 \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listAzureNodePools($parent, array $optionalArgs = []) - { - $request = new ListAzureNodePoolsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAzureNodePools', $optionalArgs, ListAzureNodePoolsResponse::class, $request); - } - - /** - * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $azureCluster = new AzureCluster(); - * $updateMask = new FieldMask(); - * $operationResponse = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->updateAzureCluster($azureCluster, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'updateAzureCluster'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param AzureCluster $azureCluster Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - * resource to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - * - * * `description`. - * * `azureClient`. - * * `control_plane.version`. - * * `control_plane.vm_size`. - * * `annotations`. - * * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. - * * `control_plane.proxy_config`. - * * `control_plane.proxy_config.resource_group_id`. - * * `control_plane.proxy_config.secret_id`. - * * `control_plane.ssh_config.authorized_key`. - * * `logging_config.component_config.enable_components` - * * `monitoring_config.managed_prometheus_config.enabled`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but do not actually update the cluster. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAzureCluster($azureCluster, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAzureClusterRequest(); - $requestParamHeaders = []; - $request->setAzureCluster($azureCluster); - $request->setUpdateMask($updateMask); - $requestParamHeaders['azure_cluster.name'] = $azureCluster->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAzureCluster', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - * - * Sample code: - * ``` - * $azureClustersClient = new AzureClustersClient(); - * try { - * $azureNodePool = new AzureNodePool(); - * $updateMask = new FieldMask(); - * $operationResponse = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $azureClustersClient->updateAzureNodePool($azureNodePool, $updateMask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $azureClustersClient->resumeOperation($operationName, 'updateAzureNodePool'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $azureClustersClient->close(); - * } - * ``` - * - * @param AzureNodePool $azureNodePool Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - * resource to update. - * @param FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. The elements of the repeated paths field can only include these - * fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: - * - * *. `annotations`. - * * `version`. - * * `autoscaling.min_node_count`. - * * `autoscaling.max_node_count`. - * * `config.ssh_config.authorized_key`. - * @param array $optionalArgs { - * Optional. - * - * @type bool $validateOnly - * If set, only validate the request, but don't actually update the node pool. - * @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 \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - */ - public function updateAzureNodePool($azureNodePool, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAzureNodePoolRequest(); - $requestParamHeaders = []; - $request->setAzureNodePool($azureNodePool); - $request->setUpdateMask($updateMask); - $requestParamHeaders['azure_node_pool.name'] = $azureNodePool->getName(); - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('UpdateAzureNodePool', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json deleted file mode 100644 index a69240b06fba..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.gkemulticloud.v1", - "libraryPackage": "Google\\Cloud\\GkeMultiCloud\\V1", - "services": { - "AttachedClusters": { - "clients": { - "grpc": { - "libraryClient": "AttachedClustersGapicClient", - "rpcs": { - "CreateAttachedCluster": { - "methods": [ - "createAttachedCluster" - ] - }, - "DeleteAttachedCluster": { - "methods": [ - "deleteAttachedCluster" - ] - }, - "GenerateAttachedClusterInstallManifest": { - "methods": [ - "generateAttachedClusterInstallManifest" - ] - }, - "GetAttachedCluster": { - "methods": [ - "getAttachedCluster" - ] - }, - "GetAttachedServerConfig": { - "methods": [ - "getAttachedServerConfig" - ] - }, - "ImportAttachedCluster": { - "methods": [ - "importAttachedCluster" - ] - }, - "ListAttachedClusters": { - "methods": [ - "listAttachedClusters" - ] - }, - "UpdateAttachedCluster": { - "methods": [ - "updateAttachedCluster" - ] - } - } - } - } - }, - "AwsClusters": { - "clients": { - "grpc": { - "libraryClient": "AwsClustersGapicClient", - "rpcs": { - "CreateAwsCluster": { - "methods": [ - "createAwsCluster" - ] - }, - "CreateAwsNodePool": { - "methods": [ - "createAwsNodePool" - ] - }, - "DeleteAwsCluster": { - "methods": [ - "deleteAwsCluster" - ] - }, - "DeleteAwsNodePool": { - "methods": [ - "deleteAwsNodePool" - ] - }, - "GenerateAwsAccessToken": { - "methods": [ - "generateAwsAccessToken" - ] - }, - "GetAwsCluster": { - "methods": [ - "getAwsCluster" - ] - }, - "GetAwsNodePool": { - "methods": [ - "getAwsNodePool" - ] - }, - "GetAwsServerConfig": { - "methods": [ - "getAwsServerConfig" - ] - }, - "ListAwsClusters": { - "methods": [ - "listAwsClusters" - ] - }, - "ListAwsNodePools": { - "methods": [ - "listAwsNodePools" - ] - }, - "UpdateAwsCluster": { - "methods": [ - "updateAwsCluster" - ] - }, - "UpdateAwsNodePool": { - "methods": [ - "updateAwsNodePool" - ] - } - } - } - } - }, - "AzureClusters": { - "clients": { - "grpc": { - "libraryClient": "AzureClustersGapicClient", - "rpcs": { - "CreateAzureClient": { - "methods": [ - "createAzureClient" - ] - }, - "CreateAzureCluster": { - "methods": [ - "createAzureCluster" - ] - }, - "CreateAzureNodePool": { - "methods": [ - "createAzureNodePool" - ] - }, - "DeleteAzureClient": { - "methods": [ - "deleteAzureClient" - ] - }, - "DeleteAzureCluster": { - "methods": [ - "deleteAzureCluster" - ] - }, - "DeleteAzureNodePool": { - "methods": [ - "deleteAzureNodePool" - ] - }, - "GenerateAzureAccessToken": { - "methods": [ - "generateAzureAccessToken" - ] - }, - "GetAzureClient": { - "methods": [ - "getAzureClient" - ] - }, - "GetAzureCluster": { - "methods": [ - "getAzureCluster" - ] - }, - "GetAzureNodePool": { - "methods": [ - "getAzureNodePool" - ] - }, - "GetAzureServerConfig": { - "methods": [ - "getAzureServerConfig" - ] - }, - "ListAzureClients": { - "methods": [ - "listAzureClients" - ] - }, - "ListAzureClusters": { - "methods": [ - "listAzureClusters" - ] - }, - "ListAzureNodePools": { - "methods": [ - "listAzureNodePools" - ] - }, - "UpdateAzureCluster": { - "methods": [ - "updateAzureCluster" - ] - }, - "UpdateAzureNodePool": { - "methods": [ - "updateAzureNodePool" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json deleted file mode 100644 index 79c17065c97a..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_client_config.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "interfaces": { - "google.cloud.gkemulticloud.v1.AttachedClusters": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "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": { - "CreateAttachedCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAttachedCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GenerateAttachedClusterInstallManifest": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAttachedCluster": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAttachedServerConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ImportAttachedCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAttachedClusters": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAttachedCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php deleted file mode 100644 index 7fd39638c34b..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_descriptor_config.php +++ /dev/null @@ -1,58 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AttachedClusters' => [ - 'CreateAttachedCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAttachedCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'ImportAttachedCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAttachedCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AttachedCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'ListAttachedClusters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAttachedClusters', - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php deleted file mode 100644 index 5d9c3003ee17..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/attached_clusters_rest_client_config.php +++ /dev/null @@ -1,153 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AttachedClusters' => [ - 'CreateAttachedCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters', - 'body' => 'attached_cluster', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'attached_cluster_id', - ], - ], - 'DeleteAttachedCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateAttachedClusterInstallManifest' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifest', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetAttachedCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAttachedServerConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/attachedServerConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ImportAttachedCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters:import', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAttachedClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attachedClusters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAttachedCluster' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{attached_cluster.name=projects/*/locations/*/attachedClusters/*}', - 'body' => 'attached_cluster', - 'placeholders' => [ - 'attached_cluster.name' => [ - 'getters' => [ - 'getAttachedCluster', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json deleted file mode 100644 index c7c0634a0a98..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_client_config.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "interfaces": { - "google.cloud.gkemulticloud.v1.AwsClusters": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "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": { - "CreateAwsCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAwsNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAwsCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAwsNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GenerateAwsAccessToken": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAwsCluster": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAwsNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAwsServerConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAwsClusters": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAwsNodePools": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAwsCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAwsNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php deleted file mode 100644 index 9a86fcf0c4b2..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_descriptor_config.php +++ /dev/null @@ -1,88 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AwsClusters' => [ - 'CreateAwsCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'CreateAwsNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAwsCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAwsNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAwsCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAwsNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AwsNodePool', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'ListAwsClusters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAwsClusters', - ], - ], - 'ListAwsNodePools' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAwsNodePools', - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php deleted file mode 100644 index e61743f714aa..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/aws_clusters_rest_client_config.php +++ /dev/null @@ -1,205 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AwsClusters' => [ - 'CreateAwsCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/awsClusters', - 'body' => 'aws_cluster', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'aws_cluster_id', - ], - ], - 'CreateAwsNodePool' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools', - 'body' => 'aws_node_pool', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'aws_node_pool_id', - ], - ], - 'DeleteAwsCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAwsNodePool' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateAwsAccessToken' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessToken', - 'placeholders' => [ - 'aws_cluster' => [ - 'getters' => [ - 'getAwsCluster', - ], - ], - ], - ], - 'GetAwsCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAwsNodePool' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAwsServerConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/awsServerConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAwsClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/awsClusters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAwsNodePools' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAwsCluster' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}', - 'body' => 'aws_cluster', - 'placeholders' => [ - 'aws_cluster.name' => [ - 'getters' => [ - 'getAwsCluster', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAwsNodePool' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}', - 'body' => 'aws_node_pool', - 'placeholders' => [ - 'aws_node_pool.name' => [ - 'getters' => [ - 'getAwsNodePool', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json deleted file mode 100644 index fae6b0761556..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_client_config.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "interfaces": { - "google.cloud.gkemulticloud.v1.AzureClusters": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "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": { - "CreateAzureClient": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAzureCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAzureNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAzureClient": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAzureCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAzureNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GenerateAzureAccessToken": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAzureClient": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAzureCluster": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAzureNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAzureServerConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAzureClients": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAzureClusters": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAzureNodePools": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAzureCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAzureNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php deleted file mode 100644 index b2d05d9d141f..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_descriptor_config.php +++ /dev/null @@ -1,118 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AzureClusters' => [ - 'CreateAzureClient' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureClient', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'CreateAzureCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'CreateAzureNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAzureClient' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAzureCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'DeleteAzureNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAzureCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureCluster', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'UpdateAzureNodePool' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeMultiCloud\V1\AzureNodePool', - 'metadataReturnType' => '\Google\Cloud\GkeMultiCloud\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - ], - 'ListAzureClients' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAzureClients', - ], - ], - 'ListAzureClusters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAzureClusters', - ], - ], - 'ListAzureNodePools' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAzureNodePools', - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php b/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php deleted file mode 100644 index 76e3adfb1baf..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/src/V1/resources/azure_clusters_rest_client_config.php +++ /dev/null @@ -1,253 +0,0 @@ - [ - 'google.cloud.gkemulticloud.v1.AzureClusters' => [ - 'CreateAzureClient' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClients', - 'body' => 'azure_client', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'azure_client_id', - ], - ], - 'CreateAzureCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClusters', - 'body' => 'azure_cluster', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'azure_cluster_id', - ], - ], - 'CreateAzureNodePool' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools', - 'body' => 'azure_node_pool', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'azure_node_pool_id', - ], - ], - 'DeleteAzureClient' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClients/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAzureCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAzureNodePool' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateAzureAccessToken' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessToken', - 'placeholders' => [ - 'azure_cluster' => [ - 'getters' => [ - 'getAzureCluster', - ], - ], - ], - ], - 'GetAzureClient' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClients/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAzureCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAzureNodePool' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAzureServerConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/azureServerConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAzureClients' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClients', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAzureClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/azureClusters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAzureNodePools' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAzureCluster' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}', - 'body' => 'azure_cluster', - 'placeholders' => [ - 'azure_cluster.name' => [ - 'getters' => [ - 'getAzureCluster', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAzureNodePool' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}', - 'body' => 'azure_node_pool', - 'placeholders' => [ - 'azure_node_pool.name' => [ - 'getters' => [ - 'getAzureNodePool', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php deleted file mode 100644 index 30127c7b4ac0..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AttachedClustersClientTest.php +++ /dev/null @@ -1,930 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AttachedClustersClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AttachedClustersClient($options); - } - - /** @test */ - public function createAttachedClusterTest() - { - $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/createAttachedClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $platformVersion = 'platformVersion1813514508'; - $distribution = 'distribution-1580708220'; - $clusterRegion = 'clusterRegion993903833'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $kubernetesVersion = 'kubernetesVersion50850015'; - $expectedResponse = new AttachedCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setPlatformVersion($platformVersion); - $expectedResponse->setDistribution($distribution); - $expectedResponse->setClusterRegion($clusterRegion); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setKubernetesVersion($kubernetesVersion); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAttachedClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $attachedCluster = new AttachedCluster(); - $attachedClusterOidcConfig = new AttachedOidcConfig(); - $attachedCluster->setOidcConfig($attachedClusterOidcConfig); - $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; - $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); - $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; - $attachedCluster->setDistribution($attachedClusterDistribution); - $attachedClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $attachedClusterFleet->setProject($fleetProject); - $attachedCluster->setFleet($attachedClusterFleet); - $attachedClusterId = 'attachedClusterId-249426181'; - $response = $gapicClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); - $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.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAttachedCluster(); - $this->assertProtobufEquals($attachedCluster, $actualValue); - $actualValue = $actualApiRequestObject->getAttachedClusterId(); - $this->assertProtobufEquals($attachedClusterId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAttachedClusterTest'); - $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 createAttachedClusterExceptionTest() - { - $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/createAttachedClusterTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $attachedCluster = new AttachedCluster(); - $attachedClusterOidcConfig = new AttachedOidcConfig(); - $attachedCluster->setOidcConfig($attachedClusterOidcConfig); - $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; - $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); - $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; - $attachedCluster->setDistribution($attachedClusterDistribution); - $attachedClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $attachedClusterFleet->setProject($fleetProject); - $attachedCluster->setFleet($attachedClusterFleet); - $attachedClusterId = 'attachedClusterId-249426181'; - $response = $gapicClient->createAttachedCluster($formattedParent, $attachedCluster, $attachedClusterId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAttachedClusterTest'); - 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 deleteAttachedClusterTest() - { - $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/deleteAttachedClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAttachedClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); - $response = $gapicClient->deleteAttachedCluster($formattedName); - $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.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAttachedClusterTest'); - $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 deleteAttachedClusterExceptionTest() - { - $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/deleteAttachedClusterTest'); - $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->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); - $response = $gapicClient->deleteAttachedCluster($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAttachedClusterTest'); - 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 generateAttachedClusterInstallManifestTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $manifest = 'manifest130625071'; - $expectedResponse = new GenerateAttachedClusterInstallManifestResponse(); - $expectedResponse->setManifest($manifest); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $attachedClusterId = 'attachedClusterId-249426181'; - $platformVersion = 'platformVersion1813514508'; - $response = $gapicClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAttachedClusterId(); - $this->assertProtobufEquals($attachedClusterId, $actualValue); - $actualValue = $actualRequestObject->getPlatformVersion(); - $this->assertProtobufEquals($platformVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateAttachedClusterInstallManifestExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $attachedClusterId = 'attachedClusterId-249426181'; - $platformVersion = 'platformVersion1813514508'; - try { - $gapicClient->generateAttachedClusterInstallManifest($formattedParent, $attachedClusterId, $platformVersion); - // 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 getAttachedClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $platformVersion = 'platformVersion1813514508'; - $distribution = 'distribution-1580708220'; - $clusterRegion = 'clusterRegion993903833'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $kubernetesVersion = 'kubernetesVersion50850015'; - $expectedResponse = new AttachedCluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setPlatformVersion($platformVersion); - $expectedResponse->setDistribution($distribution); - $expectedResponse->setClusterRegion($clusterRegion); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setKubernetesVersion($kubernetesVersion); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); - $response = $gapicClient->getAttachedCluster($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttachedClusterExceptionTest() - { - $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->attachedClusterName('[PROJECT]', '[LOCATION]', '[ATTACHED_CLUSTER]'); - try { - $gapicClient->getAttachedCluster($formattedName); - // 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 getAttachedServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new AttachedServerConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attachedServerConfigName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->getAttachedServerConfig($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttachedServerConfigExceptionTest() - { - $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->attachedServerConfigName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->getAttachedServerConfig($formattedName); - // 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 importAttachedClusterTest() - { - $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/importAttachedClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $platformVersion2 = 'platformVersion2-969276993'; - $distribution2 = 'distribution21357826359'; - $clusterRegion = 'clusterRegion993903833'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $kubernetesVersion = 'kubernetesVersion50850015'; - $expectedResponse = new AttachedCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setPlatformVersion($platformVersion2); - $expectedResponse->setDistribution($distribution2); - $expectedResponse->setClusterRegion($clusterRegion); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setKubernetesVersion($kubernetesVersion); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importAttachedClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $fleetMembership = 'fleetMembership1817977703'; - $platformVersion = 'platformVersion1813514508'; - $distribution = 'distribution-1580708220'; - $response = $gapicClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); - $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.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFleetMembership(); - $this->assertProtobufEquals($fleetMembership, $actualValue); - $actualValue = $actualApiRequestObject->getPlatformVersion(); - $this->assertProtobufEquals($platformVersion, $actualValue); - $actualValue = $actualApiRequestObject->getDistribution(); - $this->assertProtobufEquals($distribution, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importAttachedClusterTest'); - $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 importAttachedClusterExceptionTest() - { - $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/importAttachedClusterTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $fleetMembership = 'fleetMembership1817977703'; - $platformVersion = 'platformVersion1813514508'; - $distribution = 'distribution-1580708220'; - $response = $gapicClient->importAttachedCluster($formattedParent, $fleetMembership, $platformVersion, $distribution); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importAttachedClusterTest'); - 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 listAttachedClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $attachedClustersElement = new AttachedCluster(); - $attachedClusters = [ - $attachedClustersElement, - ]; - $expectedResponse = new ListAttachedClustersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAttachedClusters($attachedClusters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->listAttachedClusters($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAttachedClusters()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAttachedClustersExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->listAttachedClusters($formattedParent); - // 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 updateAttachedClusterTest() - { - $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/updateAttachedClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $platformVersion = 'platformVersion1813514508'; - $distribution = 'distribution-1580708220'; - $clusterRegion = 'clusterRegion993903833'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $kubernetesVersion = 'kubernetesVersion50850015'; - $expectedResponse = new AttachedCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setPlatformVersion($platformVersion); - $expectedResponse->setDistribution($distribution); - $expectedResponse->setClusterRegion($clusterRegion); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setKubernetesVersion($kubernetesVersion); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAttachedClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $attachedCluster = new AttachedCluster(); - $attachedClusterOidcConfig = new AttachedOidcConfig(); - $attachedCluster->setOidcConfig($attachedClusterOidcConfig); - $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; - $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); - $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; - $attachedCluster->setDistribution($attachedClusterDistribution); - $attachedClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $attachedClusterFleet->setProject($fleetProject); - $attachedCluster->setFleet($attachedClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAttachedCluster($attachedCluster, $updateMask); - $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.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAttachedCluster(); - $this->assertProtobufEquals($attachedCluster, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAttachedClusterTest'); - $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 updateAttachedClusterExceptionTest() - { - $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/updateAttachedClusterTest'); - $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 - $attachedCluster = new AttachedCluster(); - $attachedClusterOidcConfig = new AttachedOidcConfig(); - $attachedCluster->setOidcConfig($attachedClusterOidcConfig); - $attachedClusterPlatformVersion = 'attachedClusterPlatformVersion-208126385'; - $attachedCluster->setPlatformVersion($attachedClusterPlatformVersion); - $attachedClusterDistribution = 'attachedClusterDistribution1692601690'; - $attachedCluster->setDistribution($attachedClusterDistribution); - $attachedClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $attachedClusterFleet->setProject($fleetProject); - $attachedCluster->setFleet($attachedClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAttachedCluster($attachedCluster, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAttachedClusterTest'); - 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()); - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php deleted file mode 100644 index 92b2818d919e..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AwsClustersClientTest.php +++ /dev/null @@ -1,1504 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AwsClustersClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AwsClustersClient($options); - } - - /** @test */ - public function createAwsClusterTest() - { - $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/createAwsClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $awsRegion = 'awsRegion-1887255946'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AwsCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setAwsRegion($awsRegion); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAwsClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $awsCluster = new AwsCluster(); - $awsClusterNetworking = new AwsClusterNetworking(); - $networkingVpcId = 'networkingVpcId-1154507440'; - $awsClusterNetworking->setVpcId($networkingVpcId); - $networkingPodAddressCidrBlocks = []; - $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $awsCluster->setNetworking($awsClusterNetworking); - $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; - $awsCluster->setAwsRegion($awsClusterAwsRegion); - $awsClusterControlPlane = new AwsControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $awsClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSubnetIds = []; - $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); - $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; - $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); - $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); - $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; - $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); - $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); - $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); - $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; - $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); - $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); - $controlPlaneConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); - $awsCluster->setControlPlane($awsClusterControlPlane); - $awsClusterAuthorization = new AwsAuthorization(); - $authorizationAdminUsers = []; - $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $awsCluster->setAuthorization($awsClusterAuthorization); - $awsClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $awsClusterFleet->setProject($fleetProject); - $awsCluster->setFleet($awsClusterFleet); - $awsClusterId = 'awsClusterId938438658'; - $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - $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.gkemulticloud.v1.AwsClusters/CreateAwsCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAwsCluster(); - $this->assertProtobufEquals($awsCluster, $actualValue); - $actualValue = $actualApiRequestObject->getAwsClusterId(); - $this->assertProtobufEquals($awsClusterId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAwsClusterTest'); - $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 createAwsClusterExceptionTest() - { - $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/createAwsClusterTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $awsCluster = new AwsCluster(); - $awsClusterNetworking = new AwsClusterNetworking(); - $networkingVpcId = 'networkingVpcId-1154507440'; - $awsClusterNetworking->setVpcId($networkingVpcId); - $networkingPodAddressCidrBlocks = []; - $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $awsCluster->setNetworking($awsClusterNetworking); - $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; - $awsCluster->setAwsRegion($awsClusterAwsRegion); - $awsClusterControlPlane = new AwsControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $awsClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSubnetIds = []; - $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); - $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; - $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); - $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); - $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; - $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); - $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); - $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); - $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; - $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); - $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); - $controlPlaneConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); - $awsCluster->setControlPlane($awsClusterControlPlane); - $awsClusterAuthorization = new AwsAuthorization(); - $authorizationAdminUsers = []; - $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $awsCluster->setAuthorization($awsClusterAuthorization); - $awsClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $awsClusterFleet->setProject($fleetProject); - $awsCluster->setFleet($awsClusterFleet); - $awsClusterId = 'awsClusterId938438658'; - $response = $gapicClient->createAwsCluster($formattedParent, $awsCluster, $awsClusterId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAwsClusterTest'); - 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 createAwsNodePoolTest() - { - $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/createAwsNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new AwsNodePool(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAwsNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $awsNodePool = new AwsNodePool(); - $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; - $awsNodePool->setVersion($awsNodePoolVersion); - $awsNodePoolConfig = new AwsNodeConfig(); - $configIamInstanceProfile = 'configIamInstanceProfile805825313'; - $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); - $configConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); - $awsNodePool->setConfig($awsNodePoolConfig); - $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); - $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; - $awsNodePool->setSubnetId($awsNodePoolSubnetId); - $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $awsNodePoolId = 'awsNodePoolId1958033635'; - $response = $gapicClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - $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.gkemulticloud.v1.AwsClusters/CreateAwsNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAwsNodePool(); - $this->assertProtobufEquals($awsNodePool, $actualValue); - $actualValue = $actualApiRequestObject->getAwsNodePoolId(); - $this->assertProtobufEquals($awsNodePoolId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAwsNodePoolTest'); - $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 createAwsNodePoolExceptionTest() - { - $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/createAwsNodePoolTest'); - $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $awsNodePool = new AwsNodePool(); - $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; - $awsNodePool->setVersion($awsNodePoolVersion); - $awsNodePoolConfig = new AwsNodeConfig(); - $configIamInstanceProfile = 'configIamInstanceProfile805825313'; - $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); - $configConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); - $awsNodePool->setConfig($awsNodePoolConfig); - $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); - $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; - $awsNodePool->setSubnetId($awsNodePoolSubnetId); - $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $awsNodePoolId = 'awsNodePoolId1958033635'; - $response = $gapicClient->createAwsNodePool($formattedParent, $awsNodePool, $awsNodePoolId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAwsNodePoolTest'); - 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 deleteAwsClusterTest() - { - $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/deleteAwsClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAwsClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->deleteAwsCluster($formattedName); - $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.gkemulticloud.v1.AwsClusters/DeleteAwsCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAwsClusterTest'); - $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 deleteAwsClusterExceptionTest() - { - $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/deleteAwsClusterTest'); - $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->deleteAwsCluster($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAwsClusterTest'); - 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 deleteAwsNodePoolTest() - { - $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/deleteAwsNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAwsNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - $response = $gapicClient->deleteAwsNodePool($formattedName); - $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.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAwsNodePoolTest'); - $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 deleteAwsNodePoolExceptionTest() - { - $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/deleteAwsNodePoolTest'); - $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->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - $response = $gapicClient->deleteAwsNodePool($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAwsNodePoolTest'); - 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 generateAwsAccessTokenTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accessToken = 'accessToken-1938933922'; - $expectedResponse = new GenerateAwsAccessTokenResponse(); - $expectedResponse->setAccessToken($accessToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAwsCluster = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->generateAwsAccessToken($formattedAwsCluster); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken', $actualFuncCall); - $actualValue = $actualRequestObject->getAwsCluster(); - $this->assertProtobufEquals($formattedAwsCluster, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateAwsAccessTokenExceptionTest() - { - $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 - $formattedAwsCluster = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - try { - $gapicClient->generateAwsAccessToken($formattedAwsCluster); - // 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 getAwsClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $awsRegion = 'awsRegion-1887255946'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AwsCluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setAwsRegion($awsRegion); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->getAwsCluster($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAwsClusterExceptionTest() - { - $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - try { - $gapicClient->getAwsCluster($formattedName); - // 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 getAwsNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new AwsNodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - $response = $gapicClient->getAwsNodePool($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAwsNodePoolExceptionTest() - { - $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->awsNodePoolName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]', '[AWS_NODE_POOL]'); - try { - $gapicClient->getAwsNodePool($formattedName); - // 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 getAwsServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new AwsServerConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->awsServerConfigName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->getAwsServerConfig($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAwsServerConfigExceptionTest() - { - $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->awsServerConfigName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->getAwsServerConfig($formattedName); - // 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 listAwsClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $awsClustersElement = new AwsCluster(); - $awsClusters = [ - $awsClustersElement, - ]; - $expectedResponse = new ListAwsClustersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAwsClusters($awsClusters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->listAwsClusters($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAwsClusters()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAwsClustersExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->listAwsClusters($formattedParent); - // 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 listAwsNodePoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $awsNodePoolsElement = new AwsNodePool(); - $awsNodePools = [ - $awsNodePoolsElement, - ]; - $expectedResponse = new ListAwsNodePoolsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAwsNodePools($awsNodePools); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - $response = $gapicClient->listAwsNodePools($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAwsNodePools()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAwsNodePoolsExceptionTest() - { - $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->awsClusterName('[PROJECT]', '[LOCATION]', '[AWS_CLUSTER]'); - try { - $gapicClient->listAwsNodePools($formattedParent); - // 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 updateAwsClusterTest() - { - $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/updateAwsClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $awsRegion = 'awsRegion-1887255946'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AwsCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setAwsRegion($awsRegion); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAwsClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $awsCluster = new AwsCluster(); - $awsClusterNetworking = new AwsClusterNetworking(); - $networkingVpcId = 'networkingVpcId-1154507440'; - $awsClusterNetworking->setVpcId($networkingVpcId); - $networkingPodAddressCidrBlocks = []; - $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $awsCluster->setNetworking($awsClusterNetworking); - $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; - $awsCluster->setAwsRegion($awsClusterAwsRegion); - $awsClusterControlPlane = new AwsControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $awsClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSubnetIds = []; - $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); - $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; - $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); - $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); - $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; - $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); - $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); - $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); - $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; - $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); - $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); - $controlPlaneConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); - $awsCluster->setControlPlane($awsClusterControlPlane); - $awsClusterAuthorization = new AwsAuthorization(); - $authorizationAdminUsers = []; - $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $awsCluster->setAuthorization($awsClusterAuthorization); - $awsClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $awsClusterFleet->setProject($fleetProject); - $awsCluster->setFleet($awsClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); - $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.gkemulticloud.v1.AwsClusters/UpdateAwsCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAwsCluster(); - $this->assertProtobufEquals($awsCluster, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAwsClusterTest'); - $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 updateAwsClusterExceptionTest() - { - $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/updateAwsClusterTest'); - $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 - $awsCluster = new AwsCluster(); - $awsClusterNetworking = new AwsClusterNetworking(); - $networkingVpcId = 'networkingVpcId-1154507440'; - $awsClusterNetworking->setVpcId($networkingVpcId); - $networkingPodAddressCidrBlocks = []; - $awsClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $awsClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $awsCluster->setNetworking($awsClusterNetworking); - $awsClusterAwsRegion = 'awsClusterAwsRegion574122132'; - $awsCluster->setAwsRegion($awsClusterAwsRegion); - $awsClusterControlPlane = new AwsControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $awsClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSubnetIds = []; - $awsClusterControlPlane->setSubnetIds($controlPlaneSubnetIds); - $controlPlaneIamInstanceProfile = 'controlPlaneIamInstanceProfile1905273246'; - $awsClusterControlPlane->setIamInstanceProfile($controlPlaneIamInstanceProfile); - $controlPlaneDatabaseEncryption = new AwsDatabaseEncryption(); - $databaseEncryptionKmsKeyArn = 'databaseEncryptionKmsKeyArn1858324593'; - $controlPlaneDatabaseEncryption->setKmsKeyArn($databaseEncryptionKmsKeyArn); - $awsClusterControlPlane->setDatabaseEncryption($controlPlaneDatabaseEncryption); - $controlPlaneAwsServicesAuthentication = new AwsServicesAuthentication(); - $awsServicesAuthenticationRoleArn = 'awsServicesAuthenticationRoleArn1905212596'; - $controlPlaneAwsServicesAuthentication->setRoleArn($awsServicesAuthenticationRoleArn); - $awsClusterControlPlane->setAwsServicesAuthentication($controlPlaneAwsServicesAuthentication); - $controlPlaneConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $controlPlaneConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsClusterControlPlane->setConfigEncryption($controlPlaneConfigEncryption); - $awsCluster->setControlPlane($awsClusterControlPlane); - $awsClusterAuthorization = new AwsAuthorization(); - $authorizationAdminUsers = []; - $awsClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $awsCluster->setAuthorization($awsClusterAuthorization); - $awsClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $awsClusterFleet->setProject($fleetProject); - $awsCluster->setFleet($awsClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAwsCluster($awsCluster, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAwsClusterTest'); - 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 updateAwsNodePoolTest() - { - $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/updateAwsNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new AwsNodePool(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAwsNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $awsNodePool = new AwsNodePool(); - $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; - $awsNodePool->setVersion($awsNodePoolVersion); - $awsNodePoolConfig = new AwsNodeConfig(); - $configIamInstanceProfile = 'configIamInstanceProfile805825313'; - $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); - $configConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); - $awsNodePool->setConfig($awsNodePoolConfig); - $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); - $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; - $awsNodePool->setSubnetId($awsNodePoolSubnetId); - $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAwsNodePool($awsNodePool, $updateMask); - $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.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAwsNodePool(); - $this->assertProtobufEquals($awsNodePool, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAwsNodePoolTest'); - $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 updateAwsNodePoolExceptionTest() - { - $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/updateAwsNodePoolTest'); - $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 - $awsNodePool = new AwsNodePool(); - $awsNodePoolVersion = 'awsNodePoolVersion-617231107'; - $awsNodePool->setVersion($awsNodePoolVersion); - $awsNodePoolConfig = new AwsNodeConfig(); - $configIamInstanceProfile = 'configIamInstanceProfile805825313'; - $awsNodePoolConfig->setIamInstanceProfile($configIamInstanceProfile); - $configConfigEncryption = new AwsConfigEncryption(); - $configEncryptionKmsKeyArn = 'configEncryptionKmsKeyArn-992257206'; - $configConfigEncryption->setKmsKeyArn($configEncryptionKmsKeyArn); - $awsNodePoolConfig->setConfigEncryption($configConfigEncryption); - $awsNodePool->setConfig($awsNodePoolConfig); - $awsNodePoolAutoscaling = new AwsNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $awsNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $awsNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $awsNodePool->setAutoscaling($awsNodePoolAutoscaling); - $awsNodePoolSubnetId = 'awsNodePoolSubnetId-2035401261'; - $awsNodePool->setSubnetId($awsNodePoolSubnetId); - $awsNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $awsNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $awsNodePool->setMaxPodsConstraint($awsNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAwsNodePool($awsNodePool, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAwsNodePoolTest'); - 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()); - } -} diff --git a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php b/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php deleted file mode 100644 index c28ab58f12ed..000000000000 --- a/owl-bot-staging/GkeMultiCloud/v1/tests/Unit/V1/AzureClustersClientTest.php +++ /dev/null @@ -1,1878 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AzureClustersClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AzureClustersClient($options); - } - - /** @test */ - public function createAzureClientTest() - { - $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/createAzureClientTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $tenantId = 'tenantId-1852780336'; - $applicationId = 'applicationId-1287148950'; - $pemCertificate = 'pemCertificate1234463984'; - $uid = 'uid115792'; - $expectedResponse = new AzureClient(); - $expectedResponse->setName($name); - $expectedResponse->setTenantId($tenantId); - $expectedResponse->setApplicationId($applicationId); - $expectedResponse->setPemCertificate($pemCertificate); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAzureClientTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $azureClient = new AzureClient(); - $azureClientTenantId = 'azureClientTenantId-567307073'; - $azureClient->setTenantId($azureClientTenantId); - $azureClientApplicationId = 'azureClientApplicationId264838513'; - $azureClient->setApplicationId($azureClientApplicationId); - $azureClientId = 'azureClientId315645023'; - $response = $gapicClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - $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.gkemulticloud.v1.AzureClusters/CreateAzureClient', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAzureClient(); - $this->assertProtobufEquals($azureClient, $actualValue); - $actualValue = $actualApiRequestObject->getAzureClientId(); - $this->assertProtobufEquals($azureClientId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureClientTest'); - $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 createAzureClientExceptionTest() - { - $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/createAzureClientTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $azureClient = new AzureClient(); - $azureClientTenantId = 'azureClientTenantId-567307073'; - $azureClient->setTenantId($azureClientTenantId); - $azureClientApplicationId = 'azureClientApplicationId264838513'; - $azureClient->setApplicationId($azureClientApplicationId); - $azureClientId = 'azureClientId315645023'; - $response = $gapicClient->createAzureClient($formattedParent, $azureClient, $azureClientId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureClientTest'); - 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 createAzureClusterTest() - { - $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/createAzureClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $azureRegion = 'azureRegion-253373788'; - $resourceGroupId = 'resourceGroupId-1092054036'; - $azureClient = 'azureClient-676290693'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AzureCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setAzureRegion($azureRegion); - $expectedResponse->setResourceGroupId($resourceGroupId); - $expectedResponse->setAzureClient($azureClient); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAzureClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $azureCluster = new AzureCluster(); - $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; - $azureCluster->setAzureRegion($azureClusterAzureRegion); - $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; - $azureCluster->setResourceGroupId($azureClusterResourceGroupId); - $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; - $azureCluster->setAzureClient($azureClusterAzureClient); - $azureClusterNetworking = new AzureClusterNetworking(); - $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; - $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); - $networkingPodAddressCidrBlocks = []; - $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $azureCluster->setNetworking($azureClusterNetworking); - $azureClusterControlPlane = new AzureControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $azureClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); - $azureCluster->setControlPlane($azureClusterControlPlane); - $azureClusterAuthorization = new AzureAuthorization(); - $authorizationAdminUsers = []; - $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $azureCluster->setAuthorization($azureClusterAuthorization); - $azureClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $azureClusterFleet->setProject($fleetProject); - $azureCluster->setFleet($azureClusterFleet); - $azureClusterId = 'azureClusterId332577072'; - $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); - $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.gkemulticloud.v1.AzureClusters/CreateAzureCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAzureCluster(); - $this->assertProtobufEquals($azureCluster, $actualValue); - $actualValue = $actualApiRequestObject->getAzureClusterId(); - $this->assertProtobufEquals($azureClusterId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureClusterTest'); - $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 createAzureClusterExceptionTest() - { - $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/createAzureClusterTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $azureCluster = new AzureCluster(); - $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; - $azureCluster->setAzureRegion($azureClusterAzureRegion); - $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; - $azureCluster->setResourceGroupId($azureClusterResourceGroupId); - $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; - $azureCluster->setAzureClient($azureClusterAzureClient); - $azureClusterNetworking = new AzureClusterNetworking(); - $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; - $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); - $networkingPodAddressCidrBlocks = []; - $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $azureCluster->setNetworking($azureClusterNetworking); - $azureClusterControlPlane = new AzureControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $azureClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); - $azureCluster->setControlPlane($azureClusterControlPlane); - $azureClusterAuthorization = new AzureAuthorization(); - $authorizationAdminUsers = []; - $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $azureCluster->setAuthorization($azureClusterAuthorization); - $azureClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $azureClusterFleet->setProject($fleetProject); - $azureCluster->setFleet($azureClusterFleet); - $azureClusterId = 'azureClusterId332577072'; - $response = $gapicClient->createAzureCluster($formattedParent, $azureCluster, $azureClusterId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureClusterTest'); - 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 createAzureNodePoolTest() - { - $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/createAzureNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $azureAvailabilityZone = 'azureAvailabilityZone541920864'; - $expectedResponse = new AzureNodePool(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAzureNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $azureNodePool = new AzureNodePool(); - $azureNodePoolVersion = 'azureNodePoolVersion349490987'; - $azureNodePool->setVersion($azureNodePoolVersion); - $azureNodePoolConfig = new AzureNodeConfig(); - $configSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureNodePoolConfig->setSshConfig($configSshConfig); - $azureNodePool->setConfig($azureNodePoolConfig); - $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; - $azureNodePool->setSubnetId($azureNodePoolSubnetId); - $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); - $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $azureNodePoolId = 'azureNodePoolId-454365551'; - $response = $gapicClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); - $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.gkemulticloud.v1.AzureClusters/CreateAzureNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAzureNodePool(); - $this->assertProtobufEquals($azureNodePool, $actualValue); - $actualValue = $actualApiRequestObject->getAzureNodePoolId(); - $this->assertProtobufEquals($azureNodePoolId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureNodePoolTest'); - $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 createAzureNodePoolExceptionTest() - { - $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/createAzureNodePoolTest'); - $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $azureNodePool = new AzureNodePool(); - $azureNodePoolVersion = 'azureNodePoolVersion349490987'; - $azureNodePool->setVersion($azureNodePoolVersion); - $azureNodePoolConfig = new AzureNodeConfig(); - $configSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureNodePoolConfig->setSshConfig($configSshConfig); - $azureNodePool->setConfig($azureNodePoolConfig); - $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; - $azureNodePool->setSubnetId($azureNodePoolSubnetId); - $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); - $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $azureNodePoolId = 'azureNodePoolId-454365551'; - $response = $gapicClient->createAzureNodePool($formattedParent, $azureNodePool, $azureNodePoolId); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAzureNodePoolTest'); - 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 deleteAzureClientTest() - { - $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/deleteAzureClientTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAzureClientTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - $response = $gapicClient->deleteAzureClient($formattedName); - $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.gkemulticloud.v1.AzureClusters/DeleteAzureClient', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureClientTest'); - $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 deleteAzureClientExceptionTest() - { - $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/deleteAzureClientTest'); - $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->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - $response = $gapicClient->deleteAzureClient($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureClientTest'); - 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 deleteAzureClusterTest() - { - $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/deleteAzureClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAzureClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->deleteAzureCluster($formattedName); - $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.gkemulticloud.v1.AzureClusters/DeleteAzureCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureClusterTest'); - $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 deleteAzureClusterExceptionTest() - { - $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/deleteAzureClusterTest'); - $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->deleteAzureCluster($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureClusterTest'); - 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 deleteAzureNodePoolTest() - { - $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/deleteAzureNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAzureNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - $response = $gapicClient->deleteAzureNodePool($formattedName); - $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.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureNodePoolTest'); - $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 deleteAzureNodePoolExceptionTest() - { - $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/deleteAzureNodePoolTest'); - $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->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - $response = $gapicClient->deleteAzureNodePool($formattedName); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAzureNodePoolTest'); - 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 generateAzureAccessTokenTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accessToken = 'accessToken-1938933922'; - $expectedResponse = new GenerateAzureAccessTokenResponse(); - $expectedResponse->setAccessToken($accessToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAzureCluster = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->generateAzureAccessToken($formattedAzureCluster); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken', $actualFuncCall); - $actualValue = $actualRequestObject->getAzureCluster(); - $this->assertProtobufEquals($formattedAzureCluster, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateAzureAccessTokenExceptionTest() - { - $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 - $formattedAzureCluster = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - try { - $gapicClient->generateAzureAccessToken($formattedAzureCluster); - // 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 getAzureClientTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $tenantId = 'tenantId-1852780336'; - $applicationId = 'applicationId-1287148950'; - $pemCertificate = 'pemCertificate1234463984'; - $uid = 'uid115792'; - $expectedResponse = new AzureClient(); - $expectedResponse->setName($name2); - $expectedResponse->setTenantId($tenantId); - $expectedResponse->setApplicationId($applicationId); - $expectedResponse->setPemCertificate($pemCertificate); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - $response = $gapicClient->getAzureClient($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAzureClientExceptionTest() - { - $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->azureClientName('[PROJECT]', '[LOCATION]', '[AZURE_CLIENT]'); - try { - $gapicClient->getAzureClient($formattedName); - // 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 getAzureClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $azureRegion = 'azureRegion-253373788'; - $resourceGroupId = 'resourceGroupId-1092054036'; - $azureClient = 'azureClient-676290693'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AzureCluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setAzureRegion($azureRegion); - $expectedResponse->setResourceGroupId($resourceGroupId); - $expectedResponse->setAzureClient($azureClient); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->getAzureCluster($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAzureClusterExceptionTest() - { - $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - try { - $gapicClient->getAzureCluster($formattedName); - // 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 getAzureNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $azureAvailabilityZone = 'azureAvailabilityZone541920864'; - $expectedResponse = new AzureNodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - $response = $gapicClient->getAzureNodePool($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAzureNodePoolExceptionTest() - { - $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->azureNodePoolName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]', '[AZURE_NODE_POOL]'); - try { - $gapicClient->getAzureNodePool($formattedName); - // 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 getAzureServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new AzureServerConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->azureServerConfigName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->getAzureServerConfig($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAzureServerConfigExceptionTest() - { - $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->azureServerConfigName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->getAzureServerConfig($formattedName); - // 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 listAzureClientsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $azureClientsElement = new AzureClient(); - $azureClients = [ - $azureClientsElement, - ]; - $expectedResponse = new ListAzureClientsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAzureClients($azureClients); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->listAzureClients($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAzureClients()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAzureClientsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->listAzureClients($formattedParent); - // 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 listAzureClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $azureClustersElement = new AzureCluster(); - $azureClusters = [ - $azureClustersElement, - ]; - $expectedResponse = new ListAzureClustersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAzureClusters($azureClusters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $response = $gapicClient->listAzureClusters($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAzureClusters()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAzureClustersExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - try { - $gapicClient->listAzureClusters($formattedParent); - // 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 listAzureNodePoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $azureNodePoolsElement = new AzureNodePool(); - $azureNodePools = [ - $azureNodePoolsElement, - ]; - $expectedResponse = new ListAzureNodePoolsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAzureNodePools($azureNodePools); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - $response = $gapicClient->listAzureNodePools($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAzureNodePools()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAzureNodePoolsExceptionTest() - { - $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->azureClusterName('[PROJECT]', '[LOCATION]', '[AZURE_CLUSTER]'); - try { - $gapicClient->listAzureNodePools($formattedParent); - // 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 updateAzureClusterTest() - { - $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/updateAzureClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $azureRegion = 'azureRegion-253373788'; - $resourceGroupId = 'resourceGroupId-1092054036'; - $azureClient = 'azureClient-676290693'; - $endpoint = 'endpoint1741102485'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $clusterCaCertificate = 'clusterCaCertificate1324742683'; - $expectedResponse = new AzureCluster(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setAzureRegion($azureRegion); - $expectedResponse->setResourceGroupId($resourceGroupId); - $expectedResponse->setAzureClient($azureClient); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setClusterCaCertificate($clusterCaCertificate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAzureClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $azureCluster = new AzureCluster(); - $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; - $azureCluster->setAzureRegion($azureClusterAzureRegion); - $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; - $azureCluster->setResourceGroupId($azureClusterResourceGroupId); - $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; - $azureCluster->setAzureClient($azureClusterAzureClient); - $azureClusterNetworking = new AzureClusterNetworking(); - $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; - $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); - $networkingPodAddressCidrBlocks = []; - $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $azureCluster->setNetworking($azureClusterNetworking); - $azureClusterControlPlane = new AzureControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $azureClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); - $azureCluster->setControlPlane($azureClusterControlPlane); - $azureClusterAuthorization = new AzureAuthorization(); - $authorizationAdminUsers = []; - $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $azureCluster->setAuthorization($azureClusterAuthorization); - $azureClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $azureClusterFleet->setProject($fleetProject); - $azureCluster->setFleet($azureClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); - $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.gkemulticloud.v1.AzureClusters/UpdateAzureCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAzureCluster(); - $this->assertProtobufEquals($azureCluster, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAzureClusterTest'); - $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 updateAzureClusterExceptionTest() - { - $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/updateAzureClusterTest'); - $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 - $azureCluster = new AzureCluster(); - $azureClusterAzureRegion = 'azureClusterAzureRegion-1036501768'; - $azureCluster->setAzureRegion($azureClusterAzureRegion); - $azureClusterResourceGroupId = 'azureClusterResourceGroupId-1683734495'; - $azureCluster->setResourceGroupId($azureClusterResourceGroupId); - $azureClusterAzureClient = 'azureClusterAzureClient-1459418673'; - $azureCluster->setAzureClient($azureClusterAzureClient); - $azureClusterNetworking = new AzureClusterNetworking(); - $networkingVirtualNetworkId = 'networkingVirtualNetworkId-516550606'; - $azureClusterNetworking->setVirtualNetworkId($networkingVirtualNetworkId); - $networkingPodAddressCidrBlocks = []; - $azureClusterNetworking->setPodAddressCidrBlocks($networkingPodAddressCidrBlocks); - $networkingServiceAddressCidrBlocks = []; - $azureClusterNetworking->setServiceAddressCidrBlocks($networkingServiceAddressCidrBlocks); - $azureCluster->setNetworking($azureClusterNetworking); - $azureClusterControlPlane = new AzureControlPlane(); - $controlPlaneVersion = 'controlPlaneVersion648040665'; - $azureClusterControlPlane->setVersion($controlPlaneVersion); - $controlPlaneSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $controlPlaneSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureClusterControlPlane->setSshConfig($controlPlaneSshConfig); - $azureCluster->setControlPlane($azureClusterControlPlane); - $azureClusterAuthorization = new AzureAuthorization(); - $authorizationAdminUsers = []; - $azureClusterAuthorization->setAdminUsers($authorizationAdminUsers); - $azureCluster->setAuthorization($azureClusterAuthorization); - $azureClusterFleet = new Fleet(); - $fleetProject = 'fleetProject604893675'; - $azureClusterFleet->setProject($fleetProject); - $azureCluster->setFleet($azureClusterFleet); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAzureCluster($azureCluster, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAzureClusterTest'); - 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 updateAzureNodePoolTest() - { - $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/updateAzureNodePoolTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $subnetId = 'subnetId373593405'; - $uid = 'uid115792'; - $reconciling = false; - $etag = 'etag3123477'; - $azureAvailabilityZone = 'azureAvailabilityZone541920864'; - $expectedResponse = new AzureNodePool(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setSubnetId($subnetId); - $expectedResponse->setUid($uid); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setAzureAvailabilityZone($azureAvailabilityZone); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAzureNodePoolTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $azureNodePool = new AzureNodePool(); - $azureNodePoolVersion = 'azureNodePoolVersion349490987'; - $azureNodePool->setVersion($azureNodePoolVersion); - $azureNodePoolConfig = new AzureNodeConfig(); - $configSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureNodePoolConfig->setSshConfig($configSshConfig); - $azureNodePool->setConfig($azureNodePoolConfig); - $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; - $azureNodePool->setSubnetId($azureNodePoolSubnetId); - $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); - $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAzureNodePool($azureNodePool, $updateMask); - $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.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAzureNodePool(); - $this->assertProtobufEquals($azureNodePool, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAzureNodePoolTest'); - $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 updateAzureNodePoolExceptionTest() - { - $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/updateAzureNodePoolTest'); - $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 - $azureNodePool = new AzureNodePool(); - $azureNodePoolVersion = 'azureNodePoolVersion349490987'; - $azureNodePool->setVersion($azureNodePoolVersion); - $azureNodePoolConfig = new AzureNodeConfig(); - $configSshConfig = new AzureSshConfig(); - $sshConfigAuthorizedKey = 'sshConfigAuthorizedKey1626409850'; - $configSshConfig->setAuthorizedKey($sshConfigAuthorizedKey); - $azureNodePoolConfig->setSshConfig($configSshConfig); - $azureNodePool->setConfig($azureNodePoolConfig); - $azureNodePoolSubnetId = 'azureNodePoolSubnetId-2131787419'; - $azureNodePool->setSubnetId($azureNodePoolSubnetId); - $azureNodePoolAutoscaling = new AzureNodePoolAutoscaling(); - $autoscalingMinNodeCount = 1464441581; - $azureNodePoolAutoscaling->setMinNodeCount($autoscalingMinNodeCount); - $autoscalingMaxNodeCount = 1938867647; - $azureNodePoolAutoscaling->setMaxNodeCount($autoscalingMaxNodeCount); - $azureNodePool->setAutoscaling($azureNodePoolAutoscaling); - $azureNodePoolMaxPodsConstraint = new MaxPodsConstraint(); - $maxPodsConstraintMaxPodsPerNode = 1072618940; - $azureNodePoolMaxPodsConstraint->setMaxPodsPerNode($maxPodsConstraintMaxPodsPerNode); - $azureNodePool->setMaxPodsConstraint($azureNodePoolMaxPodsConstraint); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAzureNodePool($azureNodePool, $updateMask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAzureNodePoolTest'); - 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()); - } -}