From 0d71d839673bb1575dc3e664c523e2646aea1af0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 11 Sep 2025 22:27:13 +0000 Subject: [PATCH 1/2] feat: add `k8s_git_version` field docs: correct comment for `k8s_version` field The new field `k8s_git_version` captures the full Kubernetes version string for a membership. PiperOrigin-RevId: 805935629 Source-Link: https://github.com/googleapis/googleapis/commit/780e61218fe286ed17026ce9e3672d1998389b05 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d0c6d1df4f46025ec0160a4acfe24e8eaf361dab Copy-Tag: eyJwIjoiR2tlSHViLy5Pd2xCb3QueWFtbCIsImgiOiJkMGM2ZDFkZjRmNDYwMjVlYzAxNjBhNGFjZmUyNGU4ZWFmMzYxZGFiIn0= --- .../V1/Configmanagement/Configmanagement.php | Bin 0 -> 6742 bytes .../Google/Cloud/Gkehub/V1/Feature.php | Bin 0 -> 3244 bytes .../Google/Cloud/Gkehub/V1/Membership.php | Bin 0 -> 3380 bytes .../Multiclusteringress.php | 29 + .../Google/Cloud/Gkehub/V1/Service.php | 149 ++ .../GkeHub/ConfigManagement/V1/ConfigSync.php | 323 +++++ .../V1/ConfigSyncDeploymentState.php | 271 ++++ .../ConfigManagement/V1/ConfigSyncError.php | 67 + .../ConfigManagement/V1/ConfigSyncState.php | 309 +++++ .../V1/ConfigSyncState/CRDState.php | 78 ++ .../V1/ConfigSyncState/State.php | 76 ++ .../ConfigManagement/V1/ConfigSyncVersion.php | 271 ++++ .../ConfigManagement/V1/DeploymentState.php | 75 + .../ConfigManagement/V1/ErrorResource.php | 179 +++ .../V1/GatekeeperDeploymentState.php | 101 ++ .../GkeHub/ConfigManagement/V1/GitConfig.php | 321 +++++ .../ConfigManagement/V1/GroupVersionKind.php | 135 ++ .../V1/HierarchyControllerConfig.php | 135 ++ .../V1/HierarchyControllerDeploymentState.php | 101 ++ .../V1/HierarchyControllerState.php | 121 ++ .../V1/HierarchyControllerVersion.php | 101 ++ .../ConfigManagement/V1/InstallError.php | 67 + .../ConfigManagement/V1/MembershipSpec.php | 292 ++++ .../V1/MembershipSpec/Management.php | 64 + .../ConfigManagement/V1/MembershipState.php | 299 ++++ .../GkeHub/ConfigManagement/V1/OciConfig.php | 215 +++ .../ConfigManagement/V1/OperatorState.php | 135 ++ .../ConfigManagement/V1/PolicyController.php | 277 ++++ .../V1/PolicyControllerState.php | 121 ++ .../V1/PolicyControllerVersion.php | 71 + .../GkeHub/ConfigManagement/V1/SyncError.php | 135 ++ .../GkeHub/ConfigManagement/V1/SyncState.php | 304 +++++ .../V1/SyncState/SyncCode.php | 99 ++ .../MultiClusterIngress/V1/FeatureSpec.php | 72 + .../src/Google/Cloud/GkeHub/V1/Authority.php | 235 ++++ .../Cloud/GkeHub/V1/CommonFeatureSpec.php | 75 + .../Cloud/GkeHub/V1/CommonFeatureState.php | 77 ++ .../Cloud/GkeHub/V1/ConnectAgentResource.php | 112 ++ .../Cloud/GkeHub/V1/CreateFeatureRequest.php | 241 ++++ .../GkeHub/V1/CreateMembershipRequest.php | 274 ++++ .../Cloud/GkeHub/V1/DeleteFeatureRequest.php | 201 +++ .../GkeHub/V1/DeleteMembershipRequest.php | 202 +++ .../src/Google/Cloud/GkeHub/V1/Feature.php | 513 +++++++ .../Cloud/GkeHub/V1/FeatureResourceState.php | 69 + .../GkeHub/V1/FeatureResourceState/State.php | 88 ++ .../Google/Cloud/GkeHub/V1/FeatureState.php | 147 ++ .../Cloud/GkeHub/V1/FeatureState/Code.php | 77 ++ .../V1/GenerateConnectManifestRequest.php | 321 +++++ .../V1/GenerateConnectManifestResponse.php | 72 + .../Cloud/GkeHub/V1/GetFeatureRequest.php | 85 ++ .../Cloud/GkeHub/V1/GetMembershipRequest.php | 86 ++ .../src/Google/Cloud/GkeHub/V1/GkeCluster.php | 117 ++ .../Cloud/GkeHub/V1/KubernetesMetadata.php | 276 ++++ .../Cloud/GkeHub/V1/KubernetesResource.php | 245 ++++ .../Cloud/GkeHub/V1/ListFeaturesRequest.php | 273 ++++ .../Cloud/GkeHub/V1/ListFeaturesResponse.php | 109 ++ .../GkeHub/V1/ListMembershipsRequest.php | 287 ++++ .../GkeHub/V1/ListMembershipsResponse.php | 143 ++ .../src/Google/Cloud/GkeHub/V1/Membership.php | 641 +++++++++ .../Cloud/GkeHub/V1/MembershipEndpoint.php | 228 ++++ .../Cloud/GkeHub/V1/MembershipFeatureSpec.php | 76 ++ .../GkeHub/V1/MembershipFeatureState.php | 120 ++ .../Cloud/GkeHub/V1/MembershipState.php | 67 + .../Cloud/GkeHub/V1/MembershipState/Code.php | 85 ++ .../Cloud/GkeHub/V1/MonitoringConfig.php | 244 ++++ .../Cloud/GkeHub/V1/OperationMetadata.php | 307 +++++ .../Cloud/GkeHub/V1/ResourceManifest.php | 114 ++ .../Cloud/GkeHub/V1/ResourceOptions.php | 205 +++ .../src/Google/Cloud/GkeHub/V1/TypeMeta.php | 102 ++ .../Cloud/GkeHub/V1/UpdateFeatureRequest.php | 286 ++++ .../GkeHub/V1/UpdateMembershipRequest.php | 287 ++++ .../V1/GkeHubClient/create_feature.php | 69 + .../V1/GkeHubClient/create_membership.php | 101 ++ .../V1/GkeHubClient/delete_feature.php | 66 + .../V1/GkeHubClient/delete_membership.php | 85 ++ .../generate_connect_manifest.php | 75 + .../samples/V1/GkeHubClient/get_feature.php | 57 + .../V1/GkeHubClient/get_membership.php | 72 + .../samples/V1/GkeHubClient/list_features.php | 62 + .../V1/GkeHubClient/list_memberships.php | 78 ++ .../V1/GkeHubClient/update_feature.php | 69 + .../V1/GkeHubClient/update_membership.php | 89 ++ .../GkeHub/v1/src/V1/Client/GkeHubClient.php | 651 +++++++++ .../GkeHub/v1/src/V1/gapic_metadata.json | 73 + .../V1/resources/gke_hub_client_config.json | 89 ++ .../resources/gke_hub_descriptor_config.php | 223 +++ .../resources/gke_hub_rest_client_config.php | 288 ++++ .../tests/Unit/V1/Client/GkeHubClientTest.php | 1213 +++++++++++++++++ 88 files changed, 15440 insertions(+) create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php create mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php create mode 100644 owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php create mode 100644 owl-bot-staging/GkeHub/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_client_config.json create mode 100644 owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_descriptor_config.php create mode 100644 owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_rest_client_config.php create mode 100644 owl-bot-staging/GkeHub/v1/tests/Unit/V1/Client/GkeHubClientTest.php diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php new file mode 100644 index 0000000000000000000000000000000000000000..871dfa00a5ed9d3dd228d2e8c5eb8c738291b342 GIT binary patch literal 6742 zcmb_h-EQN?6^<lS;_UZvN4g5DKIq<8;ir?cg}os=A3V4 zKKj@hIPgHO5sSE*PkM6qO7;gtc3j)Hb=#D?qw{m(%DO#t43oHdS>A8Tjb>Y}?$_J* z@l($pxjHGzecSGvWLG!sQE#_@K?bAl?&aRDZd>O@f2dhnpA3oR-)P7)QvjAWB%Y(` zM6Ml|kBG1JG+*n~7;2|NQ9Ct;+Bw_nR3fNP0CZFHJURLTehV`GIis#==(6W)KK^^p z@KnPxd_yyh-{6>^%IBKt5d^u}_k3jOzF}K3{h(>-Wap90F=^lT92+@$Dv$jpL{fS@|Szczmu?fM221BdIQ5b!3ibO9az@Qk%x?{G>UQwIkA(L zj$w5ebW}Zu=(#z3ktzHmvYz+1*6|sHSHgVMo=miG-EH?Bp!$AWAh8rNTJur|3 zS07BVvBYeYV%ss^7+-9fGldUhn?eitEoDk-!}<-9M0ETz zHeQq->2tUO&dh$=Q6C}3}BLMbIaJ4EyTBc zo$&lokhYbV0Fx(a8}1&J8l_tGsM=_&r;U^2YNh_XUfo}NN6NvS(7V!UyLnV<*DGrY zX#>_nZ}8`7>2PgM`NJGQXl_1+WZ&>}Jdg^pNvj#YAZY_ucu`W%ZFi{oxfEmO4lEH% z>zbs;xJwG<2eBx^9oq78z=WnOmifl>t(!@J#tz0@9O_tV5b*2A4Rt$ZGFGhBb9v&C&-f zX48@cAi}w4xGX89rMr-29ly{FAI<9?3&W(e1}TAgnWG6IEm26KV<}PnD~IG3$BhHu zcRUr#^Xn@%8)@l2Y~4N>#2W@!$DoM!<5Xwp zbT~vTxnGZLUt_eSl)olGnPPgMIHr9?#UL*zRY(pjoyB*y5Wnz6VO~I*y!MI3vLlVF z8Nif}V0((^XFT^xnTf|~31j@a-L&%01mvcC&WGEcJS%OEm-RX(<#HxI=2&-bgGK6U6??PXQ<{6zB|w^)!9-x%@IXRz$rw$HrM-5yJF*+P72IKgAHk*~D& z`Ls}AtcU?H&5+*<@X>e?QSp&2#8=8uSDBy608)X^Td;w@)suFqU5yB)by&d-wOViB z%fmy|Pzh-T(v!zIRC$?pwRKc)ppa_R){;^dK)k2V^U9YASm4~C#+qj19&A;bjpy~6 zdh)VSQKR;#ccIr|+XxtbRc*DJE%aa$-VHY&R~!4>m7VZ1;(>6>iu-c{p#x1mUM8qd zjG<$@xSJD_Cku;os_~ht1?+(Wk?#R$oHG?Xv~hoKyG-PyX(e@Oh1Thrg~|o7E9A~5 ztkST=k~QuiB+nMCYrUc2(E_4=LAnFmzTm<~`F0-p3tWvZycx)S@R%we90W;q znAhzd5lQ;VxaW7B$K->-uwNB~kjg;?S!5OD?Wzzj+J8(yib69$%uXz8Rhs+J+zGHq zU$LZ_fu(U8nv>G7FiuqxWNE(R>FTtFedkfMMRM)}Zj6>s8@OFPXtwIFu+t(D0h#udSk=+|fe0dWC(z{VP>j375~GN@;KWtz7@M@Lig*3X3vp}_|2(AT+9OA#@fU{G zQ$B&UXd70xg+A>k+zbgx?jVwSf!}hMl)oonBf62}b?(!sH2WlW$VLIjmFIgAXf@Q} z7lhzBU!+PXk74sR%OMt6Fe(2^z}Bru5`hQ(z)bjBJYilk>17P*%)r1cp d250*};nxkJ+X;`|o=mx!U_JTu!5er3@ITr4c#Qx6 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php new file mode 100644 index 0000000000000000000000000000000000000000..d26e5f8ddeaadd0c4ceb709629d1f14b3de715f3 GIT binary patch literal 3244 zcmbVOOK%!i6gFV&_~5vB;#dT!>MgYt+{S|-sbY;E6)zK%7!Y78wW!uGT=2xh%xE5# zT$g{-RTo|LH+0c1`WL#+ujqZuV8BCy%7)Rs=ljn4+;jY$d1b;^sDgED$qw$L-Ys&j zFfuK}F%&~XJ$Ep`7E+9nscP5~5h~SDt=>lEQnmdhf!c;^DOf^7!x(BfqiBZP&kV2e zmD|hQWHSRSJFbOAMhKwGBW#EVWILD6MmmRrVVc2ewV!IWF?RK(90E#BtHag=R za0iI|Ot+`03bGy9A%A`;+{hk?K!RGD7q79DWsGZ<(?ecDaL$@&pfnjsu|)X>m=SO z$l$HKao^g_n*1IPtZ|E$Bh*Pg;QtkU*Qgit8G zQHcDTj|fMwrpZ05*@-ZUq+_{nL{2y#3DM&a-!bX3?pU`%6}J4KT+&X$i3nki)huLE(?NIbp-<(g!ad#H`2QGKjo9|cRHk_Ql*u96r;uJJ7|I^i)y zZ)DBIq})giO5wv$62neV5`-Dt@iZ=$JMjITYgqA~X{tz=njt*BzhsrilRc~FWLA&3 zydIh-s!00jL;gqj+?yf1o5=XEMe;&tJfj4O^Svj2zET4nMM-we!|2Q`l~`^X>BGMXl8+7prI0 zaw)zdY{H{*Enj$7tySV70bng(Y*#zwc$g%1qf~8qR}m_B(J1BHRB%<;fq1Lj>{N?{ z&p(Z({tm&WXA4*Q8depf&*#%tZs8D^#)w4%5S~D+?>+q_fV{SZ%xuZ?(e#l?9!LMCibifZ3fGuts_v zn4kc8@)G&;mky~nD}^oC9PoNz(=Js5VOBYX+$e@#9S$ zB9nIhJxjd*h&S`X)Rn0=4EE-a5bWLy`RbWV?S=Xe1HJo%e#-e~MR@st0`(a@p5%Z< z?)MNRNs|ZKag#0hwcem>Ya{eS&YN9qwPw>{X!v_M85m?W=QG6Y9r+)>g?B4loNZ)c zz`FyfCz2J-Q)She; R=Ts$NM`n_IlO4kt;6K`1ApHOU literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php new file mode 100644 index 0000000000000000000000000000000000000000..1aee257e39f22ad382672e9352ad019d2398bc9a GIT binary patch literal 3380 zcmb7HT~pge6pb+^a7~D_q14c(6;5U#nM59FA5syTf^7(s5SWB8(~f5}vb450$dalL zCp5!DpZnhFZ|Ga!I@5p9KaoD?SM=_#R&oe5)GwB_dynotd-mMbgNH#sfScMj^=N3t z)X_S}THL2v5c;ui`>xhWx?LJ-wm%4%OG91LntR&Qy#uY)+&Ngp(8y0hn;Kfr_j@j_ z+peED_1+QfC!P9mr9Pm84h^F|3v_`A;8_D21(r>k_Bcy`Qu zPvZf5o=ul;YZ8;sy%qRa^}41K+UGS#Huir2UVZ)c&sbU_7? zIXO`mQq!f>^x?|Fdoe&rc3PMq* zXDgpYB>`^XH0tt&qa5l|6*YOWD6E{mmfO%|PIU^S1hECO4zuVJv1$9BN5%G*MZm>? z=U^)F*pCV2uw?~XB;UZ4mBf8NWbtuzT3{_ILQcs~-%u0fDm{X010Nj*W4#{FtIK-T z83D0;9>i`I&=B(l(!xC`k7$6Dp?E}(rK-pkC=D$)p{OV1!Wg?>FnaGc9MIBjAw`Qj zBGS>q>$zCTcetQ0k*cWvCcQeTyS|Nf>U;Q1U7n0MI6fX^K76t{0psy;Kx@B@0m*^Y zE+7w}j7gZbn?$%|BH!|A?Yz>_@*8rdr0)q_KT5E3c&L%c9HebRl=&Z<@o^TS8jBR^ z`)JA>#MZeGnleh6+h;H%c{K-?XZ5I4<@%izud4lqY~*REKynl2a_&q!8`$}G;6je5y$3Mp$w0j9gb%#n)1cK#>Q7E~01=?6j}sVkoEFe;}#IbRT0 z`?&yDPYsaI;i^h=hzAAkXqjOaxYrF=I=K2P$eAOSU+^qOj_yaMipgBCz!CXKkHy(2 z_i*VHwFgj9DJZ^31t#BL4l)Nbsc_B6_5)mEzQHDITL8II$pT!-h;f;BlxJQNbxA>+ z0~SSS0(thu+S|gYN|ad19k?-~dfc{VL_;hwDrDnsk&59|JPhe6xPF_Tb%)({mAK3zz$Rf;-u!PA$U_*nkt~tX%n>#)=sNgxkRR6vhl37aj^4ryHX%iP{Nz$_mwd|&}=st85e&L7Jv`>ojy=X!`Uwt2-!0{77 zwyL1BrY?RTo7^Mez!&p4%vner@s0w)0f0%0{EoB#j- literal 0 HcmV?d00001 diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php new file mode 100644 index 000000000000..e48863d0ce20 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + ' +à +Dgoogle/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto*google.cloud.gkehub.multiclusteringress.v1"( + FeatureSpec +config_membership ( B¹ +.com.google.cloud.gkehub.multiclusteringress.v1BMultiClusterIngressProtoPZ`cloud.google.com/go/gkehub/multiclusteringress/apiv1/multiclusteringresspb;multiclusteringresspbª*Google.Cloud.GkeHub.MultiClusterIngress.V1Ê*Google\\Cloud\\GkeHub\\MultiClusterIngress\\V1ê.Google::Cloud::GkeHub::MultiClusterIngress::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php new file mode 100644 index 000000000000..2401f2d81a41 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php @@ -0,0 +1,149 @@ +internalAddGeneratedFile( + ' +—) +$google/cloud/gkehub/v1/service.protogoogle.cloud.gkehub.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto$google/cloud/gkehub/v1/feature.proto\'google/cloud/gkehub/v1/membership.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"¯ +ListMembershipsRequest8 +parent ( B(àAúA" gkehub.googleapis.com/Membership + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA"~ +ListMembershipsResponse5 + resources ( 2".google.cloud.gkehub.v1.Membership +next_page_token (  + unreachable ( "N +GetMembershipRequest6 +name ( B(àAúA" + gkehub.googleapis.com/Membership"à +CreateMembershipRequest8 +parent ( B(àAúA" gkehub.googleapis.com/Membership + membership_id ( BàA9 +resource ( 2".google.cloud.gkehub.v1.MembershipBàA + +request_id ( BàA"~ +DeleteMembershipRequest6 +name ( B(àAúA" + gkehub.googleapis.com/Membership + +request_id ( BàA +force (BàA"Û +UpdateMembershipRequest6 +name ( B(àAúA" + gkehub.googleapis.com/Membership4 + update_mask ( 2.google.protobuf.FieldMaskBàA9 +resource ( 2".google.cloud.gkehub.v1.MembershipBàA + +request_id ( BàA"ò +GenerateConnectManifestRequest6 +name ( B(àAúA" + gkehub.googleapis.com/Membership + namespace ( BàA +proxy ( BàA +version ( BàA + +is_upgrade (BàA +registry ( BàA& +image_pull_secret_content ( BàA"a +GenerateConnectManifestResponse> +manifest ( 2,.google.cloud.gkehub.v1.ConnectAgentResource"X +ConnectAgentResource. +type ( 2 .google.cloud.gkehub.v1.TypeMeta +manifest ( "- +TypeMeta +kind (  + api_version ( "’ +ListFeaturesRequest2 +parent ( B"úAgkehub.googleapis.com/Feature + page_size ( + +page_token (  +filter (  +order_by ( "c +ListFeaturesResponse2 + resources ( 2.google.cloud.gkehub.v1.Feature +next_page_token ( "E +GetFeatureRequest0 +name ( B"úA +gkehub.googleapis.com/Feature"¥ +CreateFeatureRequest2 +parent ( B"úAgkehub.googleapis.com/Feature + +feature_id ( 1 +resource ( 2.google.cloud.gkehub.v1.Feature + +request_id ( "p +DeleteFeatureRequest0 +name ( B"úA +gkehub.googleapis.com/Feature +force ( + +request_id ( BàA"À +UpdateFeatureRequest0 +name ( B"úA +gkehub.googleapis.com/Feature/ + update_mask ( 2.google.protobuf.FieldMask1 +resource ( 2.google.cloud.gkehub.v1.Feature + +request_id ( "ù +OperationMetadata4 + create_time ( 2.google.protobuf.TimestampBàA1 +end_time ( 2.google.protobuf.TimestampBàA +target ( BàA +verb ( BàA + status_detail ( BàA +cancel_requested (BàA + api_version ( BàA2ð +GkeHub´ +ListMemberships..google.cloud.gkehub.v1.ListMembershipsRequest/.google.cloud.gkehub.v1.ListMembershipsResponse"@ÚAparent‚Óä“1//v1/{parent=projects/*/locations/*}/memberships¨ + ListFeatures+.google.cloud.gkehub.v1.ListFeaturesRequest,.google.cloud.gkehub.v1.ListFeaturesResponse"=ÚAparent‚Óä“.,/v1/{parent=projects/*/locations/*}/features¡ + GetMembership,.google.cloud.gkehub.v1.GetMembershipRequest".google.cloud.gkehub.v1.Membership">ÚAname‚Óä“1//v1/{name=projects/*/locations/*/memberships/*}• + +GetFeature).google.cloud.gkehub.v1.GetFeatureRequest.google.cloud.gkehub.v1.Feature";ÚAname‚Óä“.,/v1/{name=projects/*/locations/*/features/*}è +CreateMembership/.google.cloud.gkehub.v1.CreateMembershipRequest.google.longrunning.Operation"ƒÊA + +MembershipOperationMetadataÚAparent,resource,membership_id‚Óä“;"//v1/{parent=projects/*/locations/*}/memberships:resourceØ + CreateFeature,.google.cloud.gkehub.v1.CreateFeatureRequest.google.longrunning.Operation"zÊA +FeatureOperationMetadataÚAparent,resource,feature_id‚Óä“8",/v1/{parent=projects/*/locations/*}/features:resourceÏ +DeleteMembership/.google.cloud.gkehub.v1.DeleteMembershipRequest.google.longrunning.Operation"kÊA* +google.protobuf.EmptyOperationMetadataÚAname‚Óä“1*//v1/{name=projects/*/locations/*/memberships/*}Æ + DeleteFeature,.google.cloud.gkehub.v1.DeleteFeatureRequest.google.longrunning.Operation"hÊA* +google.protobuf.EmptyOperationMetadataÚAname‚Óä“.*,/v1/{name=projects/*/locations/*/features/*}ã +UpdateMembership/.google.cloud.gkehub.v1.UpdateMembershipRequest.google.longrunning.Operation"ÊA + +MembershipOperationMetadataÚAname,resource,update_mask‚Óä“;2//v1/{name=projects/*/locations/*/memberships/*}:resource× + UpdateFeature,.google.cloud.gkehub.v1.UpdateFeatureRequest.google.longrunning.Operation"yÊA +FeatureOperationMetadataÚAname,resource,update_mask‚Óä“82,/v1/{name=projects/*/locations/*/features/*}:resourceÛ +GenerateConnectManifest6.google.cloud.gkehub.v1.GenerateConnectManifestRequest7.google.cloud.gkehub.v1.GenerateConnectManifestResponse"O‚Óä“IG/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifestIÊAgkehub.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB® +com.google.cloud.gkehub.v1B ServiceProtoPZ2cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpbªGoogle.Cloud.GkeHub.V1ÊGoogle\\Cloud\\GkeHub\\V1êGoogle::Cloud::GkeHub::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php new file mode 100644 index 000000000000..eba4ae705143 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php @@ -0,0 +1,323 @@ +google.cloud.gkehub.configmanagement.v1.ConfigSync + */ +class ConfigSync extends \Google\Protobuf\Internal\Message +{ + /** + * Git repo configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + */ + protected $git = null; + /** + * Specifies whether the Config Sync Repo is + * in "hierarchical" or "unstructured" mode. + * + * Generated from protobuf field string source_format = 8; + */ + protected $source_format = ''; + /** + * Enables the installation of ConfigSync. + * If set to true, ConfigSync resources will be created and the other + * ConfigSync fields will be applied if exist. + * If set to false, all other ConfigSync fields will be ignored, ConfigSync + * resources will be deleted. + * If omitted, ConfigSync resources will be managed depends on the presence + * of the git or oci field. + * + * Generated from protobuf field optional bool enabled = 10; + */ + protected $enabled = null; + /** + * Set to true to enable the Config Sync admission webhook to prevent drifts. + * If set to `false`, disables the Config Sync admission webhook and does not + * prevent drifts. + * + * Generated from protobuf field bool prevent_drift = 11; + */ + protected $prevent_drift = false; + /** + * OCI repo configuration for the cluster + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + protected $oci = null; + /** + * The Email of the Google Cloud Service Account (GSA) used for exporting + * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. + * The GSA should have the Monitoring Metric Writer + * (roles/monitoring.metricWriter) IAM role. + * The Kubernetes ServiceAccount `default` in the namespace + * `config-management-monitoring` should be bound to the GSA. + * + * Generated from protobuf field string metrics_gcp_service_account_email = 15; + */ + protected $metrics_gcp_service_account_email = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig $git + * Git repo configuration for the cluster. + * @type string $source_format + * Specifies whether the Config Sync Repo is + * in "hierarchical" or "unstructured" mode. + * @type bool $enabled + * Enables the installation of ConfigSync. + * If set to true, ConfigSync resources will be created and the other + * ConfigSync fields will be applied if exist. + * If set to false, all other ConfigSync fields will be ignored, ConfigSync + * resources will be deleted. + * If omitted, ConfigSync resources will be managed depends on the presence + * of the git or oci field. + * @type bool $prevent_drift + * Set to true to enable the Config Sync admission webhook to prevent drifts. + * If set to `false`, disables the Config Sync admission webhook and does not + * prevent drifts. + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig $oci + * OCI repo configuration for the cluster + * @type string $metrics_gcp_service_account_email + * The Email of the Google Cloud Service Account (GSA) used for exporting + * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. + * The GSA should have the Monitoring Metric Writer + * (roles/monitoring.metricWriter) IAM role. + * The Kubernetes ServiceAccount `default` in the namespace + * `config-management-monitoring` should be bound to the GSA. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Git repo configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig|null + */ + public function getGit() + { + return $this->git; + } + + public function hasGit() + { + return isset($this->git); + } + + public function clearGit() + { + unset($this->git); + } + + /** + * Git repo configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig $var + * @return $this + */ + public function setGit($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig::class); + $this->git = $var; + + return $this; + } + + /** + * Specifies whether the Config Sync Repo is + * in "hierarchical" or "unstructured" mode. + * + * Generated from protobuf field string source_format = 8; + * @return string + */ + public function getSourceFormat() + { + return $this->source_format; + } + + /** + * Specifies whether the Config Sync Repo is + * in "hierarchical" or "unstructured" mode. + * + * Generated from protobuf field string source_format = 8; + * @param string $var + * @return $this + */ + public function setSourceFormat($var) + { + GPBUtil::checkString($var, True); + $this->source_format = $var; + + return $this; + } + + /** + * Enables the installation of ConfigSync. + * If set to true, ConfigSync resources will be created and the other + * ConfigSync fields will be applied if exist. + * If set to false, all other ConfigSync fields will be ignored, ConfigSync + * resources will be deleted. + * If omitted, ConfigSync resources will be managed depends on the presence + * of the git or oci field. + * + * Generated from protobuf field optional bool enabled = 10; + * @return bool + */ + public function getEnabled() + { + return isset($this->enabled) ? $this->enabled : false; + } + + public function hasEnabled() + { + return isset($this->enabled); + } + + public function clearEnabled() + { + unset($this->enabled); + } + + /** + * Enables the installation of ConfigSync. + * If set to true, ConfigSync resources will be created and the other + * ConfigSync fields will be applied if exist. + * If set to false, all other ConfigSync fields will be ignored, ConfigSync + * resources will be deleted. + * If omitted, ConfigSync resources will be managed depends on the presence + * of the git or oci field. + * + * Generated from protobuf field optional bool enabled = 10; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Set to true to enable the Config Sync admission webhook to prevent drifts. + * If set to `false`, disables the Config Sync admission webhook and does not + * prevent drifts. + * + * Generated from protobuf field bool prevent_drift = 11; + * @return bool + */ + public function getPreventDrift() + { + return $this->prevent_drift; + } + + /** + * Set to true to enable the Config Sync admission webhook to prevent drifts. + * If set to `false`, disables the Config Sync admission webhook and does not + * prevent drifts. + * + * Generated from protobuf field bool prevent_drift = 11; + * @param bool $var + * @return $this + */ + public function setPreventDrift($var) + { + GPBUtil::checkBool($var); + $this->prevent_drift = $var; + + return $this; + } + + /** + * OCI repo configuration for the cluster + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig|null + */ + public function getOci() + { + return $this->oci; + } + + public function hasOci() + { + return isset($this->oci); + } + + public function clearOci() + { + unset($this->oci); + } + + /** + * OCI repo configuration for the cluster + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig $var + * @return $this + */ + public function setOci($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig::class); + $this->oci = $var; + + return $this; + } + + /** + * The Email of the Google Cloud Service Account (GSA) used for exporting + * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. + * The GSA should have the Monitoring Metric Writer + * (roles/monitoring.metricWriter) IAM role. + * The Kubernetes ServiceAccount `default` in the namespace + * `config-management-monitoring` should be bound to the GSA. + * + * Generated from protobuf field string metrics_gcp_service_account_email = 15; + * @return string + */ + public function getMetricsGcpServiceAccountEmail() + { + return $this->metrics_gcp_service_account_email; + } + + /** + * The Email of the Google Cloud Service Account (GSA) used for exporting + * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. + * The GSA should have the Monitoring Metric Writer + * (roles/monitoring.metricWriter) IAM role. + * The Kubernetes ServiceAccount `default` in the namespace + * `config-management-monitoring` should be bound to the GSA. + * + * Generated from protobuf field string metrics_gcp_service_account_email = 15; + * @param string $var + * @return $this + */ + public function setMetricsGcpServiceAccountEmail($var) + { + GPBUtil::checkString($var, True); + $this->metrics_gcp_service_account_email = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php new file mode 100644 index 000000000000..828c82a203d3 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php @@ -0,0 +1,271 @@ +google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + */ +class ConfigSyncDeploymentState extends \Google\Protobuf\Internal\Message +{ + /** + * Deployment state of the importer pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + */ + protected $importer = 0; + /** + * Deployment state of the syncer pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + */ + protected $syncer = 0; + /** + * Deployment state of the git-sync pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + */ + protected $git_sync = 0; + /** + * Deployment state of the monitor pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + */ + protected $monitor = 0; + /** + * Deployment state of reconciler-manager pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + */ + protected $reconciler_manager = 0; + /** + * Deployment state of root-reconciler + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + */ + protected $root_reconciler = 0; + /** + * Deployment state of admission-webhook + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + */ + protected $admission_webhook = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $importer + * Deployment state of the importer pod + * @type int $syncer + * Deployment state of the syncer pod + * @type int $git_sync + * Deployment state of the git-sync pod + * @type int $monitor + * Deployment state of the monitor pod + * @type int $reconciler_manager + * Deployment state of reconciler-manager pod + * @type int $root_reconciler + * Deployment state of root-reconciler + * @type int $admission_webhook + * Deployment state of admission-webhook + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Deployment state of the importer pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * @return int + */ + public function getImporter() + { + return $this->importer; + } + + /** + * Deployment state of the importer pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * @param int $var + * @return $this + */ + public function setImporter($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->importer = $var; + + return $this; + } + + /** + * Deployment state of the syncer pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * @return int + */ + public function getSyncer() + { + return $this->syncer; + } + + /** + * Deployment state of the syncer pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * @param int $var + * @return $this + */ + public function setSyncer($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->syncer = $var; + + return $this; + } + + /** + * Deployment state of the git-sync pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * @return int + */ + public function getGitSync() + { + return $this->git_sync; + } + + /** + * Deployment state of the git-sync pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * @param int $var + * @return $this + */ + public function setGitSync($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->git_sync = $var; + + return $this; + } + + /** + * Deployment state of the monitor pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * @return int + */ + public function getMonitor() + { + return $this->monitor; + } + + /** + * Deployment state of the monitor pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * @param int $var + * @return $this + */ + public function setMonitor($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->monitor = $var; + + return $this; + } + + /** + * Deployment state of reconciler-manager pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * @return int + */ + public function getReconcilerManager() + { + return $this->reconciler_manager; + } + + /** + * Deployment state of reconciler-manager pod + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * @param int $var + * @return $this + */ + public function setReconcilerManager($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->reconciler_manager = $var; + + return $this; + } + + /** + * Deployment state of root-reconciler + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * @return int + */ + public function getRootReconciler() + { + return $this->root_reconciler; + } + + /** + * Deployment state of root-reconciler + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * @param int $var + * @return $this + */ + public function setRootReconciler($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->root_reconciler = $var; + + return $this; + } + + /** + * Deployment state of admission-webhook + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * @return int + */ + public function getAdmissionWebhook() + { + return $this->admission_webhook; + } + + /** + * Deployment state of admission-webhook + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * @param int $var + * @return $this + */ + public function setAdmissionWebhook($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->admission_webhook = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php new file mode 100644 index 000000000000..2aefa6086d1e --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php @@ -0,0 +1,67 @@ +google.cloud.gkehub.configmanagement.v1.ConfigSyncError + */ +class ConfigSyncError extends \Google\Protobuf\Internal\Message +{ + /** + * A string representing the user facing error message + * + * Generated from protobuf field string error_message = 1; + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $error_message + * A string representing the user facing error message + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * A string representing the user facing error message + * + * Generated from protobuf field string error_message = 1; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * A string representing the user facing error message + * + * Generated from protobuf field string error_message = 1; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php new file mode 100644 index 000000000000..d2fb6690daf1 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php @@ -0,0 +1,309 @@ +google.cloud.gkehub.configmanagement.v1.ConfigSyncState + */ +class ConfigSyncState extends \Google\Protobuf\Internal\Message +{ + /** + * The version of ConfigSync deployed + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + */ + protected $version = null; + /** + * Information about the deployment of ConfigSync, including the version + * of the various Pods deployed + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + */ + protected $deployment_state = null; + /** + * The state of ConfigSync's process to sync configs to a cluster + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + */ + protected $sync_state = null; + /** + * Errors pertaining to the installation of Config Sync. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + private $errors; + /** + * The state of the RootSync CRD + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + */ + protected $rootsync_crd = 0; + /** + * The state of the Reposync CRD + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + */ + protected $reposync_crd = 0; + /** + * The state of CS + * This field summarizes the other fields in this message. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion $version + * The version of ConfigSync deployed + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState $deployment_state + * Information about the deployment of ConfigSync, including the version + * of the various Pods deployed + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState $sync_state + * The state of ConfigSync's process to sync configs to a cluster + * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError>|\Google\Protobuf\Internal\RepeatedField $errors + * Errors pertaining to the installation of Config Sync. + * @type int $rootsync_crd + * The state of the RootSync CRD + * @type int $reposync_crd + * The state of the Reposync CRD + * @type int $state + * The state of CS + * This field summarizes the other fields in this message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * The version of ConfigSync deployed + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion|null + */ + public function getVersion() + { + return $this->version; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * The version of ConfigSync deployed + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion::class); + $this->version = $var; + + return $this; + } + + /** + * Information about the deployment of ConfigSync, including the version + * of the various Pods deployed + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState|null + */ + public function getDeploymentState() + { + return $this->deployment_state; + } + + public function hasDeploymentState() + { + return isset($this->deployment_state); + } + + public function clearDeploymentState() + { + unset($this->deployment_state); + } + + /** + * Information about the deployment of ConfigSync, including the version + * of the various Pods deployed + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState $var + * @return $this + */ + public function setDeploymentState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState::class); + $this->deployment_state = $var; + + return $this; + } + + /** + * The state of ConfigSync's process to sync configs to a cluster + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState|null + */ + public function getSyncState() + { + return $this->sync_state; + } + + public function hasSyncState() + { + return isset($this->sync_state); + } + + public function clearSyncState() + { + unset($this->sync_state); + } + + /** + * The state of ConfigSync's process to sync configs to a cluster + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState $var + * @return $this + */ + public function setSyncState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState::class); + $this->sync_state = $var; + + return $this; + } + + /** + * Errors pertaining to the installation of Config Sync. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Errors pertaining to the installation of Config Sync. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError::class); + $this->errors = $arr; + + return $this; + } + + /** + * The state of the RootSync CRD + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * @return int + */ + public function getRootsyncCrd() + { + return $this->rootsync_crd; + } + + /** + * The state of the RootSync CRD + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * @param int $var + * @return $this + */ + public function setRootsyncCrd($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\CRDState::class); + $this->rootsync_crd = $var; + + return $this; + } + + /** + * The state of the Reposync CRD + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * @return int + */ + public function getReposyncCrd() + { + return $this->reposync_crd; + } + + /** + * The state of the Reposync CRD + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * @param int $var + * @return $this + */ + public function setReposyncCrd($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\CRDState::class); + $this->reposync_crd = $var; + + return $this; + } + + /** + * The state of CS + * This field summarizes the other fields in this message. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The state of CS + * This field summarizes the other fields in this message. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php new file mode 100644 index 000000000000..2876176a286e --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php @@ -0,0 +1,78 @@ +google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState + */ +class CRDState +{ + /** + * CRD's state cannot be determined + * + * Generated from protobuf enum CRD_STATE_UNSPECIFIED = 0; + */ + const CRD_STATE_UNSPECIFIED = 0; + /** + * CRD is not installed + * + * Generated from protobuf enum NOT_INSTALLED = 1; + */ + const NOT_INSTALLED = 1; + /** + * CRD is installed + * + * Generated from protobuf enum INSTALLED = 2; + */ + const INSTALLED = 2; + /** + * CRD is terminating (i.e., it has been deleted and is cleaning up) + * + * Generated from protobuf enum TERMINATING = 3; + */ + const TERMINATING = 3; + /** + * CRD is installing + * + * Generated from protobuf enum INSTALLING = 4; + */ + const INSTALLING = 4; + + private static $valueToName = [ + self::CRD_STATE_UNSPECIFIED => 'CRD_STATE_UNSPECIFIED', + self::NOT_INSTALLED => 'NOT_INSTALLED', + self::INSTALLED => 'INSTALLED', + self::TERMINATING => 'TERMINATING', + self::INSTALLING => 'INSTALLING', + ]; + + 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(CRDState::class, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState_CRDState::class); + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php new file mode 100644 index 000000000000..090be33ad0df --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php @@ -0,0 +1,76 @@ +google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State + */ +class State +{ + /** + * CS's state cannot be determined. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * CS is not installed. + * + * Generated from protobuf enum CONFIG_SYNC_NOT_INSTALLED = 1; + */ + const CONFIG_SYNC_NOT_INSTALLED = 1; + /** + * The expected CS version is installed successfully. + * + * Generated from protobuf enum CONFIG_SYNC_INSTALLED = 2; + */ + const CONFIG_SYNC_INSTALLED = 2; + /** + * CS encounters errors. + * + * Generated from protobuf enum CONFIG_SYNC_ERROR = 3; + */ + const CONFIG_SYNC_ERROR = 3; + /** + * CS is installing or terminating. + * + * Generated from protobuf enum CONFIG_SYNC_PENDING = 4; + */ + const CONFIG_SYNC_PENDING = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::CONFIG_SYNC_NOT_INSTALLED => 'CONFIG_SYNC_NOT_INSTALLED', + self::CONFIG_SYNC_INSTALLED => 'CONFIG_SYNC_INSTALLED', + self::CONFIG_SYNC_ERROR => 'CONFIG_SYNC_ERROR', + self::CONFIG_SYNC_PENDING => 'CONFIG_SYNC_PENDING', + ]; + + 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\GkeHub\ConfigManagement\V1\ConfigSyncState_State::class); + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php new file mode 100644 index 000000000000..b89d0a14f997 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php @@ -0,0 +1,271 @@ +google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion + */ +class ConfigSyncVersion extends \Google\Protobuf\Internal\Message +{ + /** + * Version of the deployed importer pod + * + * Generated from protobuf field string importer = 1; + */ + protected $importer = ''; + /** + * Version of the deployed syncer pod + * + * Generated from protobuf field string syncer = 2; + */ + protected $syncer = ''; + /** + * Version of the deployed git-sync pod + * + * Generated from protobuf field string git_sync = 3; + */ + protected $git_sync = ''; + /** + * Version of the deployed monitor pod + * + * Generated from protobuf field string monitor = 4; + */ + protected $monitor = ''; + /** + * Version of the deployed reconciler-manager pod + * + * Generated from protobuf field string reconciler_manager = 5; + */ + protected $reconciler_manager = ''; + /** + * Version of the deployed reconciler container in root-reconciler pod + * + * Generated from protobuf field string root_reconciler = 6; + */ + protected $root_reconciler = ''; + /** + * Version of the deployed admission_webhook pod + * + * Generated from protobuf field string admission_webhook = 7; + */ + protected $admission_webhook = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $importer + * Version of the deployed importer pod + * @type string $syncer + * Version of the deployed syncer pod + * @type string $git_sync + * Version of the deployed git-sync pod + * @type string $monitor + * Version of the deployed monitor pod + * @type string $reconciler_manager + * Version of the deployed reconciler-manager pod + * @type string $root_reconciler + * Version of the deployed reconciler container in root-reconciler pod + * @type string $admission_webhook + * Version of the deployed admission_webhook pod + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Version of the deployed importer pod + * + * Generated from protobuf field string importer = 1; + * @return string + */ + public function getImporter() + { + return $this->importer; + } + + /** + * Version of the deployed importer pod + * + * Generated from protobuf field string importer = 1; + * @param string $var + * @return $this + */ + public function setImporter($var) + { + GPBUtil::checkString($var, True); + $this->importer = $var; + + return $this; + } + + /** + * Version of the deployed syncer pod + * + * Generated from protobuf field string syncer = 2; + * @return string + */ + public function getSyncer() + { + return $this->syncer; + } + + /** + * Version of the deployed syncer pod + * + * Generated from protobuf field string syncer = 2; + * @param string $var + * @return $this + */ + public function setSyncer($var) + { + GPBUtil::checkString($var, True); + $this->syncer = $var; + + return $this; + } + + /** + * Version of the deployed git-sync pod + * + * Generated from protobuf field string git_sync = 3; + * @return string + */ + public function getGitSync() + { + return $this->git_sync; + } + + /** + * Version of the deployed git-sync pod + * + * Generated from protobuf field string git_sync = 3; + * @param string $var + * @return $this + */ + public function setGitSync($var) + { + GPBUtil::checkString($var, True); + $this->git_sync = $var; + + return $this; + } + + /** + * Version of the deployed monitor pod + * + * Generated from protobuf field string monitor = 4; + * @return string + */ + public function getMonitor() + { + return $this->monitor; + } + + /** + * Version of the deployed monitor pod + * + * Generated from protobuf field string monitor = 4; + * @param string $var + * @return $this + */ + public function setMonitor($var) + { + GPBUtil::checkString($var, True); + $this->monitor = $var; + + return $this; + } + + /** + * Version of the deployed reconciler-manager pod + * + * Generated from protobuf field string reconciler_manager = 5; + * @return string + */ + public function getReconcilerManager() + { + return $this->reconciler_manager; + } + + /** + * Version of the deployed reconciler-manager pod + * + * Generated from protobuf field string reconciler_manager = 5; + * @param string $var + * @return $this + */ + public function setReconcilerManager($var) + { + GPBUtil::checkString($var, True); + $this->reconciler_manager = $var; + + return $this; + } + + /** + * Version of the deployed reconciler container in root-reconciler pod + * + * Generated from protobuf field string root_reconciler = 6; + * @return string + */ + public function getRootReconciler() + { + return $this->root_reconciler; + } + + /** + * Version of the deployed reconciler container in root-reconciler pod + * + * Generated from protobuf field string root_reconciler = 6; + * @param string $var + * @return $this + */ + public function setRootReconciler($var) + { + GPBUtil::checkString($var, True); + $this->root_reconciler = $var; + + return $this; + } + + /** + * Version of the deployed admission_webhook pod + * + * Generated from protobuf field string admission_webhook = 7; + * @return string + */ + public function getAdmissionWebhook() + { + return $this->admission_webhook; + } + + /** + * Version of the deployed admission_webhook pod + * + * Generated from protobuf field string admission_webhook = 7; + * @param string $var + * @return $this + */ + public function setAdmissionWebhook($var) + { + GPBUtil::checkString($var, True); + $this->admission_webhook = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php new file mode 100644 index 000000000000..802546aeafdd --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php @@ -0,0 +1,75 @@ +google.cloud.gkehub.configmanagement.v1.DeploymentState + */ +class DeploymentState +{ + /** + * Deployment's state cannot be determined + * + * Generated from protobuf enum DEPLOYMENT_STATE_UNSPECIFIED = 0; + */ + const DEPLOYMENT_STATE_UNSPECIFIED = 0; + /** + * Deployment is not installed + * + * Generated from protobuf enum NOT_INSTALLED = 1; + */ + const NOT_INSTALLED = 1; + /** + * Deployment is installed + * + * Generated from protobuf enum INSTALLED = 2; + */ + const INSTALLED = 2; + /** + * Deployment was attempted to be installed, but has errors + * + * Generated from protobuf enum ERROR = 3; + */ + const ERROR = 3; + /** + * Deployment is installing or terminating + * + * Generated from protobuf enum PENDING = 4; + */ + const PENDING = 4; + + private static $valueToName = [ + self::DEPLOYMENT_STATE_UNSPECIFIED => 'DEPLOYMENT_STATE_UNSPECIFIED', + self::NOT_INSTALLED => 'NOT_INSTALLED', + self::INSTALLED => 'INSTALLED', + self::ERROR => 'ERROR', + self::PENDING => 'PENDING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php new file mode 100644 index 000000000000..2eccf955ae58 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php @@ -0,0 +1,179 @@ +google.cloud.gkehub.configmanagement.v1.ErrorResource + */ +class ErrorResource extends \Google\Protobuf\Internal\Message +{ + /** + * Path in the git repo of the erroneous config + * + * Generated from protobuf field string source_path = 1; + */ + protected $source_path = ''; + /** + * Metadata name of the resource that is causing an error + * + * Generated from protobuf field string resource_name = 2; + */ + protected $resource_name = ''; + /** + * Namespace of the resource that is causing an error + * + * Generated from protobuf field string resource_namespace = 3; + */ + protected $resource_namespace = ''; + /** + * Group/version/kind of the resource that is causing an error + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + */ + protected $resource_gvk = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $source_path + * Path in the git repo of the erroneous config + * @type string $resource_name + * Metadata name of the resource that is causing an error + * @type string $resource_namespace + * Namespace of the resource that is causing an error + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind $resource_gvk + * Group/version/kind of the resource that is causing an error + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Path in the git repo of the erroneous config + * + * Generated from protobuf field string source_path = 1; + * @return string + */ + public function getSourcePath() + { + return $this->source_path; + } + + /** + * Path in the git repo of the erroneous config + * + * Generated from protobuf field string source_path = 1; + * @param string $var + * @return $this + */ + public function setSourcePath($var) + { + GPBUtil::checkString($var, True); + $this->source_path = $var; + + return $this; + } + + /** + * Metadata name of the resource that is causing an error + * + * Generated from protobuf field string resource_name = 2; + * @return string + */ + public function getResourceName() + { + return $this->resource_name; + } + + /** + * Metadata name of the resource that is causing an error + * + * Generated from protobuf field string resource_name = 2; + * @param string $var + * @return $this + */ + public function setResourceName($var) + { + GPBUtil::checkString($var, True); + $this->resource_name = $var; + + return $this; + } + + /** + * Namespace of the resource that is causing an error + * + * Generated from protobuf field string resource_namespace = 3; + * @return string + */ + public function getResourceNamespace() + { + return $this->resource_namespace; + } + + /** + * Namespace of the resource that is causing an error + * + * Generated from protobuf field string resource_namespace = 3; + * @param string $var + * @return $this + */ + public function setResourceNamespace($var) + { + GPBUtil::checkString($var, True); + $this->resource_namespace = $var; + + return $this; + } + + /** + * Group/version/kind of the resource that is causing an error + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind|null + */ + public function getResourceGvk() + { + return $this->resource_gvk; + } + + public function hasResourceGvk() + { + return isset($this->resource_gvk); + } + + public function clearResourceGvk() + { + unset($this->resource_gvk); + } + + /** + * Group/version/kind of the resource that is causing an error + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind $var + * @return $this + */ + public function setResourceGvk($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind::class); + $this->resource_gvk = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php new file mode 100644 index 000000000000..711ded4041be --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php @@ -0,0 +1,101 @@ +google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + */ +class GatekeeperDeploymentState extends \Google\Protobuf\Internal\Message +{ + /** + * Status of gatekeeper-controller-manager pod. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + */ + protected $gatekeeper_controller_manager_state = 0; + /** + * Status of gatekeeper-audit deployment. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + */ + protected $gatekeeper_audit = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $gatekeeper_controller_manager_state + * Status of gatekeeper-controller-manager pod. + * @type int $gatekeeper_audit + * Status of gatekeeper-audit deployment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Status of gatekeeper-controller-manager pod. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * @return int + */ + public function getGatekeeperControllerManagerState() + { + return $this->gatekeeper_controller_manager_state; + } + + /** + * Status of gatekeeper-controller-manager pod. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * @param int $var + * @return $this + */ + public function setGatekeeperControllerManagerState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->gatekeeper_controller_manager_state = $var; + + return $this; + } + + /** + * Status of gatekeeper-audit deployment. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * @return int + */ + public function getGatekeeperAudit() + { + return $this->gatekeeper_audit; + } + + /** + * Status of gatekeeper-audit deployment. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * @param int $var + * @return $this + */ + public function setGatekeeperAudit($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->gatekeeper_audit = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php new file mode 100644 index 000000000000..e31ce65e990b --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php @@ -0,0 +1,321 @@ +google.cloud.gkehub.configmanagement.v1.GitConfig + */ +class GitConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The URL of the Git repository to use as the source of truth. + * + * Generated from protobuf field string sync_repo = 1; + */ + protected $sync_repo = ''; + /** + * The branch of the repository to sync from. Default: master. + * + * Generated from protobuf field string sync_branch = 2; + */ + protected $sync_branch = ''; + /** + * The path within the Git repository that represents the top level of the + * repo to sync. Default: the root directory of the repository. + * + * Generated from protobuf field string policy_dir = 3; + */ + protected $policy_dir = ''; + /** + * Period in seconds between consecutive syncs. Default: 15. + * + * Generated from protobuf field int64 sync_wait_secs = 4; + */ + protected $sync_wait_secs = 0; + /** + * Git revision (tag or hash) to check out. Default HEAD. + * + * Generated from protobuf field string sync_rev = 5; + */ + protected $sync_rev = ''; + /** + * Type of secret configured for access to the Git repo. Must be one of ssh, + * cookiefile, gcenode, token, gcpserviceaccount or none. The + * validation of this is case-sensitive. Required. + * + * Generated from protobuf field string secret_type = 6; + */ + protected $secret_type = ''; + /** + * URL for the HTTPS proxy to be used when communicating with the Git repo. + * + * Generated from protobuf field string https_proxy = 7; + */ + protected $https_proxy = ''; + /** + * The Google Cloud Service Account Email used for auth when secret_type is + * gcpServiceAccount. + * + * Generated from protobuf field string gcp_service_account_email = 8; + */ + protected $gcp_service_account_email = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sync_repo + * The URL of the Git repository to use as the source of truth. + * @type string $sync_branch + * The branch of the repository to sync from. Default: master. + * @type string $policy_dir + * The path within the Git repository that represents the top level of the + * repo to sync. Default: the root directory of the repository. + * @type int|string $sync_wait_secs + * Period in seconds between consecutive syncs. Default: 15. + * @type string $sync_rev + * Git revision (tag or hash) to check out. Default HEAD. + * @type string $secret_type + * Type of secret configured for access to the Git repo. Must be one of ssh, + * cookiefile, gcenode, token, gcpserviceaccount or none. The + * validation of this is case-sensitive. Required. + * @type string $https_proxy + * URL for the HTTPS proxy to be used when communicating with the Git repo. + * @type string $gcp_service_account_email + * The Google Cloud Service Account Email used for auth when secret_type is + * gcpServiceAccount. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * The URL of the Git repository to use as the source of truth. + * + * Generated from protobuf field string sync_repo = 1; + * @return string + */ + public function getSyncRepo() + { + return $this->sync_repo; + } + + /** + * The URL of the Git repository to use as the source of truth. + * + * Generated from protobuf field string sync_repo = 1; + * @param string $var + * @return $this + */ + public function setSyncRepo($var) + { + GPBUtil::checkString($var, True); + $this->sync_repo = $var; + + return $this; + } + + /** + * The branch of the repository to sync from. Default: master. + * + * Generated from protobuf field string sync_branch = 2; + * @return string + */ + public function getSyncBranch() + { + return $this->sync_branch; + } + + /** + * The branch of the repository to sync from. Default: master. + * + * Generated from protobuf field string sync_branch = 2; + * @param string $var + * @return $this + */ + public function setSyncBranch($var) + { + GPBUtil::checkString($var, True); + $this->sync_branch = $var; + + return $this; + } + + /** + * The path within the Git repository that represents the top level of the + * repo to sync. Default: the root directory of the repository. + * + * Generated from protobuf field string policy_dir = 3; + * @return string + */ + public function getPolicyDir() + { + return $this->policy_dir; + } + + /** + * The path within the Git repository that represents the top level of the + * repo to sync. Default: the root directory of the repository. + * + * Generated from protobuf field string policy_dir = 3; + * @param string $var + * @return $this + */ + public function setPolicyDir($var) + { + GPBUtil::checkString($var, True); + $this->policy_dir = $var; + + return $this; + } + + /** + * Period in seconds between consecutive syncs. Default: 15. + * + * Generated from protobuf field int64 sync_wait_secs = 4; + * @return int|string + */ + public function getSyncWaitSecs() + { + return $this->sync_wait_secs; + } + + /** + * Period in seconds between consecutive syncs. Default: 15. + * + * Generated from protobuf field int64 sync_wait_secs = 4; + * @param int|string $var + * @return $this + */ + public function setSyncWaitSecs($var) + { + GPBUtil::checkInt64($var); + $this->sync_wait_secs = $var; + + return $this; + } + + /** + * Git revision (tag or hash) to check out. Default HEAD. + * + * Generated from protobuf field string sync_rev = 5; + * @return string + */ + public function getSyncRev() + { + return $this->sync_rev; + } + + /** + * Git revision (tag or hash) to check out. Default HEAD. + * + * Generated from protobuf field string sync_rev = 5; + * @param string $var + * @return $this + */ + public function setSyncRev($var) + { + GPBUtil::checkString($var, True); + $this->sync_rev = $var; + + return $this; + } + + /** + * Type of secret configured for access to the Git repo. Must be one of ssh, + * cookiefile, gcenode, token, gcpserviceaccount or none. The + * validation of this is case-sensitive. Required. + * + * Generated from protobuf field string secret_type = 6; + * @return string + */ + public function getSecretType() + { + return $this->secret_type; + } + + /** + * Type of secret configured for access to the Git repo. Must be one of ssh, + * cookiefile, gcenode, token, gcpserviceaccount or none. The + * validation of this is case-sensitive. Required. + * + * Generated from protobuf field string secret_type = 6; + * @param string $var + * @return $this + */ + public function setSecretType($var) + { + GPBUtil::checkString($var, True); + $this->secret_type = $var; + + return $this; + } + + /** + * URL for the HTTPS proxy to be used when communicating with the Git repo. + * + * Generated from protobuf field string https_proxy = 7; + * @return string + */ + public function getHttpsProxy() + { + return $this->https_proxy; + } + + /** + * URL for the HTTPS proxy to be used when communicating with the Git repo. + * + * Generated from protobuf field string https_proxy = 7; + * @param string $var + * @return $this + */ + public function setHttpsProxy($var) + { + GPBUtil::checkString($var, True); + $this->https_proxy = $var; + + return $this; + } + + /** + * The Google Cloud Service Account Email used for auth when secret_type is + * gcpServiceAccount. + * + * Generated from protobuf field string gcp_service_account_email = 8; + * @return string + */ + public function getGcpServiceAccountEmail() + { + return $this->gcp_service_account_email; + } + + /** + * The Google Cloud Service Account Email used for auth when secret_type is + * gcpServiceAccount. + * + * Generated from protobuf field string gcp_service_account_email = 8; + * @param string $var + * @return $this + */ + public function setGcpServiceAccountEmail($var) + { + GPBUtil::checkString($var, True); + $this->gcp_service_account_email = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php new file mode 100644 index 000000000000..bea54d39e71d --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php @@ -0,0 +1,135 @@ +google.cloud.gkehub.configmanagement.v1.GroupVersionKind + */ +class GroupVersionKind extends \Google\Protobuf\Internal\Message +{ + /** + * Kubernetes Group + * + * Generated from protobuf field string group = 1; + */ + protected $group = ''; + /** + * Kubernetes Version + * + * Generated from protobuf field string version = 2; + */ + protected $version = ''; + /** + * Kubernetes Kind + * + * Generated from protobuf field string kind = 3; + */ + protected $kind = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $group + * Kubernetes Group + * @type string $version + * Kubernetes Version + * @type string $kind + * Kubernetes Kind + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Kubernetes Group + * + * Generated from protobuf field string group = 1; + * @return string + */ + public function getGroup() + { + return $this->group; + } + + /** + * Kubernetes Group + * + * Generated from protobuf field string group = 1; + * @param string $var + * @return $this + */ + public function setGroup($var) + { + GPBUtil::checkString($var, True); + $this->group = $var; + + return $this; + } + + /** + * Kubernetes Version + * + * Generated from protobuf field string version = 2; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Kubernetes Version + * + * Generated from protobuf field string version = 2; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Kubernetes Kind + * + * Generated from protobuf field string kind = 3; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * Kubernetes Kind + * + * Generated from protobuf field string kind = 3; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php new file mode 100644 index 000000000000..0f5c352c5b10 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php @@ -0,0 +1,135 @@ +google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + */ +class HierarchyControllerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Hierarchy Controller is enabled in this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * Whether pod tree labels are enabled in this cluster. + * + * Generated from protobuf field bool enable_pod_tree_labels = 2; + */ + protected $enable_pod_tree_labels = false; + /** + * Whether hierarchical resource quota is enabled in this cluster. + * + * Generated from protobuf field bool enable_hierarchical_resource_quota = 3; + */ + protected $enable_hierarchical_resource_quota = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Hierarchy Controller is enabled in this cluster. + * @type bool $enable_pod_tree_labels + * Whether pod tree labels are enabled in this cluster. + * @type bool $enable_hierarchical_resource_quota + * Whether hierarchical resource quota is enabled in this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Whether Hierarchy Controller is enabled in this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Hierarchy Controller is enabled in this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Whether pod tree labels are enabled in this cluster. + * + * Generated from protobuf field bool enable_pod_tree_labels = 2; + * @return bool + */ + public function getEnablePodTreeLabels() + { + return $this->enable_pod_tree_labels; + } + + /** + * Whether pod tree labels are enabled in this cluster. + * + * Generated from protobuf field bool enable_pod_tree_labels = 2; + * @param bool $var + * @return $this + */ + public function setEnablePodTreeLabels($var) + { + GPBUtil::checkBool($var); + $this->enable_pod_tree_labels = $var; + + return $this; + } + + /** + * Whether hierarchical resource quota is enabled in this cluster. + * + * Generated from protobuf field bool enable_hierarchical_resource_quota = 3; + * @return bool + */ + public function getEnableHierarchicalResourceQuota() + { + return $this->enable_hierarchical_resource_quota; + } + + /** + * Whether hierarchical resource quota is enabled in this cluster. + * + * Generated from protobuf field bool enable_hierarchical_resource_quota = 3; + * @param bool $var + * @return $this + */ + public function setEnableHierarchicalResourceQuota($var) + { + GPBUtil::checkBool($var); + $this->enable_hierarchical_resource_quota = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php new file mode 100644 index 000000000000..d348a6ff5617 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php @@ -0,0 +1,101 @@ +google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + */ +class HierarchyControllerDeploymentState extends \Google\Protobuf\Internal\Message +{ + /** + * The deployment state for open source HNC (e.g. v0.7.0-hc.0) + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + */ + protected $hnc = 0; + /** + * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + */ + protected $extension = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $hnc + * The deployment state for open source HNC (e.g. v0.7.0-hc.0) + * @type int $extension + * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * The deployment state for open source HNC (e.g. v0.7.0-hc.0) + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * @return int + */ + public function getHnc() + { + return $this->hnc; + } + + /** + * The deployment state for open source HNC (e.g. v0.7.0-hc.0) + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * @param int $var + * @return $this + */ + public function setHnc($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->hnc = $var; + + return $this; + } + + /** + * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * @return int + */ + public function getExtension() + { + return $this->extension; + } + + /** + * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * @param int $var + * @return $this + */ + public function setExtension($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->extension = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php new file mode 100644 index 000000000000..0fa804532730 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php @@ -0,0 +1,121 @@ +google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + */ +class HierarchyControllerState extends \Google\Protobuf\Internal\Message +{ + /** + * The version for Hierarchy Controller + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + */ + protected $version = null; + /** + * The deployment state for Hierarchy Controller + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + */ + protected $state = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion $version + * The version for Hierarchy Controller + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState $state + * The deployment state for Hierarchy Controller + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * The version for Hierarchy Controller + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion|null + */ + public function getVersion() + { + return $this->version; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * The version for Hierarchy Controller + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion::class); + $this->version = $var; + + return $this; + } + + /** + * The deployment state for Hierarchy Controller + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState|null + */ + public function getState() + { + return $this->state; + } + + public function hasState() + { + return isset($this->state); + } + + public function clearState() + { + unset($this->state); + } + + /** + * The deployment state for Hierarchy Controller + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php new file mode 100644 index 000000000000..7a29821ab300 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php @@ -0,0 +1,101 @@ +google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + */ +class HierarchyControllerVersion extends \Google\Protobuf\Internal\Message +{ + /** + * Version for open source HNC + * + * Generated from protobuf field string hnc = 1; + */ + protected $hnc = ''; + /** + * Version for Hierarchy Controller extension + * + * Generated from protobuf field string extension = 2; + */ + protected $extension = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $hnc + * Version for open source HNC + * @type string $extension + * Version for Hierarchy Controller extension + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Version for open source HNC + * + * Generated from protobuf field string hnc = 1; + * @return string + */ + public function getHnc() + { + return $this->hnc; + } + + /** + * Version for open source HNC + * + * Generated from protobuf field string hnc = 1; + * @param string $var + * @return $this + */ + public function setHnc($var) + { + GPBUtil::checkString($var, True); + $this->hnc = $var; + + return $this; + } + + /** + * Version for Hierarchy Controller extension + * + * Generated from protobuf field string extension = 2; + * @return string + */ + public function getExtension() + { + return $this->extension; + } + + /** + * Version for Hierarchy Controller extension + * + * Generated from protobuf field string extension = 2; + * @param string $var + * @return $this + */ + public function setExtension($var) + { + GPBUtil::checkString($var, True); + $this->extension = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php new file mode 100644 index 000000000000..5616df50e468 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php @@ -0,0 +1,67 @@ +google.cloud.gkehub.configmanagement.v1.InstallError + */ +class InstallError extends \Google\Protobuf\Internal\Message +{ + /** + * A string representing the user facing error message + * + * Generated from protobuf field string error_message = 1; + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $error_message + * A string representing the user facing error message + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * A string representing the user facing error message + * + * Generated from protobuf field string error_message = 1; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * A string representing the user facing error message + * + * Generated from protobuf field string error_message = 1; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php new file mode 100644 index 000000000000..e785153b26a9 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php @@ -0,0 +1,292 @@ +google.cloud.gkehub.configmanagement.v1.MembershipSpec + */ +class MembershipSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Config Sync configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + */ + protected $config_sync = null; + /** + * Policy Controller configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + */ + protected $policy_controller = null; + /** + * Hierarchy Controller configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + */ + protected $hierarchy_controller = null; + /** + * Version of ACM installed. + * + * Generated from protobuf field string version = 10; + */ + protected $version = ''; + /** + * The user-specified cluster name used by Config Sync cluster-name-selector + * annotation or ClusterSelector, for applying configs to only a subset + * of clusters. + * Omit this field if the cluster's fleet membership name is used by Config + * Sync cluster-name-selector annotation or ClusterSelector. + * Set this field if a name different from the cluster's fleet membership name + * is used by Config Sync cluster-name-selector annotation or ClusterSelector. + * + * Generated from protobuf field string cluster = 11; + */ + protected $cluster = ''; + /** + * Enables automatic Feature management. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + */ + protected $management = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync $config_sync + * Config Sync configuration for the cluster. + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController $policy_controller + * Policy Controller configuration for the cluster. + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig $hierarchy_controller + * Hierarchy Controller configuration for the cluster. + * @type string $version + * Version of ACM installed. + * @type string $cluster + * The user-specified cluster name used by Config Sync cluster-name-selector + * annotation or ClusterSelector, for applying configs to only a subset + * of clusters. + * Omit this field if the cluster's fleet membership name is used by Config + * Sync cluster-name-selector annotation or ClusterSelector. + * Set this field if a name different from the cluster's fleet membership name + * is used by Config Sync cluster-name-selector annotation or ClusterSelector. + * @type int $management + * Enables automatic Feature management. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Config Sync configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync|null + */ + public function getConfigSync() + { + return $this->config_sync; + } + + public function hasConfigSync() + { + return isset($this->config_sync); + } + + public function clearConfigSync() + { + unset($this->config_sync); + } + + /** + * Config Sync configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync $var + * @return $this + */ + public function setConfigSync($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync::class); + $this->config_sync = $var; + + return $this; + } + + /** + * Policy Controller configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController|null + */ + public function getPolicyController() + { + return $this->policy_controller; + } + + public function hasPolicyController() + { + return isset($this->policy_controller); + } + + public function clearPolicyController() + { + unset($this->policy_controller); + } + + /** + * Policy Controller configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController $var + * @return $this + */ + public function setPolicyController($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController::class); + $this->policy_controller = $var; + + return $this; + } + + /** + * Hierarchy Controller configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig|null + */ + public function getHierarchyController() + { + return $this->hierarchy_controller; + } + + public function hasHierarchyController() + { + return isset($this->hierarchy_controller); + } + + public function clearHierarchyController() + { + unset($this->hierarchy_controller); + } + + /** + * Hierarchy Controller configuration for the cluster. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig $var + * @return $this + */ + public function setHierarchyController($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig::class); + $this->hierarchy_controller = $var; + + return $this; + } + + /** + * Version of ACM installed. + * + * Generated from protobuf field string version = 10; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Version of ACM installed. + * + * Generated from protobuf field string version = 10; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * The user-specified cluster name used by Config Sync cluster-name-selector + * annotation or ClusterSelector, for applying configs to only a subset + * of clusters. + * Omit this field if the cluster's fleet membership name is used by Config + * Sync cluster-name-selector annotation or ClusterSelector. + * Set this field if a name different from the cluster's fleet membership name + * is used by Config Sync cluster-name-selector annotation or ClusterSelector. + * + * Generated from protobuf field string cluster = 11; + * @return string + */ + public function getCluster() + { + return $this->cluster; + } + + /** + * The user-specified cluster name used by Config Sync cluster-name-selector + * annotation or ClusterSelector, for applying configs to only a subset + * of clusters. + * Omit this field if the cluster's fleet membership name is used by Config + * Sync cluster-name-selector annotation or ClusterSelector. + * Set this field if a name different from the cluster's fleet membership name + * is used by Config Sync cluster-name-selector annotation or ClusterSelector. + * + * Generated from protobuf field string cluster = 11; + * @param string $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkString($var, True); + $this->cluster = $var; + + return $this; + } + + /** + * Enables automatic Feature management. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * @return int + */ + public function getManagement() + { + return $this->management; + } + + /** + * Enables automatic Feature management. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * @param int $var + * @return $this + */ + public function setManagement($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec\Management::class); + $this->management = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php new file mode 100644 index 000000000000..a7e4823ee480 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php @@ -0,0 +1,64 @@ +google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management + */ +class Management +{ + /** + * Unspecified + * + * Generated from protobuf enum MANAGEMENT_UNSPECIFIED = 0; + */ + const MANAGEMENT_UNSPECIFIED = 0; + /** + * Google will manage the Feature for the cluster. + * + * Generated from protobuf enum MANAGEMENT_AUTOMATIC = 1; + */ + const MANAGEMENT_AUTOMATIC = 1; + /** + * User will manually manage the Feature for the cluster. + * + * Generated from protobuf enum MANAGEMENT_MANUAL = 2; + */ + const MANAGEMENT_MANUAL = 2; + + private static $valueToName = [ + self::MANAGEMENT_UNSPECIFIED => 'MANAGEMENT_UNSPECIFIED', + self::MANAGEMENT_AUTOMATIC => 'MANAGEMENT_AUTOMATIC', + self::MANAGEMENT_MANUAL => 'MANAGEMENT_MANUAL', + ]; + + 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(Management::class, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec_Management::class); + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php new file mode 100644 index 000000000000..f9539fae394b --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php @@ -0,0 +1,299 @@ +google.cloud.gkehub.configmanagement.v1.MembershipState + */ +class MembershipState extends \Google\Protobuf\Internal\Message +{ + /** + * This field is set to the `cluster_name` field of the Membership Spec if it + * is not empty. Otherwise, it is set to the cluster's fleet membership name. + * + * Generated from protobuf field string cluster_name = 1; + */ + protected $cluster_name = ''; + /** + * Membership configuration in the cluster. This represents the actual state + * in the cluster, while the MembershipSpec in the FeatureSpec represents + * the intended state + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + */ + protected $membership_spec = null; + /** + * Current install status of ACM's Operator + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + */ + protected $operator_state = null; + /** + * Current sync status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + */ + protected $config_sync_state = null; + /** + * PolicyController status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + */ + protected $policy_controller_state = null; + /** + * Hierarchy Controller status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + */ + protected $hierarchy_controller_state = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cluster_name + * This field is set to the `cluster_name` field of the Membership Spec if it + * is not empty. Otherwise, it is set to the cluster's fleet membership name. + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $membership_spec + * Membership configuration in the cluster. This represents the actual state + * in the cluster, while the MembershipSpec in the FeatureSpec represents + * the intended state + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState $operator_state + * Current install status of ACM's Operator + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState $config_sync_state + * Current sync status + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState $policy_controller_state + * PolicyController status + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState $hierarchy_controller_state + * Hierarchy Controller status + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * This field is set to the `cluster_name` field of the Membership Spec if it + * is not empty. Otherwise, it is set to the cluster's fleet membership name. + * + * Generated from protobuf field string cluster_name = 1; + * @return string + */ + public function getClusterName() + { + return $this->cluster_name; + } + + /** + * This field is set to the `cluster_name` field of the Membership Spec if it + * is not empty. Otherwise, it is set to the cluster's fleet membership name. + * + * Generated from protobuf field string cluster_name = 1; + * @param string $var + * @return $this + */ + public function setClusterName($var) + { + GPBUtil::checkString($var, True); + $this->cluster_name = $var; + + return $this; + } + + /** + * Membership configuration in the cluster. This represents the actual state + * in the cluster, while the MembershipSpec in the FeatureSpec represents + * the intended state + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec|null + */ + public function getMembershipSpec() + { + return $this->membership_spec; + } + + public function hasMembershipSpec() + { + return isset($this->membership_spec); + } + + public function clearMembershipSpec() + { + unset($this->membership_spec); + } + + /** + * Membership configuration in the cluster. This represents the actual state + * in the cluster, while the MembershipSpec in the FeatureSpec represents + * the intended state + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $var + * @return $this + */ + public function setMembershipSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec::class); + $this->membership_spec = $var; + + return $this; + } + + /** + * Current install status of ACM's Operator + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState|null + */ + public function getOperatorState() + { + return $this->operator_state; + } + + public function hasOperatorState() + { + return isset($this->operator_state); + } + + public function clearOperatorState() + { + unset($this->operator_state); + } + + /** + * Current install status of ACM's Operator + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState $var + * @return $this + */ + public function setOperatorState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState::class); + $this->operator_state = $var; + + return $this; + } + + /** + * Current sync status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState|null + */ + public function getConfigSyncState() + { + return $this->config_sync_state; + } + + public function hasConfigSyncState() + { + return isset($this->config_sync_state); + } + + public function clearConfigSyncState() + { + unset($this->config_sync_state); + } + + /** + * Current sync status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState $var + * @return $this + */ + public function setConfigSyncState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState::class); + $this->config_sync_state = $var; + + return $this; + } + + /** + * PolicyController status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState|null + */ + public function getPolicyControllerState() + { + return $this->policy_controller_state; + } + + public function hasPolicyControllerState() + { + return isset($this->policy_controller_state); + } + + public function clearPolicyControllerState() + { + unset($this->policy_controller_state); + } + + /** + * PolicyController status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState $var + * @return $this + */ + public function setPolicyControllerState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState::class); + $this->policy_controller_state = $var; + + return $this; + } + + /** + * Hierarchy Controller status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState|null + */ + public function getHierarchyControllerState() + { + return $this->hierarchy_controller_state; + } + + public function hasHierarchyControllerState() + { + return isset($this->hierarchy_controller_state); + } + + public function clearHierarchyControllerState() + { + unset($this->hierarchy_controller_state); + } + + /** + * Hierarchy Controller status + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState $var + * @return $this + */ + public function setHierarchyControllerState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState::class); + $this->hierarchy_controller_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php new file mode 100644 index 000000000000..b2b91e6ea01b --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php @@ -0,0 +1,215 @@ +google.cloud.gkehub.configmanagement.v1.OciConfig + */ +class OciConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The OCI image repository URL for the package to sync from. + * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. + * + * Generated from protobuf field string sync_repo = 1; + */ + protected $sync_repo = ''; + /** + * The absolute path of the directory that contains + * the local resources. Default: the root directory of the image. + * + * Generated from protobuf field string policy_dir = 2; + */ + protected $policy_dir = ''; + /** + * Period in seconds between consecutive syncs. Default: 15. + * + * Generated from protobuf field int64 sync_wait_secs = 3; + */ + protected $sync_wait_secs = 0; + /** + * Type of secret configured for access to the Git repo. + * + * Generated from protobuf field string secret_type = 4; + */ + protected $secret_type = ''; + /** + * The Google Cloud Service Account Email used for auth when secret_type is + * gcpServiceAccount. + * + * Generated from protobuf field string gcp_service_account_email = 5; + */ + protected $gcp_service_account_email = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sync_repo + * The OCI image repository URL for the package to sync from. + * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. + * @type string $policy_dir + * The absolute path of the directory that contains + * the local resources. Default: the root directory of the image. + * @type int|string $sync_wait_secs + * Period in seconds between consecutive syncs. Default: 15. + * @type string $secret_type + * Type of secret configured for access to the Git repo. + * @type string $gcp_service_account_email + * The Google Cloud Service Account Email used for auth when secret_type is + * gcpServiceAccount. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * The OCI image repository URL for the package to sync from. + * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. + * + * Generated from protobuf field string sync_repo = 1; + * @return string + */ + public function getSyncRepo() + { + return $this->sync_repo; + } + + /** + * The OCI image repository URL for the package to sync from. + * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. + * + * Generated from protobuf field string sync_repo = 1; + * @param string $var + * @return $this + */ + public function setSyncRepo($var) + { + GPBUtil::checkString($var, True); + $this->sync_repo = $var; + + return $this; + } + + /** + * The absolute path of the directory that contains + * the local resources. Default: the root directory of the image. + * + * Generated from protobuf field string policy_dir = 2; + * @return string + */ + public function getPolicyDir() + { + return $this->policy_dir; + } + + /** + * The absolute path of the directory that contains + * the local resources. Default: the root directory of the image. + * + * Generated from protobuf field string policy_dir = 2; + * @param string $var + * @return $this + */ + public function setPolicyDir($var) + { + GPBUtil::checkString($var, True); + $this->policy_dir = $var; + + return $this; + } + + /** + * Period in seconds between consecutive syncs. Default: 15. + * + * Generated from protobuf field int64 sync_wait_secs = 3; + * @return int|string + */ + public function getSyncWaitSecs() + { + return $this->sync_wait_secs; + } + + /** + * Period in seconds between consecutive syncs. Default: 15. + * + * Generated from protobuf field int64 sync_wait_secs = 3; + * @param int|string $var + * @return $this + */ + public function setSyncWaitSecs($var) + { + GPBUtil::checkInt64($var); + $this->sync_wait_secs = $var; + + return $this; + } + + /** + * Type of secret configured for access to the Git repo. + * + * Generated from protobuf field string secret_type = 4; + * @return string + */ + public function getSecretType() + { + return $this->secret_type; + } + + /** + * Type of secret configured for access to the Git repo. + * + * Generated from protobuf field string secret_type = 4; + * @param string $var + * @return $this + */ + public function setSecretType($var) + { + GPBUtil::checkString($var, True); + $this->secret_type = $var; + + return $this; + } + + /** + * The Google Cloud Service Account Email used for auth when secret_type is + * gcpServiceAccount. + * + * Generated from protobuf field string gcp_service_account_email = 5; + * @return string + */ + public function getGcpServiceAccountEmail() + { + return $this->gcp_service_account_email; + } + + /** + * The Google Cloud Service Account Email used for auth when secret_type is + * gcpServiceAccount. + * + * Generated from protobuf field string gcp_service_account_email = 5; + * @param string $var + * @return $this + */ + public function setGcpServiceAccountEmail($var) + { + GPBUtil::checkString($var, True); + $this->gcp_service_account_email = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php new file mode 100644 index 000000000000..8b91ffdf0006 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php @@ -0,0 +1,135 @@ +google.cloud.gkehub.configmanagement.v1.OperatorState + */ +class OperatorState extends \Google\Protobuf\Internal\Message +{ + /** + * The semenatic version number of the operator + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + /** + * The state of the Operator's deployment + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + */ + protected $deployment_state = 0; + /** + * Install errors. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; + */ + private $errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * The semenatic version number of the operator + * @type int $deployment_state + * The state of the Operator's deployment + * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\InstallError>|\Google\Protobuf\Internal\RepeatedField $errors + * Install errors. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * The semenatic version number of the operator + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The semenatic version number of the operator + * + * 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; + } + + /** + * The state of the Operator's deployment + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * @return int + */ + public function getDeploymentState() + { + return $this->deployment_state; + } + + /** + * The state of the Operator's deployment + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * @param int $var + * @return $this + */ + public function setDeploymentState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); + $this->deployment_state = $var; + + return $this; + } + + /** + * Install errors. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Install errors. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; + * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\InstallError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\InstallError::class); + $this->errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php new file mode 100644 index 000000000000..eafd7df91446 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php @@ -0,0 +1,277 @@ +google.cloud.gkehub.configmanagement.v1.PolicyController + */ +class PolicyController extends \Google\Protobuf\Internal\Message +{ + /** + * Enables the installation of Policy Controller. + * If false, the rest of PolicyController fields take no + * effect. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * Installs the default template library along with Policy Controller. + * + * Generated from protobuf field optional bool template_library_installed = 2; + */ + protected $template_library_installed = null; + /** + * Sets the interval for Policy Controller Audit Scans (in seconds). + * When set to 0, this disables audit functionality altogether. + * + * Generated from protobuf field optional int64 audit_interval_seconds = 3; + */ + protected $audit_interval_seconds = null; + /** + * The set of namespaces that are excluded from Policy Controller checks. + * Namespaces do not need to currently exist on the cluster. + * + * Generated from protobuf field repeated string exemptable_namespaces = 4; + */ + private $exemptable_namespaces; + /** + * Enables the ability to use Constraint Templates that reference to objects + * other than the object currently being evaluated. + * + * Generated from protobuf field bool referential_rules_enabled = 5; + */ + protected $referential_rules_enabled = false; + /** + * Logs all denies and dry run failures. + * + * Generated from protobuf field bool log_denies_enabled = 6; + */ + protected $log_denies_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enables the installation of Policy Controller. + * If false, the rest of PolicyController fields take no + * effect. + * @type bool $template_library_installed + * Installs the default template library along with Policy Controller. + * @type int|string $audit_interval_seconds + * Sets the interval for Policy Controller Audit Scans (in seconds). + * When set to 0, this disables audit functionality altogether. + * @type array|\Google\Protobuf\Internal\RepeatedField $exemptable_namespaces + * The set of namespaces that are excluded from Policy Controller checks. + * Namespaces do not need to currently exist on the cluster. + * @type bool $referential_rules_enabled + * Enables the ability to use Constraint Templates that reference to objects + * other than the object currently being evaluated. + * @type bool $log_denies_enabled + * Logs all denies and dry run failures. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Enables the installation of Policy Controller. + * If false, the rest of PolicyController fields take no + * effect. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enables the installation of Policy Controller. + * If false, the rest of PolicyController fields take no + * effect. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Installs the default template library along with Policy Controller. + * + * Generated from protobuf field optional bool template_library_installed = 2; + * @return bool + */ + public function getTemplateLibraryInstalled() + { + return isset($this->template_library_installed) ? $this->template_library_installed : false; + } + + public function hasTemplateLibraryInstalled() + { + return isset($this->template_library_installed); + } + + public function clearTemplateLibraryInstalled() + { + unset($this->template_library_installed); + } + + /** + * Installs the default template library along with Policy Controller. + * + * Generated from protobuf field optional bool template_library_installed = 2; + * @param bool $var + * @return $this + */ + public function setTemplateLibraryInstalled($var) + { + GPBUtil::checkBool($var); + $this->template_library_installed = $var; + + return $this; + } + + /** + * Sets the interval for Policy Controller Audit Scans (in seconds). + * When set to 0, this disables audit functionality altogether. + * + * Generated from protobuf field optional int64 audit_interval_seconds = 3; + * @return int|string + */ + public function getAuditIntervalSeconds() + { + return isset($this->audit_interval_seconds) ? $this->audit_interval_seconds : 0; + } + + public function hasAuditIntervalSeconds() + { + return isset($this->audit_interval_seconds); + } + + public function clearAuditIntervalSeconds() + { + unset($this->audit_interval_seconds); + } + + /** + * Sets the interval for Policy Controller Audit Scans (in seconds). + * When set to 0, this disables audit functionality altogether. + * + * Generated from protobuf field optional int64 audit_interval_seconds = 3; + * @param int|string $var + * @return $this + */ + public function setAuditIntervalSeconds($var) + { + GPBUtil::checkInt64($var); + $this->audit_interval_seconds = $var; + + return $this; + } + + /** + * The set of namespaces that are excluded from Policy Controller checks. + * Namespaces do not need to currently exist on the cluster. + * + * Generated from protobuf field repeated string exemptable_namespaces = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExemptableNamespaces() + { + return $this->exemptable_namespaces; + } + + /** + * The set of namespaces that are excluded from Policy Controller checks. + * Namespaces do not need to currently exist on the cluster. + * + * Generated from protobuf field repeated string exemptable_namespaces = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExemptableNamespaces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->exemptable_namespaces = $arr; + + return $this; + } + + /** + * Enables the ability to use Constraint Templates that reference to objects + * other than the object currently being evaluated. + * + * Generated from protobuf field bool referential_rules_enabled = 5; + * @return bool + */ + public function getReferentialRulesEnabled() + { + return $this->referential_rules_enabled; + } + + /** + * Enables the ability to use Constraint Templates that reference to objects + * other than the object currently being evaluated. + * + * Generated from protobuf field bool referential_rules_enabled = 5; + * @param bool $var + * @return $this + */ + public function setReferentialRulesEnabled($var) + { + GPBUtil::checkBool($var); + $this->referential_rules_enabled = $var; + + return $this; + } + + /** + * Logs all denies and dry run failures. + * + * Generated from protobuf field bool log_denies_enabled = 6; + * @return bool + */ + public function getLogDeniesEnabled() + { + return $this->log_denies_enabled; + } + + /** + * Logs all denies and dry run failures. + * + * Generated from protobuf field bool log_denies_enabled = 6; + * @param bool $var + * @return $this + */ + public function setLogDeniesEnabled($var) + { + GPBUtil::checkBool($var); + $this->log_denies_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php new file mode 100644 index 000000000000..e0ba94d19999 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php @@ -0,0 +1,121 @@ +google.cloud.gkehub.configmanagement.v1.PolicyControllerState + */ +class PolicyControllerState extends \Google\Protobuf\Internal\Message +{ + /** + * The version of Gatekeeper Policy Controller deployed. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + */ + protected $version = null; + /** + * The state about the policy controller installation. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + */ + protected $deployment_state = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion $version + * The version of Gatekeeper Policy Controller deployed. + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState $deployment_state + * The state about the policy controller installation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * The version of Gatekeeper Policy Controller deployed. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion|null + */ + public function getVersion() + { + return $this->version; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * The version of Gatekeeper Policy Controller deployed. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion::class); + $this->version = $var; + + return $this; + } + + /** + * The state about the policy controller installation. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState|null + */ + public function getDeploymentState() + { + return $this->deployment_state; + } + + public function hasDeploymentState() + { + return isset($this->deployment_state); + } + + public function clearDeploymentState() + { + unset($this->deployment_state); + } + + /** + * The state about the policy controller installation. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState $var + * @return $this + */ + public function setDeploymentState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState::class); + $this->deployment_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php new file mode 100644 index 000000000000..fb70a7bffb04 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php @@ -0,0 +1,71 @@ +google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + */ +class PolicyControllerVersion extends \Google\Protobuf\Internal\Message +{ + /** + * The gatekeeper image tag that is composed of ACM version, git tag, build + * number. + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * The gatekeeper image tag that is composed of ACM version, git tag, build + * number. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * The gatekeeper image tag that is composed of ACM version, git tag, build + * number. + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The gatekeeper image tag that is composed of ACM version, git tag, build + * number. + * + * 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/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php new file mode 100644 index 000000000000..f9a32a75047d --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php @@ -0,0 +1,135 @@ +google.cloud.gkehub.configmanagement.v1.SyncError + */ +class SyncError extends \Google\Protobuf\Internal\Message +{ + /** + * An ACM defined error code + * + * Generated from protobuf field string code = 1; + */ + protected $code = ''; + /** + * A description of the error + * + * Generated from protobuf field string error_message = 2; + */ + protected $error_message = ''; + /** + * A list of config(s) associated with the error, if any + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + */ + private $error_resources; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $code + * An ACM defined error code + * @type string $error_message + * A description of the error + * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource>|\Google\Protobuf\Internal\RepeatedField $error_resources + * A list of config(s) associated with the error, if any + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * An ACM defined error code + * + * Generated from protobuf field string code = 1; + * @return string + */ + public function getCode() + { + return $this->code; + } + + /** + * An ACM defined error code + * + * Generated from protobuf field string code = 1; + * @param string $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkString($var, True); + $this->code = $var; + + return $this; + } + + /** + * A description of the error + * + * Generated from protobuf field string error_message = 2; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * A description of the error + * + * Generated from protobuf field string error_message = 2; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + + /** + * A list of config(s) associated with the error, if any + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrorResources() + { + return $this->error_resources; + } + + /** + * A list of config(s) associated with the error, if any + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrorResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource::class); + $this->error_resources = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php new file mode 100644 index 000000000000..66d52b10ce17 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php @@ -0,0 +1,304 @@ +google.cloud.gkehub.configmanagement.v1.SyncState + */ +class SyncState extends \Google\Protobuf\Internal\Message +{ + /** + * Token indicating the state of the repo. + * + * Generated from protobuf field string source_token = 1; + */ + protected $source_token = ''; + /** + * Token indicating the state of the importer. + * + * Generated from protobuf field string import_token = 2; + */ + protected $import_token = ''; + /** + * Token indicating the state of the syncer. + * + * Generated from protobuf field string sync_token = 3; + */ + protected $sync_token = ''; + /** + * Deprecated: use last_sync_time instead. + * Timestamp of when ACM last successfully synced the repo + * The time format is specified in https://golang.org/pkg/time/#Time.String + * + * Generated from protobuf field string last_sync = 4 [deprecated = true]; + * @deprecated + */ + protected $last_sync = ''; + /** + * Timestamp type of when ACM last successfully synced the repo + * + * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7; + */ + protected $last_sync_time = null; + /** + * Sync status code + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + */ + protected $code = 0; + /** + * A list of errors resulting from problematic configs. + * This list will be truncated after 100 errors, although it is + * unlikely for that many errors to simultaneously exist. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6; + */ + private $errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $source_token + * Token indicating the state of the repo. + * @type string $import_token + * Token indicating the state of the importer. + * @type string $sync_token + * Token indicating the state of the syncer. + * @type string $last_sync + * Deprecated: use last_sync_time instead. + * Timestamp of when ACM last successfully synced the repo + * The time format is specified in https://golang.org/pkg/time/#Time.String + * @type \Google\Protobuf\Timestamp $last_sync_time + * Timestamp type of when ACM last successfully synced the repo + * @type int $code + * Sync status code + * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>|\Google\Protobuf\Internal\RepeatedField $errors + * A list of errors resulting from problematic configs. + * This list will be truncated after 100 errors, although it is + * unlikely for that many errors to simultaneously exist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); + parent::__construct($data); + } + + /** + * Token indicating the state of the repo. + * + * Generated from protobuf field string source_token = 1; + * @return string + */ + public function getSourceToken() + { + return $this->source_token; + } + + /** + * Token indicating the state of the repo. + * + * Generated from protobuf field string source_token = 1; + * @param string $var + * @return $this + */ + public function setSourceToken($var) + { + GPBUtil::checkString($var, True); + $this->source_token = $var; + + return $this; + } + + /** + * Token indicating the state of the importer. + * + * Generated from protobuf field string import_token = 2; + * @return string + */ + public function getImportToken() + { + return $this->import_token; + } + + /** + * Token indicating the state of the importer. + * + * Generated from protobuf field string import_token = 2; + * @param string $var + * @return $this + */ + public function setImportToken($var) + { + GPBUtil::checkString($var, True); + $this->import_token = $var; + + return $this; + } + + /** + * Token indicating the state of the syncer. + * + * Generated from protobuf field string sync_token = 3; + * @return string + */ + public function getSyncToken() + { + return $this->sync_token; + } + + /** + * Token indicating the state of the syncer. + * + * Generated from protobuf field string sync_token = 3; + * @param string $var + * @return $this + */ + public function setSyncToken($var) + { + GPBUtil::checkString($var, True); + $this->sync_token = $var; + + return $this; + } + + /** + * Deprecated: use last_sync_time instead. + * Timestamp of when ACM last successfully synced the repo + * The time format is specified in https://golang.org/pkg/time/#Time.String + * + * Generated from protobuf field string last_sync = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getLastSync() + { + if ($this->last_sync !== '') { + @trigger_error('last_sync is deprecated.', E_USER_DEPRECATED); + } + return $this->last_sync; + } + + /** + * Deprecated: use last_sync_time instead. + * Timestamp of when ACM last successfully synced the repo + * The time format is specified in https://golang.org/pkg/time/#Time.String + * + * Generated from protobuf field string last_sync = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setLastSync($var) + { + @trigger_error('last_sync is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->last_sync = $var; + + return $this; + } + + /** + * Timestamp type of when ACM last successfully synced the repo + * + * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastSyncTime() + { + return $this->last_sync_time; + } + + public function hasLastSyncTime() + { + return isset($this->last_sync_time); + } + + public function clearLastSyncTime() + { + unset($this->last_sync_time); + } + + /** + * Timestamp type of when ACM last successfully synced the repo + * + * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastSyncTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_sync_time = $var; + + return $this; + } + + /** + * Sync status code + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * @return int + */ + public function getCode() + { + return $this->code; + } + + /** + * Sync status code + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * @param int $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState\SyncCode::class); + $this->code = $var; + + return $this; + } + + /** + * A list of errors resulting from problematic configs. + * This list will be truncated after 100 errors, although it is + * unlikely for that many errors to simultaneously exist. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrors() + { + return $this->errors; + } + + /** + * A list of errors resulting from problematic configs. + * This list will be truncated after 100 errors, although it is + * unlikely for that many errors to simultaneously exist. + * + * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6; + * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncError::class); + $this->errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php new file mode 100644 index 000000000000..79c8f38a8fd7 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php @@ -0,0 +1,99 @@ +google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode + */ +class SyncCode +{ + /** + * Config Sync cannot determine a sync code + * + * Generated from protobuf enum SYNC_CODE_UNSPECIFIED = 0; + */ + const SYNC_CODE_UNSPECIFIED = 0; + /** + * Config Sync successfully synced the git Repo with the cluster + * + * Generated from protobuf enum SYNCED = 1; + */ + const SYNCED = 1; + /** + * Config Sync is in the progress of syncing a new change + * + * Generated from protobuf enum PENDING = 2; + */ + const PENDING = 2; + /** + * Indicates an error configuring Config Sync, and user action is required + * + * Generated from protobuf enum ERROR = 3; + */ + const ERROR = 3; + /** + * Config Sync has been installed but not configured + * + * Generated from protobuf enum NOT_CONFIGURED = 4; + */ + const NOT_CONFIGURED = 4; + /** + * Config Sync has not been installed + * + * Generated from protobuf enum NOT_INSTALLED = 5; + */ + const NOT_INSTALLED = 5; + /** + * Error authorizing with the cluster + * + * Generated from protobuf enum UNAUTHORIZED = 6; + */ + const UNAUTHORIZED = 6; + /** + * Cluster could not be reached + * + * Generated from protobuf enum UNREACHABLE = 7; + */ + const UNREACHABLE = 7; + + private static $valueToName = [ + self::SYNC_CODE_UNSPECIFIED => 'SYNC_CODE_UNSPECIFIED', + self::SYNCED => 'SYNCED', + self::PENDING => 'PENDING', + self::ERROR => 'ERROR', + self::NOT_CONFIGURED => 'NOT_CONFIGURED', + self::NOT_INSTALLED => 'NOT_INSTALLED', + self::UNAUTHORIZED => 'UNAUTHORIZED', + self::UNREACHABLE => 'UNREACHABLE', + ]; + + 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(SyncCode::class, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState_SyncCode::class); + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php new file mode 100644 index 000000000000..1031f8479b15 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php @@ -0,0 +1,72 @@ +google.cloud.gkehub.multiclusteringress.v1.FeatureSpec + */ +class FeatureSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. + * Example: `projects/foo-proj/locations/global/memberships/bar` + * + * Generated from protobuf field string config_membership = 1; + */ + protected $config_membership = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $config_membership + * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. + * Example: `projects/foo-proj/locations/global/memberships/bar` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Multiclusteringress\Multiclusteringress::initOnce(); + parent::__construct($data); + } + + /** + * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. + * Example: `projects/foo-proj/locations/global/memberships/bar` + * + * Generated from protobuf field string config_membership = 1; + * @return string + */ + public function getConfigMembership() + { + return $this->config_membership; + } + + /** + * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. + * Example: `projects/foo-proj/locations/global/memberships/bar` + * + * Generated from protobuf field string config_membership = 1; + * @param string $var + * @return $this + */ + public function setConfigMembership($var) + { + GPBUtil::checkString($var, True); + $this->config_membership = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php new file mode 100644 index 000000000000..7a7413afa5cd --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php @@ -0,0 +1,235 @@ +google.cloud.gkehub.v1.Authority + */ +class Authority extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with + * `https://` and be a valid URL with length <2000 characters. + * If set, then Google will allow valid OIDC tokens from this issuer to + * authenticate within the workload_identity_pool. OIDC discovery will be + * performed on this URI to validate tokens from the issuer. + * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly + * modified; it must be cleared (and Workload Identity disabled) before using + * a new issuer (and re-enabling Workload Identity). + * + * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $issuer = ''; + /** + * Output only. The name of the workload identity pool in which `issuer` will + * be recognized. + * There is a single Workload Identity Pool per Hub that is shared + * between all Memberships that belong to that Hub. For a Hub hosted in + * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, + * although this is subject to change in newer versions of this API. + * + * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $workload_identity_pool = ''; + /** + * Output only. An identity provider that reflects the `issuer` in the + * workload identity pool. + * + * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $identity_provider = ''; + /** + * Optional. OIDC verification keys for this Membership in JWKS format (RFC + * 7517). + * When this field is set, OIDC discovery will NOT be performed on `issuer`, + * and instead OIDC tokens will be validated using this field. + * + * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $oidc_jwks = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issuer + * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with + * `https://` and be a valid URL with length <2000 characters. + * If set, then Google will allow valid OIDC tokens from this issuer to + * authenticate within the workload_identity_pool. OIDC discovery will be + * performed on this URI to validate tokens from the issuer. + * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly + * modified; it must be cleared (and Workload Identity disabled) before using + * a new issuer (and re-enabling Workload Identity). + * @type string $workload_identity_pool + * Output only. The name of the workload identity pool in which `issuer` will + * be recognized. + * There is a single Workload Identity Pool per Hub that is shared + * between all Memberships that belong to that Hub. For a Hub hosted in + * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, + * although this is subject to change in newer versions of this API. + * @type string $identity_provider + * Output only. An identity provider that reflects the `issuer` in the + * workload identity pool. + * @type string $oidc_jwks + * Optional. OIDC verification keys for this Membership in JWKS format (RFC + * 7517). + * When this field is set, OIDC discovery will NOT be performed on `issuer`, + * and instead OIDC tokens will be validated using this field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with + * `https://` and be a valid URL with length <2000 characters. + * If set, then Google will allow valid OIDC tokens from this issuer to + * authenticate within the workload_identity_pool. OIDC discovery will be + * performed on this URI to validate tokens from the issuer. + * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly + * modified; it must be cleared (and Workload Identity disabled) before using + * a new issuer (and re-enabling Workload Identity). + * + * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getIssuer() + { + return $this->issuer; + } + + /** + * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with + * `https://` and be a valid URL with length <2000 characters. + * If set, then Google will allow valid OIDC tokens from this issuer to + * authenticate within the workload_identity_pool. OIDC discovery will be + * performed on this URI to validate tokens from the issuer. + * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly + * modified; it must be cleared (and Workload Identity disabled) before using + * a new issuer (and re-enabling Workload Identity). + * + * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setIssuer($var) + { + GPBUtil::checkString($var, True); + $this->issuer = $var; + + return $this; + } + + /** + * Output only. The name of the workload identity pool in which `issuer` will + * be recognized. + * There is a single Workload Identity Pool per Hub that is shared + * between all Memberships that belong to that Hub. For a Hub hosted in + * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, + * although this is subject to change in newer versions of this API. + * + * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getWorkloadIdentityPool() + { + return $this->workload_identity_pool; + } + + /** + * Output only. The name of the workload identity pool in which `issuer` will + * be recognized. + * There is a single Workload Identity Pool per Hub that is shared + * between all Memberships that belong to that Hub. For a Hub hosted in + * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, + * although this is subject to change in newer versions of this API. + * + * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setWorkloadIdentityPool($var) + { + GPBUtil::checkString($var, True); + $this->workload_identity_pool = $var; + + return $this; + } + + /** + * Output only. An identity provider that reflects the `issuer` in the + * workload identity pool. + * + * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getIdentityProvider() + { + return $this->identity_provider; + } + + /** + * Output only. An identity provider that reflects the `issuer` in the + * workload identity pool. + * + * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setIdentityProvider($var) + { + GPBUtil::checkString($var, True); + $this->identity_provider = $var; + + return $this; + } + + /** + * Optional. OIDC verification keys for this Membership in JWKS format (RFC + * 7517). + * When this field is set, OIDC discovery will NOT be performed on `issuer`, + * and instead OIDC tokens will be validated using this field. + * + * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOidcJwks() + { + return $this->oidc_jwks; + } + + /** + * Optional. OIDC verification keys for this Membership in JWKS format (RFC + * 7517). + * When this field is set, OIDC discovery will NOT be performed on `issuer`, + * and instead OIDC tokens will be validated using this field. + * + * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOidcJwks($var) + { + GPBUtil::checkString($var, False); + $this->oidc_jwks = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php new file mode 100644 index 000000000000..7f7c7a4ded08 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php @@ -0,0 +1,75 @@ +google.cloud.gkehub.v1.CommonFeatureSpec + */ +class CommonFeatureSpec extends \Google\Protobuf\Internal\Message +{ + protected $feature_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec $multiclusteringress + * Multicluster Ingress-specific spec. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * Multicluster Ingress-specific spec. + * + * Generated from protobuf field .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * @return \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec|null + */ + public function getMulticlusteringress() + { + return $this->readOneof(102); + } + + public function hasMulticlusteringress() + { + return $this->hasOneof(102); + } + + /** + * Multicluster Ingress-specific spec. + * + * Generated from protobuf field .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * @param \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec $var + * @return $this + */ + public function setMulticlusteringress($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec::class); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * @return string + */ + public function getFeatureSpec() + { + return $this->whichOneof("feature_spec"); + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php new file mode 100644 index 000000000000..58319d7a887c --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php @@ -0,0 +1,77 @@ +google.cloud.gkehub.v1.CommonFeatureState + */ +class CommonFeatureState extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The "running state" of the Feature in this Hub. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\V1\FeatureState $state + * Output only. The "running state" of the Feature in this Hub. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The "running state" of the Feature in this Hub. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeHub\V1\FeatureState|null + */ + public function getState() + { + return $this->state; + } + + public function hasState() + { + return isset($this->state); + } + + public function clearState() + { + unset($this->state); + } + + /** + * Output only. The "running state" of the Feature in this Hub. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeHub\V1\FeatureState $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureState::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php new file mode 100644 index 000000000000..4514fd3f1b41 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php @@ -0,0 +1,112 @@ +google.cloud.gkehub.v1.ConnectAgentResource + */ +class ConnectAgentResource extends \Google\Protobuf\Internal\Message +{ + /** + * Kubernetes type of the resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1; + */ + protected $type = null; + /** + * YAML manifest of the resource. + * + * Generated from protobuf field string manifest = 2; + */ + protected $manifest = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\V1\TypeMeta $type + * Kubernetes type of the resource. + * @type string $manifest + * YAML manifest of the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Kubernetes type of the resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1; + * @return \Google\Cloud\GkeHub\V1\TypeMeta|null + */ + public function getType() + { + return $this->type; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * Kubernetes type of the resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1; + * @param \Google\Cloud\GkeHub\V1\TypeMeta $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\TypeMeta::class); + $this->type = $var; + + return $this; + } + + /** + * YAML manifest of the resource. + * + * Generated from protobuf field string manifest = 2; + * @return string + */ + public function getManifest() + { + return $this->manifest; + } + + /** + * YAML manifest of the resource. + * + * Generated from protobuf field string manifest = 2; + * @param string $var + * @return $this + */ + public function setManifest($var) + { + GPBUtil::checkString($var, True); + $this->manifest = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php new file mode 100644 index 000000000000..c28628f4d442 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php @@ -0,0 +1,241 @@ +google.cloud.gkehub.v1.CreateFeatureRequest + */ +class CreateFeatureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent (project and location) where the Feature will be + * created. Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The ID of the feature to create. + * + * Generated from protobuf field string feature_id = 2; + */ + protected $feature_id = ''; + /** + * The Feature resource to create. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; + */ + protected $resource = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4; + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The parent (project and location) where the Feature will be + * created. Specified in the format `projects/*/locations/*`. + * @param \Google\Cloud\GkeHub\V1\Feature $resource The Feature resource to create. + * @param string $featureId The ID of the feature to create. + * + * @return \Google\Cloud\GkeHub\V1\CreateFeatureRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\GkeHub\V1\Feature $resource, string $featureId): self + { + return (new self()) + ->setParent($parent) + ->setResource($resource) + ->setFeatureId($featureId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent (project and location) where the Feature will be + * created. Specified in the format `projects/*/locations/*`. + * @type string $feature_id + * The ID of the feature to create. + * @type \Google\Cloud\GkeHub\V1\Feature $resource + * The Feature resource to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent (project and location) where the Feature will be + * created. Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent (project and location) where the Feature will be + * created. Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The ID of the feature to create. + * + * Generated from protobuf field string feature_id = 2; + * @return string + */ + public function getFeatureId() + { + return $this->feature_id; + } + + /** + * The ID of the feature to create. + * + * Generated from protobuf field string feature_id = 2; + * @param string $var + * @return $this + */ + public function setFeatureId($var) + { + GPBUtil::checkString($var, True); + $this->feature_id = $var; + + return $this; + } + + /** + * The Feature resource to create. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; + * @return \Google\Cloud\GkeHub\V1\Feature|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * The Feature resource to create. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; + * @param \Google\Cloud\GkeHub\V1\Feature $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Feature::class); + $this->resource = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php new file mode 100644 index 000000000000..7ed12c498291 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php @@ -0,0 +1,274 @@ +google.cloud.gkehub.v1.CreateMembershipRequest + */ +class CreateMembershipRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * + * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $membership_id = ''; + /** + * Required. The membership to create. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The parent (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. Please see + * {@see GkeHubClient::locationName()} for help formatting this field. + * @param \Google\Cloud\GkeHub\V1\Membership $resource Required. The membership to create. + * @param string $membershipId Required. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + * + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * + * @return \Google\Cloud\GkeHub\V1\CreateMembershipRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\GkeHub\V1\Membership $resource, string $membershipId): self + { + return (new self()) + ->setParent($parent) + ->setResource($resource) + ->setMembershipId($membershipId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. + * @type string $membership_id + * Required. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * @type \Google\Cloud\GkeHub\V1\Membership $resource + * Required. The membership to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. + * + * 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 (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. + * + * 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. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * + * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMembershipId() + { + return $this->membership_id; + } + + /** + * Required. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * + * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMembershipId($var) + { + GPBUtil::checkString($var, True); + $this->membership_id = $var; + + return $this; + } + + /** + * Required. The membership to create. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeHub\V1\Membership|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * Required. The membership to create. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeHub\V1\Membership $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Membership::class); + $this->resource = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php new file mode 100644 index 000000000000..e4859d9f53cb --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php @@ -0,0 +1,201 @@ +google.cloud.gkehub.v1.DeleteFeatureRequest + */ +class DeleteFeatureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, the delete will ignore any outstanding resources for + * this Feature (that is, `FeatureState.has_resources` is set to true). These + * resources will NOT be cleaned up or modified in any way. + * + * Generated from protobuf field bool force = 2; + */ + protected $force = false; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + + /** + * @param string $name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * + * @return \Google\Cloud\GkeHub\V1\DeleteFeatureRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @type bool $force + * If set to true, the delete will ignore any outstanding resources for + * this Feature (that is, `FeatureState.has_resources` is set to true). These + * resources will NOT be cleaned up or modified in any way. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.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, the delete will ignore any outstanding resources for + * this Feature (that is, `FeatureState.has_resources` is set to true). These + * resources will NOT be cleaned up or modified in any way. + * + * Generated from protobuf field bool force = 2; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * If set to true, the delete will ignore any outstanding resources for + * this Feature (that is, `FeatureState.has_resources` is set to true). These + * resources will NOT be cleaned up or modified in any way. + * + * Generated from protobuf field bool force = 2; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php new file mode 100644 index 000000000000..cf246161bdbe --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php @@ -0,0 +1,202 @@ +google.cloud.gkehub.v1.DeleteMembershipRequest + */ +class DeleteMembershipRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, any subresource from this Membership will also be + * deleted. Otherwise, the request will only work if the Membership has no + * subresource. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. Please see + * {@see GkeHubClient::membershipName()} for help formatting this field. + * + * @return \Google\Cloud\GkeHub\V1\DeleteMembershipRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $force + * Optional. If set to true, any subresource from this Membership will also be + * deleted. Otherwise, the request will only work if the Membership has no + * subresource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * 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 Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * 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; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, any subresource from this Membership will also be + * deleted. Otherwise, the request will only work if the Membership has no + * subresource. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, any subresource from this Membership will also be + * deleted. Otherwise, the request will only work if the Membership has no + * subresource. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php new file mode 100644 index 000000000000..22cbd2b42a1b --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php @@ -0,0 +1,513 @@ +google.cloud.gkehub.v1.Feature + */ +class Feature extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The full, unique name of this Feature resource in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * GCP labels for this Feature. + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + /** + * Output only. State of the Feature resource itself. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resource_state = null; + /** + * Optional. Hub-wide Feature configuration. If this Feature does not support any + * Hub-wide configuration, this field may be unused. + * + * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $spec = null; + /** + * Optional. Membership-specific configuration for this Feature. If this Feature does + * not support any per-Membership configuration, this field may be unused. + * The keys indicate which Membership the configuration is for, in the form: + * projects/{p}/locations/{l}/memberships/{m} + * Where {p} is the project, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} WILL match the Feature's + * project. + * {p} will always be returned as the project number, but the project ID is + * also accepted during input. If the same Membership is specified in the map + * twice (using the project ID form, and the project number form), exactly + * ONE of the entries will be saved, with no guarantees as to which. For this + * reason, it is recommended the same format be used for all entries when + * mutating a Feature. + * + * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $membership_specs; + /** + * Output only. The Hub-wide Feature state. + * + * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = null; + /** + * Output only. Membership-specific Feature status. If this Feature does + * report any per-Membership status, this field may be unused. + * The keys indicate which Membership the state is for, in the form: + * projects/{p}/locations/{l}/memberships/{m} + * Where {p} is the project number, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} MUST match the Feature's + * project number. + * + * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $membership_states; + /** + * Output only. When the Feature resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. When the Feature resource was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. When the Feature resource was deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The full, unique name of this Feature resource in the format + * `projects/*/locations/*/features/*`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * GCP labels for this Feature. + * @type \Google\Cloud\GkeHub\V1\FeatureResourceState $resource_state + * Output only. State of the Feature resource itself. + * @type \Google\Cloud\GkeHub\V1\CommonFeatureSpec $spec + * Optional. Hub-wide Feature configuration. If this Feature does not support any + * Hub-wide configuration, this field may be unused. + * @type array|\Google\Protobuf\Internal\MapField $membership_specs + * Optional. Membership-specific configuration for this Feature. If this Feature does + * not support any per-Membership configuration, this field may be unused. + * The keys indicate which Membership the configuration is for, in the form: + * projects/{p}/locations/{l}/memberships/{m} + * Where {p} is the project, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} WILL match the Feature's + * project. + * {p} will always be returned as the project number, but the project ID is + * also accepted during input. If the same Membership is specified in the map + * twice (using the project ID form, and the project number form), exactly + * ONE of the entries will be saved, with no guarantees as to which. For this + * reason, it is recommended the same format be used for all entries when + * mutating a Feature. + * @type \Google\Cloud\GkeHub\V1\CommonFeatureState $state + * Output only. The Hub-wide Feature state. + * @type array|\Google\Protobuf\Internal\MapField $membership_states + * Output only. Membership-specific Feature status. If this Feature does + * report any per-Membership status, this field may be unused. + * The keys indicate which Membership the state is for, in the form: + * projects/{p}/locations/{l}/memberships/{m} + * Where {p} is the project number, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} MUST match the Feature's + * project number. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. When the Feature resource was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. When the Feature resource was last updated. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. When the Feature resource was deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The full, unique name of this Feature resource in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The full, unique name of this Feature resource in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * GCP labels for this Feature. + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * GCP labels for this Feature. + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. State of the Feature resource itself. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeHub\V1\FeatureResourceState|null + */ + public function getResourceState() + { + return $this->resource_state; + } + + public function hasResourceState() + { + return isset($this->resource_state); + } + + public function clearResourceState() + { + unset($this->resource_state); + } + + /** + * Output only. State of the Feature resource itself. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeHub\V1\FeatureResourceState $var + * @return $this + */ + public function setResourceState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureResourceState::class); + $this->resource_state = $var; + + return $this; + } + + /** + * Optional. Hub-wide Feature configuration. If this Feature does not support any + * Hub-wide configuration, this field may be unused. + * + * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeHub\V1\CommonFeatureSpec|null + */ + public function getSpec() + { + return $this->spec; + } + + public function hasSpec() + { + return isset($this->spec); + } + + public function clearSpec() + { + unset($this->spec); + } + + /** + * Optional. Hub-wide Feature configuration. If this Feature does not support any + * Hub-wide configuration, this field may be unused. + * + * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeHub\V1\CommonFeatureSpec $var + * @return $this + */ + public function setSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\CommonFeatureSpec::class); + $this->spec = $var; + + return $this; + } + + /** + * Optional. Membership-specific configuration for this Feature. If this Feature does + * not support any per-Membership configuration, this field may be unused. + * The keys indicate which Membership the configuration is for, in the form: + * projects/{p}/locations/{l}/memberships/{m} + * Where {p} is the project, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} WILL match the Feature's + * project. + * {p} will always be returned as the project number, but the project ID is + * also accepted during input. If the same Membership is specified in the map + * twice (using the project ID form, and the project number form), exactly + * ONE of the entries will be saved, with no guarantees as to which. For this + * reason, it is recommended the same format be used for all entries when + * mutating a Feature. + * + * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMembershipSpecs() + { + return $this->membership_specs; + } + + /** + * Optional. Membership-specific configuration for this Feature. If this Feature does + * not support any per-Membership configuration, this field may be unused. + * The keys indicate which Membership the configuration is for, in the form: + * projects/{p}/locations/{l}/memberships/{m} + * Where {p} is the project, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} WILL match the Feature's + * project. + * {p} will always be returned as the project number, but the project ID is + * also accepted during input. If the same Membership is specified in the map + * twice (using the project ID form, and the project number form), exactly + * ONE of the entries will be saved, with no guarantees as to which. For this + * reason, it is recommended the same format be used for all entries when + * mutating a Feature. + * + * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMembershipSpecs($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\MembershipFeatureSpec::class); + $this->membership_specs = $arr; + + return $this; + } + + /** + * Output only. The Hub-wide Feature state. + * + * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeHub\V1\CommonFeatureState|null + */ + public function getState() + { + return $this->state; + } + + public function hasState() + { + return isset($this->state); + } + + public function clearState() + { + unset($this->state); + } + + /** + * Output only. The Hub-wide Feature state. + * + * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeHub\V1\CommonFeatureState $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\CommonFeatureState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Membership-specific Feature status. If this Feature does + * report any per-Membership status, this field may be unused. + * The keys indicate which Membership the state is for, in the form: + * projects/{p}/locations/{l}/memberships/{m} + * Where {p} is the project number, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} MUST match the Feature's + * project number. + * + * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMembershipStates() + { + return $this->membership_states; + } + + /** + * Output only. Membership-specific Feature status. If this Feature does + * report any per-Membership status, this field may be unused. + * The keys indicate which Membership the state is for, in the form: + * projects/{p}/locations/{l}/memberships/{m} + * Where {p} is the project number, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} MUST match the Feature's + * project number. + * + * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMembershipStates($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\MembershipFeatureState::class); + $this->membership_states = $arr; + + return $this; + } + + /** + * Output only. When the Feature resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. When the Feature resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. When the Feature resource was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. When the Feature resource was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. When the Feature resource was deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. When the Feature resource was deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php new file mode 100644 index 000000000000..52b5f7983c2f --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php @@ -0,0 +1,69 @@ +google.cloud.gkehub.v1.FeatureResourceState + */ +class FeatureResourceState extends \Google\Protobuf\Internal\Message +{ + /** + * The current state of the Feature resource in the Hub API. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * The current state of the Feature resource in the Hub API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * The current state of the Feature resource in the Hub API. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The current state of the Feature resource in the Hub API. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\FeatureResourceState\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php new file mode 100644 index 000000000000..127008cae944 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php @@ -0,0 +1,88 @@ +google.cloud.gkehub.v1.FeatureResourceState.State + */ +class State +{ + /** + * State is unknown or not set. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The Feature is being enabled, and the Feature resource is being created. + * Once complete, the corresponding Feature will be enabled in this Hub. + * + * Generated from protobuf enum ENABLING = 1; + */ + const ENABLING = 1; + /** + * The Feature is enabled in this Hub, and the Feature resource is fully + * available. + * + * Generated from protobuf enum ACTIVE = 2; + */ + const ACTIVE = 2; + /** + * The Feature is being disabled in this Hub, and the Feature resource + * is being deleted. + * + * Generated from protobuf enum DISABLING = 3; + */ + const DISABLING = 3; + /** + * The Feature resource is being updated. + * + * Generated from protobuf enum UPDATING = 4; + */ + const UPDATING = 4; + /** + * The Feature resource is being updated by the Hub Service. + * + * Generated from protobuf enum SERVICE_UPDATING = 5; + */ + const SERVICE_UPDATING = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ENABLING => 'ENABLING', + self::ACTIVE => 'ACTIVE', + self::DISABLING => 'DISABLING', + self::UPDATING => 'UPDATING', + self::SERVICE_UPDATING => 'SERVICE_UPDATING', + ]; + + 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\GkeHub\V1\FeatureResourceState_State::class); + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php new file mode 100644 index 000000000000..d2188bb9360d --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php @@ -0,0 +1,147 @@ +google.cloud.gkehub.v1.FeatureState + */ +class FeatureState extends \Google\Protobuf\Internal\Message +{ + /** + * The high-level, machine-readable status of this Feature. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1; + */ + protected $code = 0; + /** + * A human-readable description of the current status. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * The time this status and any related Feature-specific details were updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $code + * The high-level, machine-readable status of this Feature. + * @type string $description + * A human-readable description of the current status. + * @type \Google\Protobuf\Timestamp $update_time + * The time this status and any related Feature-specific details were updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * The high-level, machine-readable status of this Feature. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * @return int + */ + public function getCode() + { + return $this->code; + } + + /** + * The high-level, machine-readable status of this Feature. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * @param int $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\FeatureState\Code::class); + $this->code = $var; + + return $this; + } + + /** + * A human-readable description of the current status. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A human-readable description of the current status. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The time this status and any related Feature-specific details were updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @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); + } + + /** + * The time this status and any related Feature-specific details were updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php new file mode 100644 index 000000000000..5fe378f63660 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php @@ -0,0 +1,77 @@ +google.cloud.gkehub.v1.FeatureState.Code + */ +class Code +{ + /** + * Unknown or not set. + * + * Generated from protobuf enum CODE_UNSPECIFIED = 0; + */ + const CODE_UNSPECIFIED = 0; + /** + * The Feature is operating normally. + * + * Generated from protobuf enum OK = 1; + */ + const OK = 1; + /** + * The Feature has encountered an issue, and is operating in a degraded + * state. The Feature may need intervention to return to normal operation. + * See the description and any associated Feature-specific details for more + * information. + * + * Generated from protobuf enum WARNING = 2; + */ + const WARNING = 2; + /** + * The Feature is not operating or is in a severely degraded state. + * The Feature may need intervention to return to normal operation. + * See the description and any associated Feature-specific details for more + * information. + * + * Generated from protobuf enum ERROR = 3; + */ + const ERROR = 3; + + private static $valueToName = [ + self::CODE_UNSPECIFIED => 'CODE_UNSPECIFIED', + self::OK => 'OK', + self::WARNING => 'WARNING', + self::ERROR => 'ERROR', + ]; + + 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(Code::class, \Google\Cloud\GkeHub\V1\FeatureState_Code::class); + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php new file mode 100644 index 000000000000..70f450cccddc --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php @@ -0,0 +1,321 @@ +google.cloud.gkehub.v1.GenerateConnectManifestRequest + */ +class GenerateConnectManifestRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Membership resource name the Agent will associate with, in + * the format `projects/*/locations/*/memberships/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Namespace for GKE Connect agent resources. Defaults to + * `gke-connect`. + * The Connect Agent is authorized automatically when run in the default + * namespace. Otherwise, explicit authorization must be granted with an + * additional IAM binding. + * + * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $namespace = ''; + /** + * Optional. URI of a proxy if connectivity from the agent to + * gkeconnect.googleapis.com requires the use of a proxy. Format must be in + * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol + * supported by the proxy. This will direct the connect agent's outbound + * traffic through a HTTP(S) proxy. + * + * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy = ''; + /** + * Optional. The Connect agent version to use. Defaults to the most current + * version. + * + * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $version = ''; + /** + * Optional. If true, generate the resources for upgrade only. Some resources + * generated only for installation (e.g. secrets) will be excluded. + * + * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_upgrade = false; + /** + * Optional. The registry to fetch the connect agent image from. Defaults to + * gcr.io/gkeconnect. + * + * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $registry = ''; + /** + * Optional. The image pull secret content for the registry, if not public. + * + * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image_pull_secret_content = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Membership resource name the Agent will associate with, in + * the format `projects/*/locations/*/memberships/*`. + * @type string $namespace + * Optional. Namespace for GKE Connect agent resources. Defaults to + * `gke-connect`. + * The Connect Agent is authorized automatically when run in the default + * namespace. Otherwise, explicit authorization must be granted with an + * additional IAM binding. + * @type string $proxy + * Optional. URI of a proxy if connectivity from the agent to + * gkeconnect.googleapis.com requires the use of a proxy. Format must be in + * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol + * supported by the proxy. This will direct the connect agent's outbound + * traffic through a HTTP(S) proxy. + * @type string $version + * Optional. The Connect agent version to use. Defaults to the most current + * version. + * @type bool $is_upgrade + * Optional. If true, generate the resources for upgrade only. Some resources + * generated only for installation (e.g. secrets) will be excluded. + * @type string $registry + * Optional. The registry to fetch the connect agent image from. Defaults to + * gcr.io/gkeconnect. + * @type string $image_pull_secret_content + * Optional. The image pull secret content for the registry, if not public. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Membership resource name the Agent will associate with, in + * the format `projects/*/locations/*/memberships/*`. + * + * 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 Membership resource name the Agent will associate with, in + * the format `projects/*/locations/*/memberships/*`. + * + * 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; + } + + /** + * Optional. Namespace for GKE Connect agent resources. Defaults to + * `gke-connect`. + * The Connect Agent is authorized automatically when run in the default + * namespace. Otherwise, explicit authorization must be granted with an + * additional IAM binding. + * + * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNamespace() + { + return $this->namespace; + } + + /** + * Optional. Namespace for GKE Connect agent resources. Defaults to + * `gke-connect`. + * The Connect Agent is authorized automatically when run in the default + * namespace. Otherwise, explicit authorization must be granted with an + * additional IAM binding. + * + * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNamespace($var) + { + GPBUtil::checkString($var, True); + $this->namespace = $var; + + return $this; + } + + /** + * Optional. URI of a proxy if connectivity from the agent to + * gkeconnect.googleapis.com requires the use of a proxy. Format must be in + * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol + * supported by the proxy. This will direct the connect agent's outbound + * traffic through a HTTP(S) proxy. + * + * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getProxy() + { + return $this->proxy; + } + + /** + * Optional. URI of a proxy if connectivity from the agent to + * gkeconnect.googleapis.com requires the use of a proxy. Format must be in + * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol + * supported by the proxy. This will direct the connect agent's outbound + * traffic through a HTTP(S) proxy. + * + * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setProxy($var) + { + GPBUtil::checkString($var, False); + $this->proxy = $var; + + return $this; + } + + /** + * Optional. The Connect agent version to use. Defaults to the most current + * version. + * + * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Optional. The Connect agent version to use. Defaults to the most current + * version. + * + * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Optional. If true, generate the resources for upgrade only. Some resources + * generated only for installation (e.g. secrets) will be excluded. + * + * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsUpgrade() + { + return $this->is_upgrade; + } + + /** + * Optional. If true, generate the resources for upgrade only. Some resources + * generated only for installation (e.g. secrets) will be excluded. + * + * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsUpgrade($var) + { + GPBUtil::checkBool($var); + $this->is_upgrade = $var; + + return $this; + } + + /** + * Optional. The registry to fetch the connect agent image from. Defaults to + * gcr.io/gkeconnect. + * + * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRegistry() + { + return $this->registry; + } + + /** + * Optional. The registry to fetch the connect agent image from. Defaults to + * gcr.io/gkeconnect. + * + * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRegistry($var) + { + GPBUtil::checkString($var, True); + $this->registry = $var; + + return $this; + } + + /** + * Optional. The image pull secret content for the registry, if not public. + * + * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getImagePullSecretContent() + { + return $this->image_pull_secret_content; + } + + /** + * Optional. The image pull secret content for the registry, if not public. + * + * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setImagePullSecretContent($var) + { + GPBUtil::checkString($var, False); + $this->image_pull_secret_content = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php new file mode 100644 index 000000000000..fbecc64a2c15 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php @@ -0,0 +1,72 @@ +google.cloud.gkehub.v1.GenerateConnectManifestResponse + */ +class GenerateConnectManifestResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The ordered list of Kubernetes resources that need to be applied to the + * cluster for GKE Connect agent installation/upgrade. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1; + */ + private $manifest; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeHub\V1\ConnectAgentResource>|\Google\Protobuf\Internal\RepeatedField $manifest + * The ordered list of Kubernetes resources that need to be applied to the + * cluster for GKE Connect agent installation/upgrade. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The ordered list of Kubernetes resources that need to be applied to the + * cluster for GKE Connect agent installation/upgrade. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getManifest() + { + return $this->manifest; + } + + /** + * The ordered list of Kubernetes resources that need to be applied to the + * cluster for GKE Connect agent installation/upgrade. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1; + * @param array<\Google\Cloud\GkeHub\V1\ConnectAgentResource>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setManifest($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ConnectAgentResource::class); + $this->manifest = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php new file mode 100644 index 000000000000..5fd540450a6b --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php @@ -0,0 +1,85 @@ +google.cloud.gkehub.v1.GetFeatureRequest + */ +class GetFeatureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * + * @return \Google\Cloud\GkeHub\V1\GetFeatureRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * + * Generated from protobuf field string name = 1 [(.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/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php new file mode 100644 index 000000000000..8f1b1f43d5a4 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php @@ -0,0 +1,86 @@ +google.cloud.gkehub.v1.GetMembershipRequest + */ +class GetMembershipRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. Please see + * {@see GkeHubClient::membershipName()} for help formatting this field. + * + * @return \Google\Cloud\GkeHub\V1\GetMembershipRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * 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 Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * 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/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php new file mode 100644 index 000000000000..5fc98881e773 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php @@ -0,0 +1,117 @@ +google.cloud.gkehub.v1.GkeCluster + */ +class GkeCluster extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For + * example: + * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + * Zonal clusters are also supported. + * + * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $resource_link = ''; + /** + * Output only. If cluster_missing is set then it denotes that the GKE cluster + * no longer exists in the GKE Control Plane. + * + * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cluster_missing = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_link + * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For + * example: + * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + * Zonal clusters are also supported. + * @type bool $cluster_missing + * Output only. If cluster_missing is set then it denotes that the GKE cluster + * no longer exists in the GKE Control Plane. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For + * example: + * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + * Zonal clusters are also supported. + * + * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getResourceLink() + { + return $this->resource_link; + } + + /** + * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For + * example: + * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + * Zonal clusters are also supported. + * + * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setResourceLink($var) + { + GPBUtil::checkString($var, True); + $this->resource_link = $var; + + return $this; + } + + /** + * Output only. If cluster_missing is set then it denotes that the GKE cluster + * no longer exists in the GKE Control Plane. + * + * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getClusterMissing() + { + return $this->cluster_missing; + } + + /** + * Output only. If cluster_missing is set then it denotes that the GKE cluster + * no longer exists in the GKE Control Plane. + * + * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setClusterMissing($var) + { + GPBUtil::checkBool($var); + $this->cluster_missing = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php new file mode 100644 index 000000000000..54fd9c79de89 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php @@ -0,0 +1,276 @@ +google.cloud.gkehub.v1.KubernetesMetadata + */ +class KubernetesMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Kubernetes API server version string as reported by + * `/version`. + * + * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $kubernetes_api_server_version = ''; + /** + * Output only. Node providerID as reported by the first node in the list of + * nodes on the Kubernetes endpoint. On Kubernetes platforms that support + * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the + * node_provider_id will be empty. + * + * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $node_provider_id = ''; + /** + * Output only. Node count as reported by Kubernetes nodes resources. + * + * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $node_count = 0; + /** + * Output only. vCPU count as reported by Kubernetes nodes resources. + * + * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $vcpu_count = 0; + /** + * Output only. The total memory capacity as reported by the sum of all + * Kubernetes nodes resources, defined in MB. + * + * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $memory_mb = 0; + /** + * Output only. The time at which these details were last updated. This + * update_time is different from the Membership-level update_time since + * EndpointDetails are updated internally for API consumers. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kubernetes_api_server_version + * Output only. Kubernetes API server version string as reported by + * `/version`. + * @type string $node_provider_id + * Output only. Node providerID as reported by the first node in the list of + * nodes on the Kubernetes endpoint. On Kubernetes platforms that support + * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the + * node_provider_id will be empty. + * @type int $node_count + * Output only. Node count as reported by Kubernetes nodes resources. + * @type int $vcpu_count + * Output only. vCPU count as reported by Kubernetes nodes resources. + * @type int $memory_mb + * Output only. The total memory capacity as reported by the sum of all + * Kubernetes nodes resources, defined in MB. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which these details were last updated. This + * update_time is different from the Membership-level update_time since + * EndpointDetails are updated internally for API consumers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Kubernetes API server version string as reported by + * `/version`. + * + * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getKubernetesApiServerVersion() + { + return $this->kubernetes_api_server_version; + } + + /** + * Output only. Kubernetes API server version string as reported by + * `/version`. + * + * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setKubernetesApiServerVersion($var) + { + GPBUtil::checkString($var, True); + $this->kubernetes_api_server_version = $var; + + return $this; + } + + /** + * Output only. Node providerID as reported by the first node in the list of + * nodes on the Kubernetes endpoint. On Kubernetes platforms that support + * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the + * node_provider_id will be empty. + * + * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNodeProviderId() + { + return $this->node_provider_id; + } + + /** + * Output only. Node providerID as reported by the first node in the list of + * nodes on the Kubernetes endpoint. On Kubernetes platforms that support + * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the + * node_provider_id will be empty. + * + * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNodeProviderId($var) + { + GPBUtil::checkString($var, True); + $this->node_provider_id = $var; + + return $this; + } + + /** + * Output only. Node count as reported by Kubernetes nodes resources. + * + * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getNodeCount() + { + return $this->node_count; + } + + /** + * Output only. Node count as reported by Kubernetes nodes resources. + * + * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->node_count = $var; + + return $this; + } + + /** + * Output only. vCPU count as reported by Kubernetes nodes resources. + * + * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getVcpuCount() + { + return $this->vcpu_count; + } + + /** + * Output only. vCPU count as reported by Kubernetes nodes resources. + * + * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setVcpuCount($var) + { + GPBUtil::checkInt32($var); + $this->vcpu_count = $var; + + return $this; + } + + /** + * Output only. The total memory capacity as reported by the sum of all + * Kubernetes nodes resources, defined in MB. + * + * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMemoryMb() + { + return $this->memory_mb; + } + + /** + * Output only. The total memory capacity as reported by the sum of all + * Kubernetes nodes resources, defined in MB. + * + * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMemoryMb($var) + { + GPBUtil::checkInt32($var); + $this->memory_mb = $var; + + return $this; + } + + /** + * Output only. The time at which these details were last updated. This + * update_time is different from the Membership-level update_time since + * EndpointDetails are updated internally for API consumers. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.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 these details were last updated. This + * update_time is different from the Membership-level update_time since + * EndpointDetails are updated internally for API consumers. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.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; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php new file mode 100644 index 000000000000..6bd38f96b363 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php @@ -0,0 +1,245 @@ +google.cloud.gkehub.v1.KubernetesResource + */ +class KubernetesResource extends \Google\Protobuf\Internal\Message +{ + /** + * Input only. The YAML representation of the Membership CR. This field is + * ignored for GKE clusters where Hub can read the CR directly. + * Callers should provide the CR that is currently present in the cluster + * during CreateMembership or UpdateMembership, or leave this field empty if + * none exists. The CR manifest is used to validate the cluster has not been + * registered with another Membership. + * + * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $membership_cr_manifest = ''; + /** + * Output only. Additional Kubernetes resources that need to be applied to the + * cluster after Membership creation, and after every update. + * This field is only populated in the Membership returned from a successful + * long-running operation from CreateMembership or UpdateMembership. It is not + * populated during normal GetMembership or ListMemberships requests. To get + * the resource manifest after the initial registration, the caller should + * make a UpdateMembership call with an empty field mask. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $membership_resources; + /** + * Output only. The Kubernetes resources for installing the GKE Connect agent + * This field is only populated in the Membership returned from a successful + * long-running operation from CreateMembership or UpdateMembership. It is not + * populated during normal GetMembership or ListMemberships requests. To get + * the resource manifest after the initial registration, the caller should + * make a UpdateMembership call with an empty field mask. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $connect_resources; + /** + * Optional. Options for Kubernetes resource generation. + * + * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $resource_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $membership_cr_manifest + * Input only. The YAML representation of the Membership CR. This field is + * ignored for GKE clusters where Hub can read the CR directly. + * Callers should provide the CR that is currently present in the cluster + * during CreateMembership or UpdateMembership, or leave this field empty if + * none exists. The CR manifest is used to validate the cluster has not been + * registered with another Membership. + * @type array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $membership_resources + * Output only. Additional Kubernetes resources that need to be applied to the + * cluster after Membership creation, and after every update. + * This field is only populated in the Membership returned from a successful + * long-running operation from CreateMembership or UpdateMembership. It is not + * populated during normal GetMembership or ListMemberships requests. To get + * the resource manifest after the initial registration, the caller should + * make a UpdateMembership call with an empty field mask. + * @type array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $connect_resources + * Output only. The Kubernetes resources for installing the GKE Connect agent + * This field is only populated in the Membership returned from a successful + * long-running operation from CreateMembership or UpdateMembership. It is not + * populated during normal GetMembership or ListMemberships requests. To get + * the resource manifest after the initial registration, the caller should + * make a UpdateMembership call with an empty field mask. + * @type \Google\Cloud\GkeHub\V1\ResourceOptions $resource_options + * Optional. Options for Kubernetes resource generation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Input only. The YAML representation of the Membership CR. This field is + * ignored for GKE clusters where Hub can read the CR directly. + * Callers should provide the CR that is currently present in the cluster + * during CreateMembership or UpdateMembership, or leave this field empty if + * none exists. The CR manifest is used to validate the cluster has not been + * registered with another Membership. + * + * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return string + */ + public function getMembershipCrManifest() + { + return $this->membership_cr_manifest; + } + + /** + * Input only. The YAML representation of the Membership CR. This field is + * ignored for GKE clusters where Hub can read the CR directly. + * Callers should provide the CR that is currently present in the cluster + * during CreateMembership or UpdateMembership, or leave this field empty if + * none exists. The CR manifest is used to validate the cluster has not been + * registered with another Membership. + * + * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMembershipCrManifest($var) + { + GPBUtil::checkString($var, True); + $this->membership_cr_manifest = $var; + + return $this; + } + + /** + * Output only. Additional Kubernetes resources that need to be applied to the + * cluster after Membership creation, and after every update. + * This field is only populated in the Membership returned from a successful + * long-running operation from CreateMembership or UpdateMembership. It is not + * populated during normal GetMembership or ListMemberships requests. To get + * the resource manifest after the initial registration, the caller should + * make a UpdateMembership call with an empty field mask. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMembershipResources() + { + return $this->membership_resources; + } + + /** + * Output only. Additional Kubernetes resources that need to be applied to the + * cluster after Membership creation, and after every update. + * This field is only populated in the Membership returned from a successful + * long-running operation from CreateMembership or UpdateMembership. It is not + * populated during normal GetMembership or ListMemberships requests. To get + * the resource manifest after the initial registration, the caller should + * make a UpdateMembership call with an empty field mask. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMembershipResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ResourceManifest::class); + $this->membership_resources = $arr; + + return $this; + } + + /** + * Output only. The Kubernetes resources for installing the GKE Connect agent + * This field is only populated in the Membership returned from a successful + * long-running operation from CreateMembership or UpdateMembership. It is not + * populated during normal GetMembership or ListMemberships requests. To get + * the resource manifest after the initial registration, the caller should + * make a UpdateMembership call with an empty field mask. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConnectResources() + { + return $this->connect_resources; + } + + /** + * Output only. The Kubernetes resources for installing the GKE Connect agent + * This field is only populated in the Membership returned from a successful + * long-running operation from CreateMembership or UpdateMembership. It is not + * populated during normal GetMembership or ListMemberships requests. To get + * the resource manifest after the initial registration, the caller should + * make a UpdateMembership call with an empty field mask. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConnectResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ResourceManifest::class); + $this->connect_resources = $arr; + + return $this; + } + + /** + * Optional. Options for Kubernetes resource generation. + * + * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeHub\V1\ResourceOptions|null + */ + public function getResourceOptions() + { + return $this->resource_options; + } + + public function hasResourceOptions() + { + return isset($this->resource_options); + } + + public function clearResourceOptions() + { + unset($this->resource_options); + } + + /** + * Optional. Options for Kubernetes resource generation. + * + * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeHub\V1\ResourceOptions $var + * @return $this + */ + public function setResourceOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\ResourceOptions::class); + $this->resource_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php new file mode 100644 index 000000000000..e9d2982682b6 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php @@ -0,0 +1,273 @@ +google.cloud.gkehub.v1.ListFeaturesRequest + */ +class ListFeaturesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent (project and location) where the Features will be + * listed. Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * When requesting a 'page' of resources, `page_size` specifies number of + * resources to return. If unspecified or set to 0, all resources will + * be returned. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * Token returned by previous call to `ListFeatures` which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Lists Features that match the filter expression, following the syntax + * outlined in https://google.aip.dev/160. + * Examples: + * - Feature with the name "servicemesh" in project "foo-proj": + * name = "projects/foo-proj/locations/global/features/servicemesh" + * - Features that have a label called `foo`: + * labels.foo:* + * - Features that have a label called `foo` whose value is `bar`: + * labels.foo = bar + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * One or more fields to compare and use to sort the output. + * See https://google.aip.dev/132#ordering. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent (project and location) where the Features will be + * listed. Specified in the format `projects/*/locations/*`. + * + * @return \Google\Cloud\GkeHub\V1\ListFeaturesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent (project and location) where the Features will be + * listed. Specified in the format `projects/*/locations/*`. + * @type int $page_size + * When requesting a 'page' of resources, `page_size` specifies number of + * resources to return. If unspecified or set to 0, all resources will + * be returned. + * @type string $page_token + * Token returned by previous call to `ListFeatures` which + * specifies the position in the list from where to continue listing the + * resources. + * @type string $filter + * Lists Features that match the filter expression, following the syntax + * outlined in https://google.aip.dev/160. + * Examples: + * - Feature with the name "servicemesh" in project "foo-proj": + * name = "projects/foo-proj/locations/global/features/servicemesh" + * - Features that have a label called `foo`: + * labels.foo:* + * - Features that have a label called `foo` whose value is `bar`: + * labels.foo = bar + * @type string $order_by + * One or more fields to compare and use to sort the output. + * See https://google.aip.dev/132#ordering. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent (project and location) where the Features will be + * listed. Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent (project and location) where the Features will be + * listed. Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * When requesting a 'page' of resources, `page_size` specifies number of + * resources to return. If unspecified or set to 0, all resources will + * be returned. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * When requesting a 'page' of resources, `page_size` specifies number of + * resources to return. If unspecified or set to 0, all resources will + * be returned. + * + * 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; + } + + /** + * Token returned by previous call to `ListFeatures` which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Token returned by previous call to `ListFeatures` which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Lists Features that match the filter expression, following the syntax + * outlined in https://google.aip.dev/160. + * Examples: + * - Feature with the name "servicemesh" in project "foo-proj": + * name = "projects/foo-proj/locations/global/features/servicemesh" + * - Features that have a label called `foo`: + * labels.foo:* + * - Features that have a label called `foo` whose value is `bar`: + * labels.foo = bar + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Lists Features that match the filter expression, following the syntax + * outlined in https://google.aip.dev/160. + * Examples: + * - Feature with the name "servicemesh" in project "foo-proj": + * name = "projects/foo-proj/locations/global/features/servicemesh" + * - Features that have a label called `foo`: + * labels.foo:* + * - Features that have a label called `foo` whose value is `bar`: + * labels.foo = bar + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * One or more fields to compare and use to sort the output. + * See https://google.aip.dev/132#ordering. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * One or more fields to compare and use to sort the output. + * See https://google.aip.dev/132#ordering. + * + * Generated from protobuf field string order_by = 5; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php new file mode 100644 index 000000000000..a1b284439a46 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php @@ -0,0 +1,109 @@ +google.cloud.gkehub.v1.ListFeaturesResponse + */ +class ListFeaturesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of matching Features + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1; + */ + private $resources; + /** + * A token to request the next page of resources from the + * `ListFeatures` method. The value of an empty string means + * that there are no more resources to return. + * + * 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\GkeHub\V1\Feature>|\Google\Protobuf\Internal\RepeatedField $resources + * The list of matching Features + * @type string $next_page_token + * A token to request the next page of resources from the + * `ListFeatures` method. The value of an empty string means + * that there are no more resources to return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of matching Features + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResources() + { + return $this->resources; + } + + /** + * The list of matching Features + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1; + * @param array<\Google\Cloud\GkeHub\V1\Feature>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\Feature::class); + $this->resources = $arr; + + return $this; + } + + /** + * A token to request the next page of resources from the + * `ListFeatures` method. The value of an empty string means + * that there are no more resources to return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to request the next page of resources from the + * `ListFeatures` method. The value of an empty string means + * that there are no more resources to return. + * + * 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/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php new file mode 100644 index 000000000000..4ae0d7ee4984 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php @@ -0,0 +1,287 @@ +google.cloud.gkehub.v1.ListMembershipsRequest + */ +class ListMembershipsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent (project and location) where the Memberships will be + * listed. Specified in the format `projects/*/locations/*`. + * `projects/*/locations/-` list memberships in all the regions. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. When requesting a 'page' of resources, `page_size` specifies + * number of resources to return. If unspecified or set to 0, all resources + * will be returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Token returned by previous call to `ListMemberships` which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Lists Memberships that match the filter expression, following the + * syntax outlined in https://google.aip.dev/160. + * Examples: + * - Name is `bar` in project `foo-proj` and location `global`: + * name = "projects/foo-proj/locations/global/membership/bar" + * - Memberships that have a label called `foo`: + * labels.foo:* + * - Memberships that have a label called `foo` whose value is `bar`: + * labels.foo = bar + * - Memberships in the CREATING state: + * state = CREATING + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. One or more fields to compare and use to sort the output. + * See https://google.aip.dev/132#ordering. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent (project and location) where the Memberships will be + * listed. Specified in the format `projects/*/locations/*`. + * `projects/*/locations/-` list memberships in all the regions. Please see + * {@see GkeHubClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\GkeHub\V1\ListMembershipsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent (project and location) where the Memberships will be + * listed. Specified in the format `projects/*/locations/*`. + * `projects/*/locations/-` list memberships in all the regions. + * @type int $page_size + * Optional. When requesting a 'page' of resources, `page_size` specifies + * number of resources to return. If unspecified or set to 0, all resources + * will be returned. + * @type string $page_token + * Optional. Token returned by previous call to `ListMemberships` which + * specifies the position in the list from where to continue listing the + * resources. + * @type string $filter + * Optional. Lists Memberships that match the filter expression, following the + * syntax outlined in https://google.aip.dev/160. + * Examples: + * - Name is `bar` in project `foo-proj` and location `global`: + * name = "projects/foo-proj/locations/global/membership/bar" + * - Memberships that have a label called `foo`: + * labels.foo:* + * - Memberships that have a label called `foo` whose value is `bar`: + * labels.foo = bar + * - Memberships in the CREATING state: + * state = CREATING + * @type string $order_by + * Optional. One or more fields to compare and use to sort the output. + * See https://google.aip.dev/132#ordering. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent (project and location) where the Memberships will be + * listed. Specified in the format `projects/*/locations/*`. + * `projects/*/locations/-` list memberships in all the regions. + * + * 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 (project and location) where the Memberships will be + * listed. Specified in the format `projects/*/locations/*`. + * `projects/*/locations/-` list memberships in all the regions. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. When requesting a 'page' of resources, `page_size` specifies + * number of resources to return. If unspecified or set to 0, all resources + * will be returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. When requesting a 'page' of resources, `page_size` specifies + * number of resources to return. If unspecified or set to 0, all resources + * will be returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. Token returned by previous call to `ListMemberships` which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Token returned by previous call to `ListMemberships` which + * specifies the position in the list from where to continue listing the + * resources. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Lists Memberships that match the filter expression, following the + * syntax outlined in https://google.aip.dev/160. + * Examples: + * - Name is `bar` in project `foo-proj` and location `global`: + * name = "projects/foo-proj/locations/global/membership/bar" + * - Memberships that have a label called `foo`: + * labels.foo:* + * - Memberships that have a label called `foo` whose value is `bar`: + * labels.foo = bar + * - Memberships in the CREATING state: + * state = CREATING + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Lists Memberships that match the filter expression, following the + * syntax outlined in https://google.aip.dev/160. + * Examples: + * - Name is `bar` in project `foo-proj` and location `global`: + * name = "projects/foo-proj/locations/global/membership/bar" + * - Memberships that have a label called `foo`: + * labels.foo:* + * - Memberships that have a label called `foo` whose value is `bar`: + * labels.foo = bar + * - Memberships in the CREATING state: + * state = CREATING + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. One or more fields to compare and use to sort the output. + * See https://google.aip.dev/132#ordering. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. One or more fields to compare and use to sort the output. + * See https://google.aip.dev/132#ordering. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php new file mode 100644 index 000000000000..401758bd06e4 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php @@ -0,0 +1,143 @@ +google.cloud.gkehub.v1.ListMembershipsResponse + */ +class ListMembershipsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of matching Memberships. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1; + */ + private $resources; + /** + * A token to request the next page of resources from the + * `ListMemberships` method. The value of an empty string means that + * there are no more resources to return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * List of locations that could not be reached while fetching this list. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\GkeHub\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $resources + * The list of matching Memberships. + * @type string $next_page_token + * A token to request the next page of resources from the + * `ListMemberships` method. The value of an empty string means that + * there are no more resources to return. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * List of locations that could not be reached while fetching this list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * The list of matching Memberships. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResources() + { + return $this->resources; + } + + /** + * The list of matching Memberships. + * + * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1; + * @param array<\Google\Cloud\GkeHub\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\Membership::class); + $this->resources = $arr; + + return $this; + } + + /** + * A token to request the next page of resources from the + * `ListMemberships` method. The value of an empty string means that + * there are no more resources to return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to request the next page of resources from the + * `ListMemberships` method. The value of an empty string means that + * there are no more resources to return. + * + * 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; + } + + /** + * List of locations that could not be reached while fetching this list. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * List of locations that could not be reached while fetching this list. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php new file mode 100644 index 000000000000..38ddfe562907 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php @@ -0,0 +1,641 @@ +google.cloud.gkehub.v1.Membership + */ +class Membership extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The full, unique name of this Membership resource in the + * format `projects/*/locations/*/memberships/{membership_id}`, set during + * creation. + * `membership_id` must be a valid RFC 1123 compliant DNS label: + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Optional. Labels for this membership. + * + * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. Description of this membership, limited to 63 characters. + * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` + * This field is present for legacy purposes. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. State of the Membership resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = null; + /** + * Output only. When the Membership was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. When the Membership was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. When the Membership was deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_time = null; + /** + * Optional. An externally-generated and managed ID for this Membership. This + * ID may be modified after creation, but this is not recommended. + * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` + * If this Membership represents a Kubernetes cluster, this value should be + * set to the UID of the `kube-system` namespace object. + * + * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $external_id = ''; + /** + * Output only. For clusters using Connect, the timestamp of the most recent + * connection established with Google Cloud. This time is updated every + * several minutes, not continuously. For clusters that do not use GKE + * Connect, or that have never connected successfully, this field will be + * unset. + * + * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_connection_time = null; + /** + * Output only. Google-generated UUID for this resource. This is unique across + * all Membership resources. If a Membership resource is deleted and another + * resource with the same name is created, it gets a different unique_id. + * + * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $unique_id = ''; + /** + * Optional. How to identify workloads from this Membership. + * See the documentation on Workload Identity for more details: + * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity + * + * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $authority = null; + /** + * Optional. The monitoring config information for this membership. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $monitoring_config = null; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\V1\MembershipEndpoint $endpoint + * Optional. Endpoint information to reach this member. + * @type string $name + * Output only. The full, unique name of this Membership resource in the + * format `projects/*/locations/*/memberships/{membership_id}`, set during + * creation. + * `membership_id` must be a valid RFC 1123 compliant DNS label: + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Labels for this membership. + * @type string $description + * Output only. Description of this membership, limited to 63 characters. + * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` + * This field is present for legacy purposes. + * @type \Google\Cloud\GkeHub\V1\MembershipState $state + * Output only. State of the Membership resource. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. When the Membership was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. When the Membership was last updated. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. When the Membership was deleted. + * @type string $external_id + * Optional. An externally-generated and managed ID for this Membership. This + * ID may be modified after creation, but this is not recommended. + * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` + * If this Membership represents a Kubernetes cluster, this value should be + * set to the UID of the `kube-system` namespace object. + * @type \Google\Protobuf\Timestamp $last_connection_time + * Output only. For clusters using Connect, the timestamp of the most recent + * connection established with Google Cloud. This time is updated every + * several minutes, not continuously. For clusters that do not use GKE + * Connect, or that have never connected successfully, this field will be + * unset. + * @type string $unique_id + * Output only. Google-generated UUID for this resource. This is unique across + * all Membership resources. If a Membership resource is deleted and another + * resource with the same name is created, it gets a different unique_id. + * @type \Google\Cloud\GkeHub\V1\Authority $authority + * Optional. How to identify workloads from this Membership. + * See the documentation on Workload Identity for more details: + * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity + * @type \Google\Cloud\GkeHub\V1\MonitoringConfig $monitoring_config + * Optional. The monitoring config information for this membership. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Endpoint information to reach this member. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeHub\V1\MembershipEndpoint|null + */ + public function getEndpoint() + { + return $this->readOneof(4); + } + + public function hasEndpoint() + { + return $this->hasOneof(4); + } + + /** + * Optional. Endpoint information to reach this member. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeHub\V1\MembershipEndpoint $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MembershipEndpoint::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. The full, unique name of this Membership resource in the + * format `projects/*/locations/*/memberships/{membership_id}`, set during + * creation. + * `membership_id` must be a valid RFC 1123 compliant DNS label: + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The full, unique name of this Membership resource in the + * format `projects/*/locations/*/memberships/{membership_id}`, set during + * creation. + * `membership_id` must be a valid RFC 1123 compliant DNS label: + * 1. At most 63 characters in length + * 2. It must consist of lower case alphanumeric characters or `-` + * 3. It must start and end with an alphanumeric character + * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + * with a maximum length of 63 characters. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Labels for this membership. + * + * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Labels for this membership. + * + * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Description of this membership, limited to 63 characters. + * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` + * This field is present for legacy purposes. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. Description of this membership, limited to 63 characters. + * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` + * This field is present for legacy purposes. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. State of the Membership resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeHub\V1\MembershipState|null + */ + public function getState() + { + return $this->state; + } + + public function hasState() + { + return isset($this->state); + } + + public function clearState() + { + unset($this->state); + } + + /** + * Output only. State of the Membership resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeHub\V1\MembershipState $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MembershipState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. When the Membership 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. When the Membership 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; + } + + /** + * Output only. When the Membership was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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. When the Membership was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. When the Membership was deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. When the Membership was deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Optional. An externally-generated and managed ID for this Membership. This + * ID may be modified after creation, but this is not recommended. + * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` + * If this Membership represents a Kubernetes cluster, this value should be + * set to the UID of the `kube-system` namespace object. + * + * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getExternalId() + { + return $this->external_id; + } + + /** + * Optional. An externally-generated and managed ID for this Membership. This + * ID may be modified after creation, but this is not recommended. + * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` + * If this Membership represents a Kubernetes cluster, this value should be + * set to the UID of the `kube-system` namespace object. + * + * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setExternalId($var) + { + GPBUtil::checkString($var, True); + $this->external_id = $var; + + return $this; + } + + /** + * Output only. For clusters using Connect, the timestamp of the most recent + * connection established with Google Cloud. This time is updated every + * several minutes, not continuously. For clusters that do not use GKE + * Connect, or that have never connected successfully, this field will be + * unset. + * + * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastConnectionTime() + { + return $this->last_connection_time; + } + + public function hasLastConnectionTime() + { + return isset($this->last_connection_time); + } + + public function clearLastConnectionTime() + { + unset($this->last_connection_time); + } + + /** + * Output only. For clusters using Connect, the timestamp of the most recent + * connection established with Google Cloud. This time is updated every + * several minutes, not continuously. For clusters that do not use GKE + * Connect, or that have never connected successfully, this field will be + * unset. + * + * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastConnectionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_connection_time = $var; + + return $this; + } + + /** + * Output only. Google-generated UUID for this resource. This is unique across + * all Membership resources. If a Membership resource is deleted and another + * resource with the same name is created, it gets a different unique_id. + * + * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUniqueId() + { + return $this->unique_id; + } + + /** + * Output only. Google-generated UUID for this resource. This is unique across + * all Membership resources. If a Membership resource is deleted and another + * resource with the same name is created, it gets a different unique_id. + * + * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUniqueId($var) + { + GPBUtil::checkString($var, True); + $this->unique_id = $var; + + return $this; + } + + /** + * Optional. How to identify workloads from this Membership. + * See the documentation on Workload Identity for more details: + * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity + * + * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeHub\V1\Authority|null + */ + public function getAuthority() + { + return $this->authority; + } + + public function hasAuthority() + { + return isset($this->authority); + } + + public function clearAuthority() + { + unset($this->authority); + } + + /** + * Optional. How to identify workloads from this Membership. + * See the documentation on Workload Identity for more details: + * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity + * + * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeHub\V1\Authority $var + * @return $this + */ + public function setAuthority($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Authority::class); + $this->authority = $var; + + return $this; + } + + /** + * Optional. The monitoring config information for this membership. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeHub\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. The monitoring config information for this membership. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeHub\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php new file mode 100644 index 000000000000..6558053fe879 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php @@ -0,0 +1,228 @@ +google.cloud.gkehub.v1.MembershipEndpoint + */ +class MembershipEndpoint extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. GKE-specific information. Only present if this Membership is a GKE cluster. + * + * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $gke_cluster = null; + /** + * Output only. Useful Kubernetes-specific metadata. + * + * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $kubernetes_metadata = null; + /** + * Optional. The in-cluster Kubernetes Resources that should be applied for a + * correctly registered cluster, in the steady state. These resources: + * * Ensure that the cluster is exclusively registered to one and only one + * Hub Membership. + * * Propagate Workload Pool Information available in the Membership + * Authority field. + * * Ensure proper initial configuration of default Hub Features. + * + * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $kubernetes_resource = null; + /** + * Output only. Whether the lifecycle of this membership is managed by a + * google cluster platform service. + * + * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $google_managed = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\V1\GkeCluster $gke_cluster + * Optional. GKE-specific information. Only present if this Membership is a GKE cluster. + * @type \Google\Cloud\GkeHub\V1\KubernetesMetadata $kubernetes_metadata + * Output only. Useful Kubernetes-specific metadata. + * @type \Google\Cloud\GkeHub\V1\KubernetesResource $kubernetes_resource + * Optional. The in-cluster Kubernetes Resources that should be applied for a + * correctly registered cluster, in the steady state. These resources: + * * Ensure that the cluster is exclusively registered to one and only one + * Hub Membership. + * * Propagate Workload Pool Information available in the Membership + * Authority field. + * * Ensure proper initial configuration of default Hub Features. + * @type bool $google_managed + * Output only. Whether the lifecycle of this membership is managed by a + * google cluster platform service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Optional. GKE-specific information. Only present if this Membership is a GKE cluster. + * + * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeHub\V1\GkeCluster|null + */ + public function getGkeCluster() + { + return $this->gke_cluster; + } + + public function hasGkeCluster() + { + return isset($this->gke_cluster); + } + + public function clearGkeCluster() + { + unset($this->gke_cluster); + } + + /** + * Optional. GKE-specific information. Only present if this Membership is a GKE cluster. + * + * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeHub\V1\GkeCluster $var + * @return $this + */ + public function setGkeCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\GkeCluster::class); + $this->gke_cluster = $var; + + return $this; + } + + /** + * Output only. Useful Kubernetes-specific metadata. + * + * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\GkeHub\V1\KubernetesMetadata|null + */ + public function getKubernetesMetadata() + { + return $this->kubernetes_metadata; + } + + public function hasKubernetesMetadata() + { + return isset($this->kubernetes_metadata); + } + + public function clearKubernetesMetadata() + { + unset($this->kubernetes_metadata); + } + + /** + * Output only. Useful Kubernetes-specific metadata. + * + * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\GkeHub\V1\KubernetesMetadata $var + * @return $this + */ + public function setKubernetesMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\KubernetesMetadata::class); + $this->kubernetes_metadata = $var; + + return $this; + } + + /** + * Optional. The in-cluster Kubernetes Resources that should be applied for a + * correctly registered cluster, in the steady state. These resources: + * * Ensure that the cluster is exclusively registered to one and only one + * Hub Membership. + * * Propagate Workload Pool Information available in the Membership + * Authority field. + * * Ensure proper initial configuration of default Hub Features. + * + * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\GkeHub\V1\KubernetesResource|null + */ + public function getKubernetesResource() + { + return $this->kubernetes_resource; + } + + public function hasKubernetesResource() + { + return isset($this->kubernetes_resource); + } + + public function clearKubernetesResource() + { + unset($this->kubernetes_resource); + } + + /** + * Optional. The in-cluster Kubernetes Resources that should be applied for a + * correctly registered cluster, in the steady state. These resources: + * * Ensure that the cluster is exclusively registered to one and only one + * Hub Membership. + * * Propagate Workload Pool Information available in the Membership + * Authority field. + * * Ensure proper initial configuration of default Hub Features. + * + * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\GkeHub\V1\KubernetesResource $var + * @return $this + */ + public function setKubernetesResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\KubernetesResource::class); + $this->kubernetes_resource = $var; + + return $this; + } + + /** + * Output only. Whether the lifecycle of this membership is managed by a + * google cluster platform service. + * + * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getGoogleManaged() + { + return $this->google_managed; + } + + /** + * Output only. Whether the lifecycle of this membership is managed by a + * google cluster platform service. + * + * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setGoogleManaged($var) + { + GPBUtil::checkBool($var); + $this->google_managed = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php new file mode 100644 index 000000000000..cbb126324b89 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php @@ -0,0 +1,76 @@ +google.cloud.gkehub.v1.MembershipFeatureSpec + */ +class MembershipFeatureSpec extends \Google\Protobuf\Internal\Message +{ + protected $feature_spec; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $configmanagement + * Config Management-specific spec. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * Config Management-specific spec. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec|null + */ + public function getConfigmanagement() + { + return $this->readOneof(106); + } + + public function hasConfigmanagement() + { + return $this->hasOneof(106); + } + + /** + * Config Management-specific spec. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $var + * @return $this + */ + public function setConfigmanagement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec::class); + $this->writeOneof(106, $var); + + return $this; + } + + /** + * @return string + */ + public function getFeatureSpec() + { + return $this->whichOneof("feature_spec"); + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php new file mode 100644 index 000000000000..cdbc23edb08a --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php @@ -0,0 +1,120 @@ +google.cloud.gkehub.v1.MembershipFeatureState + */ +class MembershipFeatureState extends \Google\Protobuf\Internal\Message +{ + /** + * The high-level state of this Feature for a single membership. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1; + */ + protected $state = null; + protected $feature_state; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState $configmanagement + * Config Management-specific state. + * @type \Google\Cloud\GkeHub\V1\FeatureState $state + * The high-level state of this Feature for a single membership. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * Config Management-specific state. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState|null + */ + public function getConfigmanagement() + { + return $this->readOneof(106); + } + + public function hasConfigmanagement() + { + return $this->hasOneof(106); + } + + /** + * Config Management-specific state. + * + * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState $var + * @return $this + */ + public function setConfigmanagement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState::class); + $this->writeOneof(106, $var); + + return $this; + } + + /** + * The high-level state of this Feature for a single membership. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1; + * @return \Google\Cloud\GkeHub\V1\FeatureState|null + */ + public function getState() + { + return $this->state; + } + + public function hasState() + { + return isset($this->state); + } + + public function clearState() + { + unset($this->state); + } + + /** + * The high-level state of this Feature for a single membership. + * + * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1; + * @param \Google\Cloud\GkeHub\V1\FeatureState $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureState::class); + $this->state = $var; + + return $this; + } + + /** + * @return string + */ + public function getFeatureState() + { + return $this->whichOneof("feature_state"); + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php new file mode 100644 index 000000000000..c46968fcb0e0 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php @@ -0,0 +1,67 @@ +google.cloud.gkehub.v1.MembershipState + */ +class MembershipState extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The current state of the Membership resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $code = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $code + * Output only. The current state of the Membership resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The current state of the Membership resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCode() + { + return $this->code; + } + + /** + * Output only. The current state of the Membership resource. + * + * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\MembershipState\Code::class); + $this->code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php new file mode 100644 index 000000000000..7c40449feacd --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php @@ -0,0 +1,85 @@ +google.cloud.gkehub.v1.MembershipState.Code + */ +class Code +{ + /** + * The code is not set. + * + * Generated from protobuf enum CODE_UNSPECIFIED = 0; + */ + const CODE_UNSPECIFIED = 0; + /** + * The cluster is being registered. + * + * Generated from protobuf enum CREATING = 1; + */ + const CREATING = 1; + /** + * The cluster is registered. + * + * Generated from protobuf enum READY = 2; + */ + const READY = 2; + /** + * The cluster is being unregistered. + * + * Generated from protobuf enum DELETING = 3; + */ + const DELETING = 3; + /** + * The Membership is being updated. + * + * Generated from protobuf enum UPDATING = 4; + */ + const UPDATING = 4; + /** + * The Membership is being updated by the Hub Service. + * + * Generated from protobuf enum SERVICE_UPDATING = 5; + */ + const SERVICE_UPDATING = 5; + + private static $valueToName = [ + self::CODE_UNSPECIFIED => 'CODE_UNSPECIFIED', + self::CREATING => 'CREATING', + self::READY => 'READY', + self::DELETING => 'DELETING', + self::UPDATING => 'UPDATING', + self::SERVICE_UPDATING => 'SERVICE_UPDATING', + ]; + + 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(Code::class, \Google\Cloud\GkeHub\V1\MembershipState_Code::class); + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php new file mode 100644 index 000000000000..94b7778b1b70 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php @@ -0,0 +1,244 @@ +google.cloud.gkehub.v1.MonitoringConfig + */ +class MonitoringConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. Project used to report Metrics + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $project_id = ''; + /** + * Immutable. Location used to report Metrics + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $location = ''; + /** + * Immutable. Cluster name used to report metrics. + * For Anthos on VMWare/Baremetal, it would be in format + * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in + * format + * `{azureClusters, awsClusters}/cluster_name`. + * + * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $cluster = ''; + /** + * Kubernetes system metrics, if available, are written to this prefix. + * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos + * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today + * but will migration to be under kubernetes.io/anthos + * + * Generated from protobuf field string kubernetes_metrics_prefix = 4; + */ + protected $kubernetes_metrics_prefix = ''; + /** + * Immutable. Cluster hash, this is a unique string generated by google code, + * which does not contain any PII, which we can use to reference the cluster. + * This is expected to be created by the monitoring stack and persisted into + * the Cluster object as well as to GKE-Hub. + * + * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $cluster_hash = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Immutable. Project used to report Metrics + * @type string $location + * Immutable. Location used to report Metrics + * @type string $cluster + * Immutable. Cluster name used to report metrics. + * For Anthos on VMWare/Baremetal, it would be in format + * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in + * format + * `{azureClusters, awsClusters}/cluster_name`. + * @type string $kubernetes_metrics_prefix + * Kubernetes system metrics, if available, are written to this prefix. + * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos + * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today + * but will migration to be under kubernetes.io/anthos + * @type string $cluster_hash + * Immutable. Cluster hash, this is a unique string generated by google code, + * which does not contain any PII, which we can use to reference the cluster. + * This is expected to be created by the monitoring stack and persisted into + * the Cluster object as well as to GKE-Hub. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. Project used to report Metrics + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Immutable. Project used to report Metrics + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Immutable. Location used to report Metrics + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Immutable. Location used to report Metrics + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Immutable. Cluster name used to report metrics. + * For Anthos on VMWare/Baremetal, it would be in format + * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in + * format + * `{azureClusters, awsClusters}/cluster_name`. + * + * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getCluster() + { + return $this->cluster; + } + + /** + * Immutable. Cluster name used to report metrics. + * For Anthos on VMWare/Baremetal, it would be in format + * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in + * format + * `{azureClusters, awsClusters}/cluster_name`. + * + * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkString($var, True); + $this->cluster = $var; + + return $this; + } + + /** + * Kubernetes system metrics, if available, are written to this prefix. + * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos + * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today + * but will migration to be under kubernetes.io/anthos + * + * Generated from protobuf field string kubernetes_metrics_prefix = 4; + * @return string + */ + public function getKubernetesMetricsPrefix() + { + return $this->kubernetes_metrics_prefix; + } + + /** + * Kubernetes system metrics, if available, are written to this prefix. + * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos + * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today + * but will migration to be under kubernetes.io/anthos + * + * Generated from protobuf field string kubernetes_metrics_prefix = 4; + * @param string $var + * @return $this + */ + public function setKubernetesMetricsPrefix($var) + { + GPBUtil::checkString($var, True); + $this->kubernetes_metrics_prefix = $var; + + return $this; + } + + /** + * Immutable. Cluster hash, this is a unique string generated by google code, + * which does not contain any PII, which we can use to reference the cluster. + * This is expected to be created by the monitoring stack and persisted into + * the Cluster object as well as to GKE-Hub. + * + * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getClusterHash() + { + return $this->cluster_hash; + } + + /** + * Immutable. Cluster hash, this is a unique string generated by google code, + * which does not contain any PII, which we can use to reference the cluster. + * This is expected to be created by the monitoring stack and persisted into + * the Cluster object as well as to GKE-Hub. + * + * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setClusterHash($var) + { + GPBUtil::checkString($var, True); + $this->cluster_hash = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php new file mode 100644 index 000000000000..a09857d77830 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php @@ -0,0 +1,307 @@ +google.cloud.gkehub.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the 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 the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_detail = ''; + /** + * Output only. Identifies whether the user has requested cancellation + * of 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cancel_requested = false; + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $api_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type string $verb + * Output only. Name of the verb executed by the operation. + * @type string $status_detail + * Output only. Human-readable status of the operation, if any. + * @type bool $cancel_requested + * Output only. Identifies whether the user has requested cancellation + * of 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`. + * @type string $api_version + * Output only. API version used to start the operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the 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 the 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 the operation finished running. + * + * 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 the operation finished running. + * + * 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. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the 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. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.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. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_detail = 5 [(.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 = 5 [(.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. Identifies whether the user has requested cancellation + * of 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getCancelRequested() + { + return $this->cancel_requested; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCancelRequested($var) + { + GPBUtil::checkBool($var); + $this->cancel_requested = $var; + + return $this; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php new file mode 100644 index 000000000000..1ae0d6196454 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php @@ -0,0 +1,114 @@ +google.cloud.gkehub.v1.ResourceManifest + */ +class ResourceManifest extends \Google\Protobuf\Internal\Message +{ + /** + * YAML manifest of the resource. + * + * Generated from protobuf field string manifest = 1; + */ + protected $manifest = ''; + /** + * Whether the resource provided in the manifest is `cluster_scoped`. + * If unset, the manifest is assumed to be namespace scoped. + * This field is used for REST mapping when applying the resource in a + * cluster. + * + * Generated from protobuf field bool cluster_scoped = 2; + */ + protected $cluster_scoped = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $manifest + * YAML manifest of the resource. + * @type bool $cluster_scoped + * Whether the resource provided in the manifest is `cluster_scoped`. + * If unset, the manifest is assumed to be namespace scoped. + * This field is used for REST mapping when applying the resource in a + * cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * YAML manifest of the resource. + * + * Generated from protobuf field string manifest = 1; + * @return string + */ + public function getManifest() + { + return $this->manifest; + } + + /** + * YAML manifest of the resource. + * + * 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; + } + + /** + * Whether the resource provided in the manifest is `cluster_scoped`. + * If unset, the manifest is assumed to be namespace scoped. + * This field is used for REST mapping when applying the resource in a + * cluster. + * + * Generated from protobuf field bool cluster_scoped = 2; + * @return bool + */ + public function getClusterScoped() + { + return $this->cluster_scoped; + } + + /** + * Whether the resource provided in the manifest is `cluster_scoped`. + * If unset, the manifest is assumed to be namespace scoped. + * This field is used for REST mapping when applying the resource in a + * cluster. + * + * Generated from protobuf field bool cluster_scoped = 2; + * @param bool $var + * @return $this + */ + public function setClusterScoped($var) + { + GPBUtil::checkBool($var); + $this->cluster_scoped = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php new file mode 100644 index 000000000000..bb595ca99482 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php @@ -0,0 +1,205 @@ +google.cloud.gkehub.v1.ResourceOptions + */ +class ResourceOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The Connect agent version to use for connect_resources. Defaults + * to the latest GKE Connect version. The version must be a currently + * supported version, obsolete versions will be rejected. + * + * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $connect_version = ''; + /** + * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for + * CustomResourceDefinition resources. + * This option should be set for clusters with Kubernetes apiserver versions + * <1.16. + * + * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $v1beta1_crd = false; + /** + * Optional. Major and minor version of the Kubernetes cluster. This is only + * used to determine which version to use for the CustomResourceDefinition + * resources, `apiextensions/v1beta1` or`apiextensions/v1`. + * + * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $k8s_version = ''; + /** + * Optional. Git version of the Kubernetes cluster. This is only used to gate + * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and + * above. + * + * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $k8s_git_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $connect_version + * Optional. The Connect agent version to use for connect_resources. Defaults + * to the latest GKE Connect version. The version must be a currently + * supported version, obsolete versions will be rejected. + * @type bool $v1beta1_crd + * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for + * CustomResourceDefinition resources. + * This option should be set for clusters with Kubernetes apiserver versions + * <1.16. + * @type string $k8s_version + * Optional. Major and minor version of the Kubernetes cluster. This is only + * used to determine which version to use for the CustomResourceDefinition + * resources, `apiextensions/v1beta1` or`apiextensions/v1`. + * @type string $k8s_git_version + * Optional. Git version of the Kubernetes cluster. This is only used to gate + * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and + * above. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Connect agent version to use for connect_resources. Defaults + * to the latest GKE Connect version. The version must be a currently + * supported version, obsolete versions will be rejected. + * + * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConnectVersion() + { + return $this->connect_version; + } + + /** + * Optional. The Connect agent version to use for connect_resources. Defaults + * to the latest GKE Connect version. The version must be a currently + * supported version, obsolete versions will be rejected. + * + * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConnectVersion($var) + { + GPBUtil::checkString($var, True); + $this->connect_version = $var; + + return $this; + } + + /** + * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for + * CustomResourceDefinition resources. + * This option should be set for clusters with Kubernetes apiserver versions + * <1.16. + * + * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getV1Beta1Crd() + { + return $this->v1beta1_crd; + } + + /** + * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for + * CustomResourceDefinition resources. + * This option should be set for clusters with Kubernetes apiserver versions + * <1.16. + * + * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setV1Beta1Crd($var) + { + GPBUtil::checkBool($var); + $this->v1beta1_crd = $var; + + return $this; + } + + /** + * Optional. Major and minor version of the Kubernetes cluster. This is only + * used to determine which version to use for the CustomResourceDefinition + * resources, `apiextensions/v1beta1` or`apiextensions/v1`. + * + * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getK8SVersion() + { + return $this->k8s_version; + } + + /** + * Optional. Major and minor version of the Kubernetes cluster. This is only + * used to determine which version to use for the CustomResourceDefinition + * resources, `apiextensions/v1beta1` or`apiextensions/v1`. + * + * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setK8SVersion($var) + { + GPBUtil::checkString($var, True); + $this->k8s_version = $var; + + return $this; + } + + /** + * Optional. Git version of the Kubernetes cluster. This is only used to gate + * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and + * above. + * + * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getK8SGitVersion() + { + return $this->k8s_git_version; + } + + /** + * Optional. Git version of the Kubernetes cluster. This is only used to gate + * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and + * above. + * + * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setK8SGitVersion($var) + { + GPBUtil::checkString($var, True); + $this->k8s_git_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php new file mode 100644 index 000000000000..d04c88055885 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php @@ -0,0 +1,102 @@ +google.cloud.gkehub.v1.TypeMeta + */ +class TypeMeta extends \Google\Protobuf\Internal\Message +{ + /** + * Kind of the resource (e.g. Deployment). + * + * Generated from protobuf field string kind = 1; + */ + protected $kind = ''; + /** + * APIVersion of the resource (e.g. v1). + * + * Generated from protobuf field string api_version = 2; + */ + protected $api_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kind + * Kind of the resource (e.g. Deployment). + * @type string $api_version + * APIVersion of the resource (e.g. v1). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Kind of the resource (e.g. Deployment). + * + * Generated from protobuf field string kind = 1; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * Kind of the resource (e.g. Deployment). + * + * Generated from protobuf field string kind = 1; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + + /** + * APIVersion of the resource (e.g. v1). + * + * Generated from protobuf field string api_version = 2; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * APIVersion of the resource (e.g. v1). + * + * Generated from protobuf field string api_version = 2; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php new file mode 100644 index 000000000000..89a7b5b28dbb --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php @@ -0,0 +1,286 @@ +google.cloud.gkehub.v1.UpdateFeatureRequest + */ +class UpdateFeatureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + /** + * Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; + */ + protected $resource = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4; + */ + protected $request_id = ''; + + /** + * @param string $name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @param \Google\Cloud\GkeHub\V1\Feature $resource Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * @param \Google\Protobuf\FieldMask $updateMask Mask of fields to update. + * + * @return \Google\Cloud\GkeHub\V1\UpdateFeatureRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\GkeHub\V1\Feature $resource, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setResource($resource) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @type \Google\Protobuf\FieldMask $update_mask + * Mask of fields to update. + * @type \Google\Cloud\GkeHub\V1\Feature $resource + * Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @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); + } + + /** + * Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; + * @return \Google\Cloud\GkeHub\V1\Feature|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; + * @param \Google\Cloud\GkeHub\V1\Feature $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Feature::class); + $this->resource = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php new file mode 100644 index 000000000000..18371b71de73 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php @@ -0,0 +1,287 @@ +google.cloud.gkehub.v1.UpdateMembershipRequest + */ +class UpdateMembershipRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + + /** + * @param string $name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. Please see + * {@see GkeHubClient::membershipName()} for help formatting this field. + * @param \Google\Cloud\GkeHub\V1\Membership $resource Required. Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\GkeHub\V1\UpdateMembershipRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\GkeHub\V1\Membership $resource, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setResource($resource) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type \Google\Cloud\GkeHub\V1\Membership $resource + * Required. Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * 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 Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * + * 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; + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.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. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\GkeHub\V1\Membership|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * Required. Only fields specified in update_mask are updated. + * If you specify a field in the update_mask but don't specify its value here + * that field will be deleted. + * If you are updating a map field, set the value of a key to null or empty + * string to delete the key from the map. It's not possible to update a key's + * value to the empty string. + * If you specify the update_mask to be a special path "*", fully replaces all + * user-modifiable fields to match `resource`. + * + * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\GkeHub\V1\Membership $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Membership::class); + $this->resource = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. The server will guarantee + * that for at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID + * was received, and if so, will ignore the second request. This prevents + * clients from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php new file mode 100644 index 000000000000..9b8547744236 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php @@ -0,0 +1,69 @@ +createFeature($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Feature $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php new file mode 100644 index 000000000000..4dbc83dbd085 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php @@ -0,0 +1,101 @@ +setParent($formattedParent) + ->setMembershipId($membershipId) + ->setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $gkeHubClient->createMembership($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Membership $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 = GkeHubClient::locationName('[PROJECT]', '[LOCATION]'); + $membershipId = '[MEMBERSHIP_ID]'; + + create_membership_sample($formattedParent, $membershipId); +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php new file mode 100644 index 000000000000..e635a795e9fe --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php @@ -0,0 +1,66 @@ +deleteFeature($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php new file mode 100644 index 000000000000..6618f41d94df --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $gkeHubClient->deleteMembership($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + + delete_membership_sample($formattedName); +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php new file mode 100644 index 000000000000..40ca312d46ee --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var GenerateConnectManifestResponse $response */ + $response = $gkeHubClient->generateConnectManifest($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + + generate_connect_manifest_sample($formattedName); +} +// [END gkehub_v1_generated_GkeHub_GenerateConnectManifest_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php new file mode 100644 index 000000000000..3f3d30bf3ff8 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php @@ -0,0 +1,57 @@ +getFeature($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php new file mode 100644 index 000000000000..c89827a1d772 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Membership $response */ + $response = $gkeHubClient->getMembership($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + + get_membership_sample($formattedName); +} +// [END gkehub_v1_generated_GkeHub_GetMembership_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php new file mode 100644 index 000000000000..0b6f62e5426f --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php @@ -0,0 +1,62 @@ +listFeatures($request); + + /** @var Feature $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php new file mode 100644 index 000000000000..9765aea962c3 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $gkeHubClient->listMemberships($request); + + /** @var Membership $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 = GkeHubClient::locationName('[PROJECT]', '[LOCATION]'); + + list_memberships_sample($formattedParent); +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php new file mode 100644 index 000000000000..c32e93dee805 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php @@ -0,0 +1,69 @@ +updateFeature($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Feature $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php new file mode 100644 index 000000000000..9e4379be0c35 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php @@ -0,0 +1,89 @@ +setName($formattedName) + ->setUpdateMask($updateMask) + ->setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $gkeHubClient->updateMembership($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Membership $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + + update_membership_sample($formattedName); +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_sync] diff --git a/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php b/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php new file mode 100644 index 000000000000..c3960d110409 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php @@ -0,0 +1,651 @@ + createFeatureAsync(CreateFeatureRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMembershipAsync(CreateMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFeatureAsync(DeleteFeatureRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMembershipAsync(DeleteMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface generateConnectManifestAsync(GenerateConnectManifestRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFeatureAsync(GetFeatureRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMembershipAsync(GetMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFeaturesAsync(ListFeaturesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMembershipsAsync(ListMembershipsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFeatureAsync(UpdateFeatureRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMembershipAsync(UpdateMembershipRequest $request, array $optionalArgs = []) + */ +final class GkeHubClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.gkehub.v1.GkeHub'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'gkehub.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'gkehub.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/gke_hub_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/gke_hub_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/gke_hub_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/gke_hub_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a feature + * resource. + * + * @param string $project + * @param string $location + * @param string $feature + * + * @return string The formatted feature resource. + */ + public static function featureName(string $project, string $location, string $feature): string + { + return self::getPathTemplate('feature')->render([ + 'project' => $project, + 'location' => $location, + 'feature' => $feature, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a membership + * resource. + * + * @param string $project + * @param string $location + * @param string $membership + * + * @return string The formatted membership resource. + */ + public static function membershipName(string $project, string $location, string $membership): string + { + return self::getPathTemplate('membership')->render([ + 'project' => $project, + 'location' => $location, + 'membership' => $membership, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - feature: projects/{project}/locations/{location}/features/{feature} + * - location: projects/{project}/locations/{location} + * - membership: projects/{project}/locations/{location}/memberships/{membership} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $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 'gkehub.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. + * *Important*: If you accept a credential configuration (credential + * JSON/File/Stream) from an external source for authentication to Google Cloud + * Platform, you must validate it before providing it to any Google API or library. + * Providing an unvalidated credential configuration to Google APIs can compromise + * the security of your systems and data. For more information {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Adds a new Feature. + * + * The async variant is {@see GkeHubClient::createFeatureAsync()} . + * + * @example samples/V1/GkeHubClient/create_feature.php + * + * @param CreateFeatureRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createFeature(CreateFeatureRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateFeature', $request, $callOptions)->wait(); + } + + /** + * Creates a new Membership. + * + * **This is currently only supported for GKE clusters on Google Cloud**. + * To register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * + * The async variant is {@see GkeHubClient::createMembershipAsync()} . + * + * @example samples/V1/GkeHubClient/create_membership.php + * + * @param CreateMembershipRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createMembership(CreateMembershipRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateMembership', $request, $callOptions)->wait(); + } + + /** + * Removes a Feature. + * + * The async variant is {@see GkeHubClient::deleteFeatureAsync()} . + * + * @example samples/V1/GkeHubClient/delete_feature.php + * + * @param DeleteFeatureRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFeature(DeleteFeatureRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteFeature', $request, $callOptions)->wait(); + } + + /** + * Removes a Membership. + * + * **This is currently only supported for GKE clusters on Google Cloud**. + * To unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * + * The async variant is {@see GkeHubClient::deleteMembershipAsync()} . + * + * @example samples/V1/GkeHubClient/delete_membership.php + * + * @param DeleteMembershipRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteMembership(DeleteMembershipRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteMembership', $request, $callOptions)->wait(); + } + + /** + * Generates the manifest for deployment of the GKE connect agent. + * + * **This method is used internally by Google-provided libraries.** + * Most clients should not need to call this method directly. + * + * The async variant is {@see GkeHubClient::generateConnectManifestAsync()} . + * + * @example samples/V1/GkeHubClient/generate_connect_manifest.php + * + * @param GenerateConnectManifestRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return GenerateConnectManifestResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function generateConnectManifest(GenerateConnectManifestRequest $request, array $callOptions = []): GenerateConnectManifestResponse + { + return $this->startApiCall('GenerateConnectManifest', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single Feature. + * + * The async variant is {@see GkeHubClient::getFeatureAsync()} . + * + * @example samples/V1/GkeHubClient/get_feature.php + * + * @param GetFeatureRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Feature + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFeature(GetFeatureRequest $request, array $callOptions = []): Feature + { + return $this->startApiCall('GetFeature', $request, $callOptions)->wait(); + } + + /** + * Gets the details of a Membership. + * + * The async variant is {@see GkeHubClient::getMembershipAsync()} . + * + * @example samples/V1/GkeHubClient/get_membership.php + * + * @param GetMembershipRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Membership + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMembership(GetMembershipRequest $request, array $callOptions = []): Membership + { + return $this->startApiCall('GetMembership', $request, $callOptions)->wait(); + } + + /** + * Lists Features in a given project and location. + * + * The async variant is {@see GkeHubClient::listFeaturesAsync()} . + * + * @example samples/V1/GkeHubClient/list_features.php + * + * @param ListFeaturesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listFeatures(ListFeaturesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFeatures', $request, $callOptions); + } + + /** + * Lists Memberships in a given project and location. + * + * The async variant is {@see GkeHubClient::listMembershipsAsync()} . + * + * @example samples/V1/GkeHubClient/list_memberships.php + * + * @param ListMembershipsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMemberships(ListMembershipsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMemberships', $request, $callOptions); + } + + /** + * Updates an existing Feature. + * + * The async variant is {@see GkeHubClient::updateFeatureAsync()} . + * + * @example samples/V1/GkeHubClient/update_feature.php + * + * @param UpdateFeatureRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateFeature(UpdateFeatureRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateFeature', $request, $callOptions)->wait(); + } + + /** + * Updates an existing Membership. + * + * The async variant is {@see GkeHubClient::updateMembershipAsync()} . + * + * @example samples/V1/GkeHubClient/update_membership.php + * + * @param UpdateMembershipRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateMembership(UpdateMembershipRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateMembership', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/GkeHub/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GkeHub/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..7b0047620c7f --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/src/V1/gapic_metadata.json @@ -0,0 +1,73 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.gkehub.v1", + "libraryPackage": "Google\\Cloud\\GkeHub\\V1", + "services": { + "GkeHub": { + "clients": { + "grpc": { + "libraryClient": "GkeHubGapicClient", + "rpcs": { + "CreateFeature": { + "methods": [ + "createFeature" + ] + }, + "CreateMembership": { + "methods": [ + "createMembership" + ] + }, + "DeleteFeature": { + "methods": [ + "deleteFeature" + ] + }, + "DeleteMembership": { + "methods": [ + "deleteMembership" + ] + }, + "GenerateConnectManifest": { + "methods": [ + "generateConnectManifest" + ] + }, + "GetFeature": { + "methods": [ + "getFeature" + ] + }, + "GetMembership": { + "methods": [ + "getMembership" + ] + }, + "ListFeatures": { + "methods": [ + "listFeatures" + ] + }, + "ListMemberships": { + "methods": [ + "listMemberships" + ] + }, + "UpdateFeature": { + "methods": [ + "updateFeature" + ] + }, + "UpdateMembership": { + "methods": [ + "updateMembership" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_client_config.json b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_client_config.json new file mode 100644 index 000000000000..f361405e676f --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_client_config.json @@ -0,0 +1,89 @@ +{ + "interfaces": { + "google.cloud.gkehub.v1.GkeHub": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "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 + } + }, + "methods": { + "CreateFeature": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateMembership": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteFeature": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteMembership": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GenerateConnectManifest": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetFeature": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetMembership": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFeatures": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListMemberships": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateFeature": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateMembership": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_descriptor_config.php b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_descriptor_config.php new file mode 100644 index 000000000000..8138ac902a72 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_descriptor_config.php @@ -0,0 +1,223 @@ + [ + 'google.cloud.gkehub.v1.GkeHub' => [ + 'CreateFeature' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeHub\V1\Feature', + 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMembership' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeHub\V1\Membership', + 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteFeature' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMembership' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateFeature' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeHub\V1\Feature', + 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateMembership' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\GkeHub\V1\Membership', + 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GenerateConnectManifest' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GkeHub\V1\GenerateConnectManifestResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetFeature' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GkeHub\V1\Feature', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMembership' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\GkeHub\V1\Membership', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListFeatures' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResources', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GkeHub\V1\ListFeaturesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMemberships' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResources', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\GkeHub\V1\ListMembershipsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'feature' => 'projects/{project}/locations/{location}/features/{feature}', + 'location' => 'projects/{project}/locations/{location}', + 'membership' => 'projects/{project}/locations/{location}/memberships/{membership}', + ], + ], + ], +]; diff --git a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_rest_client_config.php b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_rest_client_config.php new file mode 100644 index 000000000000..2e1886b10219 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_rest_client_config.php @@ -0,0 +1,288 @@ + [ + 'google.cloud.gkehub.v1.GkeHub' => [ + 'CreateFeature' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/features', + 'body' => 'resource', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMembership' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/memberships', + 'body' => 'resource', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'membership_id', + ], + ], + 'DeleteFeature' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/features/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMembership' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateConnectManifest' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFeature' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/features/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMembership' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListFeatures' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/features', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMemberships' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/memberships', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateFeature' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/features/*}', + 'body' => 'resource', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateMembership' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}', + 'body' => 'resource', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/memberships/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/features/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/memberships/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/features/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/memberships/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/features/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + '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', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/GkeHub/v1/tests/Unit/V1/Client/GkeHubClientTest.php b/owl-bot-staging/GkeHub/v1/tests/Unit/V1/Client/GkeHubClientTest.php new file mode 100644 index 000000000000..3e5705aa0ed9 --- /dev/null +++ b/owl-bot-staging/GkeHub/v1/tests/Unit/V1/Client/GkeHubClientTest.php @@ -0,0 +1,1213 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return GkeHubClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new GkeHubClient($options); + } + + /** @test */ + public function createFeatureTest() + { + $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/createFeatureTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $expectedResponse = new Feature(); + $expectedResponse->setName($name); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createFeatureTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + $request = new CreateFeatureRequest(); + $response = $gapicClient->createFeature($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/CreateFeature', $actualApiFuncCall); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFeatureTest'); + $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 createFeatureExceptionTest() + { + $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/createFeatureTest'); + $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); + $request = new CreateFeatureRequest(); + $response = $gapicClient->createFeature($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFeatureTest'); + 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 createMembershipTest() + { + $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/createMembershipTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $description = 'description-1724546052'; + $externalId = 'externalId-1153075697'; + $uniqueId = 'uniqueId-538310583'; + $expectedResponse = new Membership(); + $expectedResponse->setName($name); + $expectedResponse->setDescription($description); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setUniqueId($uniqueId); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createMembershipTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $membershipId = 'membershipId-1132211676'; + $resource = new Membership(); + $request = (new CreateMembershipRequest()) + ->setParent($formattedParent) + ->setMembershipId($membershipId) + ->setResource($resource); + $response = $gapicClient->createMembership($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/CreateMembership', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getMembershipId(); + $this->assertProtobufEquals($membershipId, $actualValue); + $actualValue = $actualApiRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createMembershipTest'); + $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 createMembershipExceptionTest() + { + $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/createMembershipTest'); + $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]'); + $membershipId = 'membershipId-1132211676'; + $resource = new Membership(); + $request = (new CreateMembershipRequest()) + ->setParent($formattedParent) + ->setMembershipId($membershipId) + ->setResource($resource); + $response = $gapicClient->createMembership($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createMembershipTest'); + 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 deleteFeatureTest() + { + $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/deleteFeatureTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteFeatureTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + $request = new DeleteFeatureRequest(); + $response = $gapicClient->deleteFeature($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/DeleteFeature', $actualApiFuncCall); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFeatureTest'); + $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 deleteFeatureExceptionTest() + { + $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/deleteFeatureTest'); + $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); + $request = new DeleteFeatureRequest(); + $response = $gapicClient->deleteFeature($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFeatureTest'); + 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 deleteMembershipTest() + { + $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/deleteMembershipTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteMembershipTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + $request = (new DeleteMembershipRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteMembership($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/DeleteMembership', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteMembershipTest'); + $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 deleteMembershipExceptionTest() + { + $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/deleteMembershipTest'); + $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->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + $request = (new DeleteMembershipRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteMembership($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteMembershipTest'); + 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 generateConnectManifestTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GenerateConnectManifestResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + $request = (new GenerateConnectManifestRequest()) + ->setName($formattedName); + $response = $gapicClient->generateConnectManifest($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/GenerateConnectManifest', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateConnectManifestExceptionTest() + { + $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->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + $request = (new GenerateConnectManifestRequest()) + ->setName($formattedName); + try { + $gapicClient->generateConnectManifest($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFeatureTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Feature(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + $request = new GetFeatureRequest(); + $response = $gapicClient->getFeature($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/GetFeature', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFeatureExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetFeatureRequest(); + try { + $gapicClient->getFeature($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMembershipTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $externalId = 'externalId-1153075697'; + $uniqueId = 'uniqueId-538310583'; + $expectedResponse = new Membership(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setUniqueId($uniqueId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + $request = (new GetMembershipRequest()) + ->setName($formattedName); + $response = $gapicClient->getMembership($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/GetMembership', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMembershipExceptionTest() + { + $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->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + $request = (new GetMembershipRequest()) + ->setName($formattedName); + try { + $gapicClient->getMembership($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFeaturesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $resourcesElement = new Feature(); + $resources = [ + $resourcesElement, + ]; + $expectedResponse = new ListFeaturesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResources($resources); + $transport->addResponse($expectedResponse); + $request = new ListFeaturesRequest(); + $response = $gapicClient->listFeatures($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResources()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/ListFeatures', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFeaturesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListFeaturesRequest(); + try { + $gapicClient->listFeatures($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMembershipsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $resourcesElement = new Membership(); + $resources = [ + $resourcesElement, + ]; + $expectedResponse = new ListMembershipsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResources($resources); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListMembershipsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMemberships($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResources()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/ListMemberships', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMembershipsExceptionTest() + { + $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]'); + $request = (new ListMembershipsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMemberships($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateFeatureTest() + { + $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/updateFeatureTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $expectedResponse = new Feature(); + $expectedResponse->setName($name2); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateFeatureTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + $request = new UpdateFeatureRequest(); + $response = $gapicClient->updateFeature($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/UpdateFeature', $actualApiFuncCall); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateFeatureTest'); + $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 updateFeatureExceptionTest() + { + $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/updateFeatureTest'); + $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); + $request = new UpdateFeatureRequest(); + $response = $gapicClient->updateFeature($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateFeatureTest'); + 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 updateMembershipTest() + { + $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/updateMembershipTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $externalId = 'externalId-1153075697'; + $uniqueId = 'uniqueId-538310583'; + $expectedResponse = new Membership(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setUniqueId($uniqueId); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateMembershipTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + $updateMask = new FieldMask(); + $resource = new Membership(); + $request = (new UpdateMembershipRequest()) + ->setName($formattedName) + ->setUpdateMask($updateMask) + ->setResource($resource); + $response = $gapicClient->updateMembership($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/UpdateMembership', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateMembershipTest'); + $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 updateMembershipExceptionTest() + { + $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/updateMembershipTest'); + $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->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); + $updateMask = new FieldMask(); + $resource = new Membership(); + $request = (new UpdateMembershipRequest()) + ->setName($formattedName) + ->setUpdateMask($updateMask) + ->setResource($resource); + $response = $gapicClient->updateMembership($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateMembershipTest'); + 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 createFeatureAsyncTest() + { + $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/createFeatureTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $expectedResponse = new Feature(); + $expectedResponse->setName($name); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createFeatureTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + $request = new CreateFeatureRequest(); + $response = $gapicClient->createFeatureAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.gkehub.v1.GkeHub/CreateFeature', $actualApiFuncCall); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFeatureTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} From 1fcc893faff4bc9224ca9dd8e1fa0c5149c8e847 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 11 Sep 2025 22:30:54 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- GkeHub/metadata/V1/Membership.php | Bin 3349 -> 3380 bytes GkeHub/src/V1/ResourceOptions.php | 66 +- .../V1/Configmanagement/Configmanagement.php | Bin 6742 -> 0 bytes .../Google/Cloud/Gkehub/V1/Feature.php | Bin 3244 -> 0 bytes .../Google/Cloud/Gkehub/V1/Membership.php | Bin 3380 -> 0 bytes .../Multiclusteringress.php | 29 - .../Google/Cloud/Gkehub/V1/Service.php | 149 -- .../GkeHub/ConfigManagement/V1/ConfigSync.php | 323 ----- .../V1/ConfigSyncDeploymentState.php | 271 ---- .../ConfigManagement/V1/ConfigSyncError.php | 67 - .../ConfigManagement/V1/ConfigSyncState.php | 309 ----- .../V1/ConfigSyncState/CRDState.php | 78 -- .../V1/ConfigSyncState/State.php | 76 -- .../ConfigManagement/V1/ConfigSyncVersion.php | 271 ---- .../ConfigManagement/V1/DeploymentState.php | 75 - .../ConfigManagement/V1/ErrorResource.php | 179 --- .../V1/GatekeeperDeploymentState.php | 101 -- .../GkeHub/ConfigManagement/V1/GitConfig.php | 321 ----- .../ConfigManagement/V1/GroupVersionKind.php | 135 -- .../V1/HierarchyControllerConfig.php | 135 -- .../V1/HierarchyControllerDeploymentState.php | 101 -- .../V1/HierarchyControllerState.php | 121 -- .../V1/HierarchyControllerVersion.php | 101 -- .../ConfigManagement/V1/InstallError.php | 67 - .../ConfigManagement/V1/MembershipSpec.php | 292 ---- .../V1/MembershipSpec/Management.php | 64 - .../ConfigManagement/V1/MembershipState.php | 299 ---- .../GkeHub/ConfigManagement/V1/OciConfig.php | 215 --- .../ConfigManagement/V1/OperatorState.php | 135 -- .../ConfigManagement/V1/PolicyController.php | 277 ---- .../V1/PolicyControllerState.php | 121 -- .../V1/PolicyControllerVersion.php | 71 - .../GkeHub/ConfigManagement/V1/SyncError.php | 135 -- .../GkeHub/ConfigManagement/V1/SyncState.php | 304 ----- .../V1/SyncState/SyncCode.php | 99 -- .../MultiClusterIngress/V1/FeatureSpec.php | 72 - .../src/Google/Cloud/GkeHub/V1/Authority.php | 235 ---- .../Cloud/GkeHub/V1/CommonFeatureSpec.php | 75 - .../Cloud/GkeHub/V1/CommonFeatureState.php | 77 -- .../Cloud/GkeHub/V1/ConnectAgentResource.php | 112 -- .../Cloud/GkeHub/V1/CreateFeatureRequest.php | 241 ---- .../GkeHub/V1/CreateMembershipRequest.php | 274 ---- .../Cloud/GkeHub/V1/DeleteFeatureRequest.php | 201 --- .../GkeHub/V1/DeleteMembershipRequest.php | 202 --- .../src/Google/Cloud/GkeHub/V1/Feature.php | 513 ------- .../Cloud/GkeHub/V1/FeatureResourceState.php | 69 - .../GkeHub/V1/FeatureResourceState/State.php | 88 -- .../Google/Cloud/GkeHub/V1/FeatureState.php | 147 -- .../Cloud/GkeHub/V1/FeatureState/Code.php | 77 -- .../V1/GenerateConnectManifestRequest.php | 321 ----- .../V1/GenerateConnectManifestResponse.php | 72 - .../Cloud/GkeHub/V1/GetFeatureRequest.php | 85 -- .../Cloud/GkeHub/V1/GetMembershipRequest.php | 86 -- .../src/Google/Cloud/GkeHub/V1/GkeCluster.php | 117 -- .../Cloud/GkeHub/V1/KubernetesMetadata.php | 276 ---- .../Cloud/GkeHub/V1/KubernetesResource.php | 245 ---- .../Cloud/GkeHub/V1/ListFeaturesRequest.php | 273 ---- .../Cloud/GkeHub/V1/ListFeaturesResponse.php | 109 -- .../GkeHub/V1/ListMembershipsRequest.php | 287 ---- .../GkeHub/V1/ListMembershipsResponse.php | 143 -- .../src/Google/Cloud/GkeHub/V1/Membership.php | 641 --------- .../Cloud/GkeHub/V1/MembershipEndpoint.php | 228 ---- .../Cloud/GkeHub/V1/MembershipFeatureSpec.php | 76 -- .../GkeHub/V1/MembershipFeatureState.php | 120 -- .../Cloud/GkeHub/V1/MembershipState.php | 67 - .../Cloud/GkeHub/V1/MembershipState/Code.php | 85 -- .../Cloud/GkeHub/V1/MonitoringConfig.php | 244 ---- .../Cloud/GkeHub/V1/OperationMetadata.php | 307 ----- .../Cloud/GkeHub/V1/ResourceManifest.php | 114 -- .../Cloud/GkeHub/V1/ResourceOptions.php | 205 --- .../src/Google/Cloud/GkeHub/V1/TypeMeta.php | 102 -- .../Cloud/GkeHub/V1/UpdateFeatureRequest.php | 286 ---- .../GkeHub/V1/UpdateMembershipRequest.php | 287 ---- .../V1/GkeHubClient/create_feature.php | 69 - .../V1/GkeHubClient/create_membership.php | 101 -- .../V1/GkeHubClient/delete_feature.php | 66 - .../V1/GkeHubClient/delete_membership.php | 85 -- .../generate_connect_manifest.php | 75 - .../samples/V1/GkeHubClient/get_feature.php | 57 - .../V1/GkeHubClient/get_membership.php | 72 - .../samples/V1/GkeHubClient/list_features.php | 62 - .../V1/GkeHubClient/list_memberships.php | 78 -- .../V1/GkeHubClient/update_feature.php | 69 - .../V1/GkeHubClient/update_membership.php | 89 -- .../GkeHub/v1/src/V1/Client/GkeHubClient.php | 651 --------- .../GkeHub/v1/src/V1/gapic_metadata.json | 73 - .../V1/resources/gke_hub_client_config.json | 89 -- .../resources/gke_hub_descriptor_config.php | 223 --- .../resources/gke_hub_rest_client_config.php | 288 ---- .../tests/Unit/V1/Client/GkeHubClientTest.php | 1213 ----------------- 90 files changed, 54 insertions(+), 15452 deletions(-) delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php delete mode 100644 owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php delete mode 100644 owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php delete mode 100644 owl-bot-staging/GkeHub/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_client_config.json delete mode 100644 owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_descriptor_config.php delete mode 100644 owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_rest_client_config.php delete mode 100644 owl-bot-staging/GkeHub/v1/tests/Unit/V1/Client/GkeHubClientTest.php diff --git a/GkeHub/metadata/V1/Membership.php b/GkeHub/metadata/V1/Membership.php index ea4840e791dc9ada4f8b68a14cbe75f8937f289b..1aee257e39f22ad382672e9352ad019d2398bc9a 100644 GIT binary patch delta 48 zcmbO#wMA+}2NUD{&7DloSeY6bCl_!eiwenb@n>5U$ERnO#FwQO6=&w>Nw91_#o^5Y E0G2rr9RL6T delta 25 hcmdlYHC1Xu2NUCg&7DloSQ(Qi7jh(T{>0(L0sw#x31|QS diff --git a/GkeHub/src/V1/ResourceOptions.php b/GkeHub/src/V1/ResourceOptions.php index 3db8b36a653b..bb595ca99482 100644 --- a/GkeHub/src/V1/ResourceOptions.php +++ b/GkeHub/src/V1/ResourceOptions.php @@ -33,13 +33,21 @@ class ResourceOptions extends \Google\Protobuf\Internal\Message */ protected $v1beta1_crd = false; /** - * Optional. Major version of the Kubernetes cluster. This is only used to - * determine which version to use for the CustomResourceDefinition resources, - * `apiextensions/v1beta1` or`apiextensions/v1`. + * Optional. Major and minor version of the Kubernetes cluster. This is only + * used to determine which version to use for the CustomResourceDefinition + * resources, `apiextensions/v1beta1` or`apiextensions/v1`. * * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; */ protected $k8s_version = ''; + /** + * Optional. Git version of the Kubernetes cluster. This is only used to gate + * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and + * above. + * + * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $k8s_git_version = ''; /** * Constructor. @@ -57,9 +65,13 @@ class ResourceOptions extends \Google\Protobuf\Internal\Message * This option should be set for clusters with Kubernetes apiserver versions * <1.16. * @type string $k8s_version - * Optional. Major version of the Kubernetes cluster. This is only used to - * determine which version to use for the CustomResourceDefinition resources, - * `apiextensions/v1beta1` or`apiextensions/v1`. + * Optional. Major and minor version of the Kubernetes cluster. This is only + * used to determine which version to use for the CustomResourceDefinition + * resources, `apiextensions/v1beta1` or`apiextensions/v1`. + * @type string $k8s_git_version + * Optional. Git version of the Kubernetes cluster. This is only used to gate + * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and + * above. * } */ public function __construct($data = NULL) { @@ -130,9 +142,9 @@ public function setV1Beta1Crd($var) } /** - * Optional. Major version of the Kubernetes cluster. This is only used to - * determine which version to use for the CustomResourceDefinition resources, - * `apiextensions/v1beta1` or`apiextensions/v1`. + * Optional. Major and minor version of the Kubernetes cluster. This is only + * used to determine which version to use for the CustomResourceDefinition + * resources, `apiextensions/v1beta1` or`apiextensions/v1`. * * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -143,9 +155,9 @@ public function getK8SVersion() } /** - * Optional. Major version of the Kubernetes cluster. This is only used to - * determine which version to use for the CustomResourceDefinition resources, - * `apiextensions/v1beta1` or`apiextensions/v1`. + * Optional. Major and minor version of the Kubernetes cluster. This is only + * used to determine which version to use for the CustomResourceDefinition + * resources, `apiextensions/v1beta1` or`apiextensions/v1`. * * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var @@ -159,5 +171,35 @@ public function setK8SVersion($var) return $this; } + /** + * Optional. Git version of the Kubernetes cluster. This is only used to gate + * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and + * above. + * + * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getK8SGitVersion() + { + return $this->k8s_git_version; + } + + /** + * Optional. Git version of the Kubernetes cluster. This is only used to gate + * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and + * above. + * + * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setK8SGitVersion($var) + { + GPBUtil::checkString($var, True); + $this->k8s_git_version = $var; + + return $this; + } + } diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php deleted file mode 100644 index 871dfa00a5ed9d3dd228d2e8c5eb8c738291b342..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6742 zcmb_h-EQN?6^<lS;_UZvN4g5DKIq<8;ir?cg}os=A3V4 zKKj@hIPgHO5sSE*PkM6qO7;gtc3j)Hb=#D?qw{m(%DO#t43oHdS>A8Tjb>Y}?$_J* z@l($pxjHGzecSGvWLG!sQE#_@K?bAl?&aRDZd>O@f2dhnpA3oR-)P7)QvjAWB%Y(` zM6Ml|kBG1JG+*n~7;2|NQ9Ct;+Bw_nR3fNP0CZFHJURLTehV`GIis#==(6W)KK^^p z@KnPxd_yyh-{6>^%IBKt5d^u}_k3jOzF}K3{h(>-Wap90F=^lT92+@$Dv$jpL{fS@|Szczmu?fM221BdIQ5b!3ibO9az@Qk%x?{G>UQwIkA(L zj$w5ebW}Zu=(#z3ktzHmvYz+1*6|sHSHgVMo=miG-EH?Bp!$AWAh8rNTJur|3 zS07BVvBYeYV%ss^7+-9fGldUhn?eitEoDk-!}<-9M0ETz zHeQq->2tUO&dh$=Q6C}3}BLMbIaJ4EyTBc zo$&lokhYbV0Fx(a8}1&J8l_tGsM=_&r;U^2YNh_XUfo}NN6NvS(7V!UyLnV<*DGrY zX#>_nZ}8`7>2PgM`NJGQXl_1+WZ&>}Jdg^pNvj#YAZY_ucu`W%ZFi{oxfEmO4lEH% z>zbs;xJwG<2eBx^9oq78z=WnOmifl>t(!@J#tz0@9O_tV5b*2A4Rt$ZGFGhBb9v&C&-f zX48@cAi}w4xGX89rMr-29ly{FAI<9?3&W(e1}TAgnWG6IEm26KV<}PnD~IG3$BhHu zcRUr#^Xn@%8)@l2Y~4N>#2W@!$DoM!<5Xwp zbT~vTxnGZLUt_eSl)olGnPPgMIHr9?#UL*zRY(pjoyB*y5Wnz6VO~I*y!MI3vLlVF z8Nif}V0((^XFT^xnTf|~31j@a-L&%01mvcC&WGEcJS%OEm-RX(<#HxI=2&-bgGK6U6??PXQ<{6zB|w^)!9-x%@IXRz$rw$HrM-5yJF*+P72IKgAHk*~D& z`Ls}AtcU?H&5+*<@X>e?QSp&2#8=8uSDBy608)X^Td;w@)suFqU5yB)by&d-wOViB z%fmy|Pzh-T(v!zIRC$?pwRKc)ppa_R){;^dK)k2V^U9YASm4~C#+qj19&A;bjpy~6 zdh)VSQKR;#ccIr|+XxtbRc*DJE%aa$-VHY&R~!4>m7VZ1;(>6>iu-c{p#x1mUM8qd zjG<$@xSJD_Cku;os_~ht1?+(Wk?#R$oHG?Xv~hoKyG-PyX(e@Oh1Thrg~|o7E9A~5 ztkST=k~QuiB+nMCYrUc2(E_4=LAnFmzTm<~`F0-p3tWvZycx)S@R%we90W;q znAhzd5lQ;VxaW7B$K->-uwNB~kjg;?S!5OD?Wzzj+J8(yib69$%uXz8Rhs+J+zGHq zU$LZ_fu(U8nv>G7FiuqxWNE(R>FTtFedkfMMRM)}Zj6>s8@OFPXtwIFu+t(D0h#udSk=+|fe0dWC(z{VP>j375~GN@;KWtz7@M@Lig*3X3vp}_|2(AT+9OA#@fU{G zQ$B&UXd70xg+A>k+zbgx?jVwSf!}hMl)oonBf62}b?(!sH2WlW$VLIjmFIgAXf@Q} z7lhzBU!+PXk74sR%OMt6Fe(2^z}Bru5`hQ(z)bjBJYilk>17P*%)r1cp d250*};nxkJ+X;`|o=mx!U_JTu!5er3@ITr4c#Qx6 diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php deleted file mode 100644 index d26e5f8ddeaadd0c4ceb709629d1f14b3de715f3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3244 zcmbVOOK%!i6gFV&_~5vB;#dT!>MgYt+{S|-sbY;E6)zK%7!Y78wW!uGT=2xh%xE5# zT$g{-RTo|LH+0c1`WL#+ujqZuV8BCy%7)Rs=ljn4+;jY$d1b;^sDgED$qw$L-Ys&j zFfuK}F%&~XJ$Ep`7E+9nscP5~5h~SDt=>lEQnmdhf!c;^DOf^7!x(BfqiBZP&kV2e zmD|hQWHSRSJFbOAMhKwGBW#EVWILD6MmmRrVVc2ewV!IWF?RK(90E#BtHag=R za0iI|Ot+`03bGy9A%A`;+{hk?K!RGD7q79DWsGZ<(?ecDaL$@&pfnjsu|)X>m=SO z$l$HKao^g_n*1IPtZ|E$Bh*Pg;QtkU*Qgit8G zQHcDTj|fMwrpZ05*@-ZUq+_{nL{2y#3DM&a-!bX3?pU`%6}J4KT+&X$i3nki)huLE(?NIbp-<(g!ad#H`2QGKjo9|cRHk_Ql*u96r;uJJ7|I^i)y zZ)DBIq})giO5wv$62neV5`-Dt@iZ=$JMjITYgqA~X{tz=njt*BzhsrilRc~FWLA&3 zydIh-s!00jL;gqj+?yf1o5=XEMe;&tJfj4O^Svj2zET4nMM-we!|2Q`l~`^X>BGMXl8+7prI0 zaw)zdY{H{*Enj$7tySV70bng(Y*#zwc$g%1qf~8qR}m_B(J1BHRB%<;fq1Lj>{N?{ z&p(Z({tm&WXA4*Q8depf&*#%tZs8D^#)w4%5S~D+?>+q_fV{SZ%xuZ?(e#l?9!LMCibifZ3fGuts_v zn4kc8@)G&;mky~nD}^oC9PoNz(=Js5VOBYX+$e@#9S$ zB9nIhJxjd*h&S`X)Rn0=4EE-a5bWLy`RbWV?S=Xe1HJo%e#-e~MR@st0`(a@p5%Z< z?)MNRNs|ZKag#0hwcem>Ya{eS&YN9qwPw>{X!v_M85m?W=QG6Y9r+)>g?B4loNZ)c zz`FyfCz2J-Q)She; R=Ts$NM`n_IlO4kt;6K`1ApHOU diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php deleted file mode 100644 index 1aee257e39f22ad382672e9352ad019d2398bc9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3380 zcmb7HT~pge6pb+^a7~D_q14c(6;5U#nM59FA5syTf^7(s5SWB8(~f5}vb450$dalL zCp5!DpZnhFZ|Ga!I@5p9KaoD?SM=_#R&oe5)GwB_dynotd-mMbgNH#sfScMj^=N3t z)X_S}THL2v5c;ui`>xhWx?LJ-wm%4%OG91LntR&Qy#uY)+&Ngp(8y0hn;Kfr_j@j_ z+peED_1+QfC!P9mr9Pm84h^F|3v_`A;8_D21(r>k_Bcy`Qu zPvZf5o=ul;YZ8;sy%qRa^}41K+UGS#Huir2UVZ)c&sbU_7? zIXO`mQq!f>^x?|Fdoe&rc3PMq* zXDgpYB>`^XH0tt&qa5l|6*YOWD6E{mmfO%|PIU^S1hECO4zuVJv1$9BN5%G*MZm>? z=U^)F*pCV2uw?~XB;UZ4mBf8NWbtuzT3{_ILQcs~-%u0fDm{X010Nj*W4#{FtIK-T z83D0;9>i`I&=B(l(!xC`k7$6Dp?E}(rK-pkC=D$)p{OV1!Wg?>FnaGc9MIBjAw`Qj zBGS>q>$zCTcetQ0k*cWvCcQeTyS|Nf>U;Q1U7n0MI6fX^K76t{0psy;Kx@B@0m*^Y zE+7w}j7gZbn?$%|BH!|A?Yz>_@*8rdr0)q_KT5E3c&L%c9HebRl=&Z<@o^TS8jBR^ z`)JA>#MZeGnleh6+h;H%c{K-?XZ5I4<@%izud4lqY~*REKynl2a_&q!8`$}G;6je5y$3Mp$w0j9gb%#n)1cK#>Q7E~01=?6j}sVkoEFe;}#IbRT0 z`?&yDPYsaI;i^h=hzAAkXqjOaxYrF=I=K2P$eAOSU+^qOj_yaMipgBCz!CXKkHy(2 z_i*VHwFgj9DJZ^31t#BL4l)Nbsc_B6_5)mEzQHDITL8II$pT!-h;f;BlxJQNbxA>+ z0~SSS0(thu+S|gYN|ad19k?-~dfc{VL_;hwDrDnsk&59|JPhe6xPF_Tb%)({mAK3zz$Rf;-u!PA$U_*nkt~tX%n>#)=sNgxkRR6vhl37aj^4ryHX%iP{Nz$_mwd|&}=st85e&L7Jv`>ojy=X!`Uwt2-!0{77 zwyL1BrY?RTo7^Mez!&p4%vner@s0w)0f0%0{EoB#j- diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php deleted file mode 100644 index e48863d0ce20..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - ' -à -Dgoogle/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto*google.cloud.gkehub.multiclusteringress.v1"( - FeatureSpec -config_membership ( B¹ -.com.google.cloud.gkehub.multiclusteringress.v1BMultiClusterIngressProtoPZ`cloud.google.com/go/gkehub/multiclusteringress/apiv1/multiclusteringresspb;multiclusteringresspbª*Google.Cloud.GkeHub.MultiClusterIngress.V1Ê*Google\\Cloud\\GkeHub\\MultiClusterIngress\\V1ê.Google::Cloud::GkeHub::MultiClusterIngress::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php deleted file mode 100644 index 2401f2d81a41..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php +++ /dev/null @@ -1,149 +0,0 @@ -internalAddGeneratedFile( - ' -—) -$google/cloud/gkehub/v1/service.protogoogle.cloud.gkehub.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto$google/cloud/gkehub/v1/feature.proto\'google/cloud/gkehub/v1/membership.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"¯ -ListMembershipsRequest8 -parent ( B(àAúA" gkehub.googleapis.com/Membership - page_size (BàA - -page_token ( BàA -filter ( BàA -order_by ( BàA"~ -ListMembershipsResponse5 - resources ( 2".google.cloud.gkehub.v1.Membership -next_page_token (  - unreachable ( "N -GetMembershipRequest6 -name ( B(àAúA" - gkehub.googleapis.com/Membership"à -CreateMembershipRequest8 -parent ( B(àAúA" gkehub.googleapis.com/Membership - membership_id ( BàA9 -resource ( 2".google.cloud.gkehub.v1.MembershipBàA - -request_id ( BàA"~ -DeleteMembershipRequest6 -name ( B(àAúA" - gkehub.googleapis.com/Membership - -request_id ( BàA -force (BàA"Û -UpdateMembershipRequest6 -name ( B(àAúA" - gkehub.googleapis.com/Membership4 - update_mask ( 2.google.protobuf.FieldMaskBàA9 -resource ( 2".google.cloud.gkehub.v1.MembershipBàA - -request_id ( BàA"ò -GenerateConnectManifestRequest6 -name ( B(àAúA" - gkehub.googleapis.com/Membership - namespace ( BàA -proxy ( BàA -version ( BàA - -is_upgrade (BàA -registry ( BàA& -image_pull_secret_content ( BàA"a -GenerateConnectManifestResponse> -manifest ( 2,.google.cloud.gkehub.v1.ConnectAgentResource"X -ConnectAgentResource. -type ( 2 .google.cloud.gkehub.v1.TypeMeta -manifest ( "- -TypeMeta -kind (  - api_version ( "’ -ListFeaturesRequest2 -parent ( B"úAgkehub.googleapis.com/Feature - page_size ( - -page_token (  -filter (  -order_by ( "c -ListFeaturesResponse2 - resources ( 2.google.cloud.gkehub.v1.Feature -next_page_token ( "E -GetFeatureRequest0 -name ( B"úA -gkehub.googleapis.com/Feature"¥ -CreateFeatureRequest2 -parent ( B"úAgkehub.googleapis.com/Feature - -feature_id ( 1 -resource ( 2.google.cloud.gkehub.v1.Feature - -request_id ( "p -DeleteFeatureRequest0 -name ( B"úA -gkehub.googleapis.com/Feature -force ( - -request_id ( BàA"À -UpdateFeatureRequest0 -name ( B"úA -gkehub.googleapis.com/Feature/ - update_mask ( 2.google.protobuf.FieldMask1 -resource ( 2.google.cloud.gkehub.v1.Feature - -request_id ( "ù -OperationMetadata4 - create_time ( 2.google.protobuf.TimestampBàA1 -end_time ( 2.google.protobuf.TimestampBàA -target ( BàA -verb ( BàA - status_detail ( BàA -cancel_requested (BàA - api_version ( BàA2ð -GkeHub´ -ListMemberships..google.cloud.gkehub.v1.ListMembershipsRequest/.google.cloud.gkehub.v1.ListMembershipsResponse"@ÚAparent‚Óä“1//v1/{parent=projects/*/locations/*}/memberships¨ - ListFeatures+.google.cloud.gkehub.v1.ListFeaturesRequest,.google.cloud.gkehub.v1.ListFeaturesResponse"=ÚAparent‚Óä“.,/v1/{parent=projects/*/locations/*}/features¡ - GetMembership,.google.cloud.gkehub.v1.GetMembershipRequest".google.cloud.gkehub.v1.Membership">ÚAname‚Óä“1//v1/{name=projects/*/locations/*/memberships/*}• - -GetFeature).google.cloud.gkehub.v1.GetFeatureRequest.google.cloud.gkehub.v1.Feature";ÚAname‚Óä“.,/v1/{name=projects/*/locations/*/features/*}è -CreateMembership/.google.cloud.gkehub.v1.CreateMembershipRequest.google.longrunning.Operation"ƒÊA - -MembershipOperationMetadataÚAparent,resource,membership_id‚Óä“;"//v1/{parent=projects/*/locations/*}/memberships:resourceØ - CreateFeature,.google.cloud.gkehub.v1.CreateFeatureRequest.google.longrunning.Operation"zÊA -FeatureOperationMetadataÚAparent,resource,feature_id‚Óä“8",/v1/{parent=projects/*/locations/*}/features:resourceÏ -DeleteMembership/.google.cloud.gkehub.v1.DeleteMembershipRequest.google.longrunning.Operation"kÊA* -google.protobuf.EmptyOperationMetadataÚAname‚Óä“1*//v1/{name=projects/*/locations/*/memberships/*}Æ - DeleteFeature,.google.cloud.gkehub.v1.DeleteFeatureRequest.google.longrunning.Operation"hÊA* -google.protobuf.EmptyOperationMetadataÚAname‚Óä“.*,/v1/{name=projects/*/locations/*/features/*}ã -UpdateMembership/.google.cloud.gkehub.v1.UpdateMembershipRequest.google.longrunning.Operation"ÊA - -MembershipOperationMetadataÚAname,resource,update_mask‚Óä“;2//v1/{name=projects/*/locations/*/memberships/*}:resource× - UpdateFeature,.google.cloud.gkehub.v1.UpdateFeatureRequest.google.longrunning.Operation"yÊA -FeatureOperationMetadataÚAname,resource,update_mask‚Óä“82,/v1/{name=projects/*/locations/*/features/*}:resourceÛ -GenerateConnectManifest6.google.cloud.gkehub.v1.GenerateConnectManifestRequest7.google.cloud.gkehub.v1.GenerateConnectManifestResponse"O‚Óä“IG/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifestIÊAgkehub.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB® -com.google.cloud.gkehub.v1B ServiceProtoPZ2cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpbªGoogle.Cloud.GkeHub.V1ÊGoogle\\Cloud\\GkeHub\\V1êGoogle::Cloud::GkeHub::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php deleted file mode 100644 index eba4ae705143..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php +++ /dev/null @@ -1,323 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.ConfigSync - */ -class ConfigSync extends \Google\Protobuf\Internal\Message -{ - /** - * Git repo configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - */ - protected $git = null; - /** - * Specifies whether the Config Sync Repo is - * in "hierarchical" or "unstructured" mode. - * - * Generated from protobuf field string source_format = 8; - */ - protected $source_format = ''; - /** - * Enables the installation of ConfigSync. - * If set to true, ConfigSync resources will be created and the other - * ConfigSync fields will be applied if exist. - * If set to false, all other ConfigSync fields will be ignored, ConfigSync - * resources will be deleted. - * If omitted, ConfigSync resources will be managed depends on the presence - * of the git or oci field. - * - * Generated from protobuf field optional bool enabled = 10; - */ - protected $enabled = null; - /** - * Set to true to enable the Config Sync admission webhook to prevent drifts. - * If set to `false`, disables the Config Sync admission webhook and does not - * prevent drifts. - * - * Generated from protobuf field bool prevent_drift = 11; - */ - protected $prevent_drift = false; - /** - * OCI repo configuration for the cluster - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; - */ - protected $oci = null; - /** - * The Email of the Google Cloud Service Account (GSA) used for exporting - * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. - * The GSA should have the Monitoring Metric Writer - * (roles/monitoring.metricWriter) IAM role. - * The Kubernetes ServiceAccount `default` in the namespace - * `config-management-monitoring` should be bound to the GSA. - * - * Generated from protobuf field string metrics_gcp_service_account_email = 15; - */ - protected $metrics_gcp_service_account_email = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig $git - * Git repo configuration for the cluster. - * @type string $source_format - * Specifies whether the Config Sync Repo is - * in "hierarchical" or "unstructured" mode. - * @type bool $enabled - * Enables the installation of ConfigSync. - * If set to true, ConfigSync resources will be created and the other - * ConfigSync fields will be applied if exist. - * If set to false, all other ConfigSync fields will be ignored, ConfigSync - * resources will be deleted. - * If omitted, ConfigSync resources will be managed depends on the presence - * of the git or oci field. - * @type bool $prevent_drift - * Set to true to enable the Config Sync admission webhook to prevent drifts. - * If set to `false`, disables the Config Sync admission webhook and does not - * prevent drifts. - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig $oci - * OCI repo configuration for the cluster - * @type string $metrics_gcp_service_account_email - * The Email of the Google Cloud Service Account (GSA) used for exporting - * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. - * The GSA should have the Monitoring Metric Writer - * (roles/monitoring.metricWriter) IAM role. - * The Kubernetes ServiceAccount `default` in the namespace - * `config-management-monitoring` should be bound to the GSA. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Git repo configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig|null - */ - public function getGit() - { - return $this->git; - } - - public function hasGit() - { - return isset($this->git); - } - - public function clearGit() - { - unset($this->git); - } - - /** - * Git repo configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig $var - * @return $this - */ - public function setGit($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig::class); - $this->git = $var; - - return $this; - } - - /** - * Specifies whether the Config Sync Repo is - * in "hierarchical" or "unstructured" mode. - * - * Generated from protobuf field string source_format = 8; - * @return string - */ - public function getSourceFormat() - { - return $this->source_format; - } - - /** - * Specifies whether the Config Sync Repo is - * in "hierarchical" or "unstructured" mode. - * - * Generated from protobuf field string source_format = 8; - * @param string $var - * @return $this - */ - public function setSourceFormat($var) - { - GPBUtil::checkString($var, True); - $this->source_format = $var; - - return $this; - } - - /** - * Enables the installation of ConfigSync. - * If set to true, ConfigSync resources will be created and the other - * ConfigSync fields will be applied if exist. - * If set to false, all other ConfigSync fields will be ignored, ConfigSync - * resources will be deleted. - * If omitted, ConfigSync resources will be managed depends on the presence - * of the git or oci field. - * - * Generated from protobuf field optional bool enabled = 10; - * @return bool - */ - public function getEnabled() - { - return isset($this->enabled) ? $this->enabled : false; - } - - public function hasEnabled() - { - return isset($this->enabled); - } - - public function clearEnabled() - { - unset($this->enabled); - } - - /** - * Enables the installation of ConfigSync. - * If set to true, ConfigSync resources will be created and the other - * ConfigSync fields will be applied if exist. - * If set to false, all other ConfigSync fields will be ignored, ConfigSync - * resources will be deleted. - * If omitted, ConfigSync resources will be managed depends on the presence - * of the git or oci field. - * - * Generated from protobuf field optional bool enabled = 10; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Set to true to enable the Config Sync admission webhook to prevent drifts. - * If set to `false`, disables the Config Sync admission webhook and does not - * prevent drifts. - * - * Generated from protobuf field bool prevent_drift = 11; - * @return bool - */ - public function getPreventDrift() - { - return $this->prevent_drift; - } - - /** - * Set to true to enable the Config Sync admission webhook to prevent drifts. - * If set to `false`, disables the Config Sync admission webhook and does not - * prevent drifts. - * - * Generated from protobuf field bool prevent_drift = 11; - * @param bool $var - * @return $this - */ - public function setPreventDrift($var) - { - GPBUtil::checkBool($var); - $this->prevent_drift = $var; - - return $this; - } - - /** - * OCI repo configuration for the cluster - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig|null - */ - public function getOci() - { - return $this->oci; - } - - public function hasOci() - { - return isset($this->oci); - } - - public function clearOci() - { - unset($this->oci); - } - - /** - * OCI repo configuration for the cluster - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig $var - * @return $this - */ - public function setOci($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig::class); - $this->oci = $var; - - return $this; - } - - /** - * The Email of the Google Cloud Service Account (GSA) used for exporting - * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. - * The GSA should have the Monitoring Metric Writer - * (roles/monitoring.metricWriter) IAM role. - * The Kubernetes ServiceAccount `default` in the namespace - * `config-management-monitoring` should be bound to the GSA. - * - * Generated from protobuf field string metrics_gcp_service_account_email = 15; - * @return string - */ - public function getMetricsGcpServiceAccountEmail() - { - return $this->metrics_gcp_service_account_email; - } - - /** - * The Email of the Google Cloud Service Account (GSA) used for exporting - * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. - * The GSA should have the Monitoring Metric Writer - * (roles/monitoring.metricWriter) IAM role. - * The Kubernetes ServiceAccount `default` in the namespace - * `config-management-monitoring` should be bound to the GSA. - * - * Generated from protobuf field string metrics_gcp_service_account_email = 15; - * @param string $var - * @return $this - */ - public function setMetricsGcpServiceAccountEmail($var) - { - GPBUtil::checkString($var, True); - $this->metrics_gcp_service_account_email = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php deleted file mode 100644 index 828c82a203d3..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - */ -class ConfigSyncDeploymentState extends \Google\Protobuf\Internal\Message -{ - /** - * Deployment state of the importer pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - */ - protected $importer = 0; - /** - * Deployment state of the syncer pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - */ - protected $syncer = 0; - /** - * Deployment state of the git-sync pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - */ - protected $git_sync = 0; - /** - * Deployment state of the monitor pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - */ - protected $monitor = 0; - /** - * Deployment state of reconciler-manager pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - */ - protected $reconciler_manager = 0; - /** - * Deployment state of root-reconciler - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - */ - protected $root_reconciler = 0; - /** - * Deployment state of admission-webhook - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; - */ - protected $admission_webhook = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $importer - * Deployment state of the importer pod - * @type int $syncer - * Deployment state of the syncer pod - * @type int $git_sync - * Deployment state of the git-sync pod - * @type int $monitor - * Deployment state of the monitor pod - * @type int $reconciler_manager - * Deployment state of reconciler-manager pod - * @type int $root_reconciler - * Deployment state of root-reconciler - * @type int $admission_webhook - * Deployment state of admission-webhook - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Deployment state of the importer pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * @return int - */ - public function getImporter() - { - return $this->importer; - } - - /** - * Deployment state of the importer pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * @param int $var - * @return $this - */ - public function setImporter($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->importer = $var; - - return $this; - } - - /** - * Deployment state of the syncer pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * @return int - */ - public function getSyncer() - { - return $this->syncer; - } - - /** - * Deployment state of the syncer pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * @param int $var - * @return $this - */ - public function setSyncer($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->syncer = $var; - - return $this; - } - - /** - * Deployment state of the git-sync pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * @return int - */ - public function getGitSync() - { - return $this->git_sync; - } - - /** - * Deployment state of the git-sync pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * @param int $var - * @return $this - */ - public function setGitSync($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->git_sync = $var; - - return $this; - } - - /** - * Deployment state of the monitor pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * @return int - */ - public function getMonitor() - { - return $this->monitor; - } - - /** - * Deployment state of the monitor pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * @param int $var - * @return $this - */ - public function setMonitor($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->monitor = $var; - - return $this; - } - - /** - * Deployment state of reconciler-manager pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * @return int - */ - public function getReconcilerManager() - { - return $this->reconciler_manager; - } - - /** - * Deployment state of reconciler-manager pod - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * @param int $var - * @return $this - */ - public function setReconcilerManager($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->reconciler_manager = $var; - - return $this; - } - - /** - * Deployment state of root-reconciler - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * @return int - */ - public function getRootReconciler() - { - return $this->root_reconciler; - } - - /** - * Deployment state of root-reconciler - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * @param int $var - * @return $this - */ - public function setRootReconciler($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->root_reconciler = $var; - - return $this; - } - - /** - * Deployment state of admission-webhook - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; - * @return int - */ - public function getAdmissionWebhook() - { - return $this->admission_webhook; - } - - /** - * Deployment state of admission-webhook - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; - * @param int $var - * @return $this - */ - public function setAdmissionWebhook($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->admission_webhook = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php deleted file mode 100644 index 2aefa6086d1e..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.ConfigSyncError - */ -class ConfigSyncError extends \Google\Protobuf\Internal\Message -{ - /** - * A string representing the user facing error message - * - * Generated from protobuf field string error_message = 1; - */ - protected $error_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $error_message - * A string representing the user facing error message - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * A string representing the user facing error message - * - * Generated from protobuf field string error_message = 1; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * A string representing the user facing error message - * - * Generated from protobuf field string error_message = 1; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php deleted file mode 100644 index d2fb6690daf1..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php +++ /dev/null @@ -1,309 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.ConfigSyncState - */ -class ConfigSyncState extends \Google\Protobuf\Internal\Message -{ - /** - * The version of ConfigSync deployed - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - */ - protected $version = null; - /** - * Information about the deployment of ConfigSync, including the version - * of the various Pods deployed - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - */ - protected $deployment_state = null; - /** - * The state of ConfigSync's process to sync configs to a cluster - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - */ - protected $sync_state = null; - /** - * Errors pertaining to the installation of Config Sync. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; - */ - private $errors; - /** - * The state of the RootSync CRD - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; - */ - protected $rootsync_crd = 0; - /** - * The state of the Reposync CRD - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; - */ - protected $reposync_crd = 0; - /** - * The state of CS - * This field summarizes the other fields in this message. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion $version - * The version of ConfigSync deployed - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState $deployment_state - * Information about the deployment of ConfigSync, including the version - * of the various Pods deployed - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState $sync_state - * The state of ConfigSync's process to sync configs to a cluster - * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError>|\Google\Protobuf\Internal\RepeatedField $errors - * Errors pertaining to the installation of Config Sync. - * @type int $rootsync_crd - * The state of the RootSync CRD - * @type int $reposync_crd - * The state of the Reposync CRD - * @type int $state - * The state of CS - * This field summarizes the other fields in this message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * The version of ConfigSync deployed - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * The version of ConfigSync deployed - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion::class); - $this->version = $var; - - return $this; - } - - /** - * Information about the deployment of ConfigSync, including the version - * of the various Pods deployed - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState|null - */ - public function getDeploymentState() - { - return $this->deployment_state; - } - - public function hasDeploymentState() - { - return isset($this->deployment_state); - } - - public function clearDeploymentState() - { - unset($this->deployment_state); - } - - /** - * Information about the deployment of ConfigSync, including the version - * of the various Pods deployed - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState $var - * @return $this - */ - public function setDeploymentState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState::class); - $this->deployment_state = $var; - - return $this; - } - - /** - * The state of ConfigSync's process to sync configs to a cluster - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState|null - */ - public function getSyncState() - { - return $this->sync_state; - } - - public function hasSyncState() - { - return isset($this->sync_state); - } - - public function clearSyncState() - { - unset($this->sync_state); - } - - /** - * The state of ConfigSync's process to sync configs to a cluster - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState $var - * @return $this - */ - public function setSyncState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState::class); - $this->sync_state = $var; - - return $this; - } - - /** - * Errors pertaining to the installation of Config Sync. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Errors pertaining to the installation of Config Sync. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; - * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError::class); - $this->errors = $arr; - - return $this; - } - - /** - * The state of the RootSync CRD - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; - * @return int - */ - public function getRootsyncCrd() - { - return $this->rootsync_crd; - } - - /** - * The state of the RootSync CRD - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; - * @param int $var - * @return $this - */ - public function setRootsyncCrd($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\CRDState::class); - $this->rootsync_crd = $var; - - return $this; - } - - /** - * The state of the Reposync CRD - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; - * @return int - */ - public function getReposyncCrd() - { - return $this->reposync_crd; - } - - /** - * The state of the Reposync CRD - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; - * @param int $var - * @return $this - */ - public function setReposyncCrd($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\CRDState::class); - $this->reposync_crd = $var; - - return $this; - } - - /** - * The state of CS - * This field summarizes the other fields in this message. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of CS - * This field summarizes the other fields in this message. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php deleted file mode 100644 index 2876176a286e..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState - */ -class CRDState -{ - /** - * CRD's state cannot be determined - * - * Generated from protobuf enum CRD_STATE_UNSPECIFIED = 0; - */ - const CRD_STATE_UNSPECIFIED = 0; - /** - * CRD is not installed - * - * Generated from protobuf enum NOT_INSTALLED = 1; - */ - const NOT_INSTALLED = 1; - /** - * CRD is installed - * - * Generated from protobuf enum INSTALLED = 2; - */ - const INSTALLED = 2; - /** - * CRD is terminating (i.e., it has been deleted and is cleaning up) - * - * Generated from protobuf enum TERMINATING = 3; - */ - const TERMINATING = 3; - /** - * CRD is installing - * - * Generated from protobuf enum INSTALLING = 4; - */ - const INSTALLING = 4; - - private static $valueToName = [ - self::CRD_STATE_UNSPECIFIED => 'CRD_STATE_UNSPECIFIED', - self::NOT_INSTALLED => 'NOT_INSTALLED', - self::INSTALLED => 'INSTALLED', - self::TERMINATING => 'TERMINATING', - self::INSTALLING => 'INSTALLING', - ]; - - 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(CRDState::class, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState_CRDState::class); - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php deleted file mode 100644 index 090be33ad0df..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State - */ -class State -{ - /** - * CS's state cannot be determined. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * CS is not installed. - * - * Generated from protobuf enum CONFIG_SYNC_NOT_INSTALLED = 1; - */ - const CONFIG_SYNC_NOT_INSTALLED = 1; - /** - * The expected CS version is installed successfully. - * - * Generated from protobuf enum CONFIG_SYNC_INSTALLED = 2; - */ - const CONFIG_SYNC_INSTALLED = 2; - /** - * CS encounters errors. - * - * Generated from protobuf enum CONFIG_SYNC_ERROR = 3; - */ - const CONFIG_SYNC_ERROR = 3; - /** - * CS is installing or terminating. - * - * Generated from protobuf enum CONFIG_SYNC_PENDING = 4; - */ - const CONFIG_SYNC_PENDING = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CONFIG_SYNC_NOT_INSTALLED => 'CONFIG_SYNC_NOT_INSTALLED', - self::CONFIG_SYNC_INSTALLED => 'CONFIG_SYNC_INSTALLED', - self::CONFIG_SYNC_ERROR => 'CONFIG_SYNC_ERROR', - self::CONFIG_SYNC_PENDING => 'CONFIG_SYNC_PENDING', - ]; - - 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\GkeHub\ConfigManagement\V1\ConfigSyncState_State::class); - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php deleted file mode 100644 index b89d0a14f997..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion - */ -class ConfigSyncVersion extends \Google\Protobuf\Internal\Message -{ - /** - * Version of the deployed importer pod - * - * Generated from protobuf field string importer = 1; - */ - protected $importer = ''; - /** - * Version of the deployed syncer pod - * - * Generated from protobuf field string syncer = 2; - */ - protected $syncer = ''; - /** - * Version of the deployed git-sync pod - * - * Generated from protobuf field string git_sync = 3; - */ - protected $git_sync = ''; - /** - * Version of the deployed monitor pod - * - * Generated from protobuf field string monitor = 4; - */ - protected $monitor = ''; - /** - * Version of the deployed reconciler-manager pod - * - * Generated from protobuf field string reconciler_manager = 5; - */ - protected $reconciler_manager = ''; - /** - * Version of the deployed reconciler container in root-reconciler pod - * - * Generated from protobuf field string root_reconciler = 6; - */ - protected $root_reconciler = ''; - /** - * Version of the deployed admission_webhook pod - * - * Generated from protobuf field string admission_webhook = 7; - */ - protected $admission_webhook = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $importer - * Version of the deployed importer pod - * @type string $syncer - * Version of the deployed syncer pod - * @type string $git_sync - * Version of the deployed git-sync pod - * @type string $monitor - * Version of the deployed monitor pod - * @type string $reconciler_manager - * Version of the deployed reconciler-manager pod - * @type string $root_reconciler - * Version of the deployed reconciler container in root-reconciler pod - * @type string $admission_webhook - * Version of the deployed admission_webhook pod - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Version of the deployed importer pod - * - * Generated from protobuf field string importer = 1; - * @return string - */ - public function getImporter() - { - return $this->importer; - } - - /** - * Version of the deployed importer pod - * - * Generated from protobuf field string importer = 1; - * @param string $var - * @return $this - */ - public function setImporter($var) - { - GPBUtil::checkString($var, True); - $this->importer = $var; - - return $this; - } - - /** - * Version of the deployed syncer pod - * - * Generated from protobuf field string syncer = 2; - * @return string - */ - public function getSyncer() - { - return $this->syncer; - } - - /** - * Version of the deployed syncer pod - * - * Generated from protobuf field string syncer = 2; - * @param string $var - * @return $this - */ - public function setSyncer($var) - { - GPBUtil::checkString($var, True); - $this->syncer = $var; - - return $this; - } - - /** - * Version of the deployed git-sync pod - * - * Generated from protobuf field string git_sync = 3; - * @return string - */ - public function getGitSync() - { - return $this->git_sync; - } - - /** - * Version of the deployed git-sync pod - * - * Generated from protobuf field string git_sync = 3; - * @param string $var - * @return $this - */ - public function setGitSync($var) - { - GPBUtil::checkString($var, True); - $this->git_sync = $var; - - return $this; - } - - /** - * Version of the deployed monitor pod - * - * Generated from protobuf field string monitor = 4; - * @return string - */ - public function getMonitor() - { - return $this->monitor; - } - - /** - * Version of the deployed monitor pod - * - * Generated from protobuf field string monitor = 4; - * @param string $var - * @return $this - */ - public function setMonitor($var) - { - GPBUtil::checkString($var, True); - $this->monitor = $var; - - return $this; - } - - /** - * Version of the deployed reconciler-manager pod - * - * Generated from protobuf field string reconciler_manager = 5; - * @return string - */ - public function getReconcilerManager() - { - return $this->reconciler_manager; - } - - /** - * Version of the deployed reconciler-manager pod - * - * Generated from protobuf field string reconciler_manager = 5; - * @param string $var - * @return $this - */ - public function setReconcilerManager($var) - { - GPBUtil::checkString($var, True); - $this->reconciler_manager = $var; - - return $this; - } - - /** - * Version of the deployed reconciler container in root-reconciler pod - * - * Generated from protobuf field string root_reconciler = 6; - * @return string - */ - public function getRootReconciler() - { - return $this->root_reconciler; - } - - /** - * Version of the deployed reconciler container in root-reconciler pod - * - * Generated from protobuf field string root_reconciler = 6; - * @param string $var - * @return $this - */ - public function setRootReconciler($var) - { - GPBUtil::checkString($var, True); - $this->root_reconciler = $var; - - return $this; - } - - /** - * Version of the deployed admission_webhook pod - * - * Generated from protobuf field string admission_webhook = 7; - * @return string - */ - public function getAdmissionWebhook() - { - return $this->admission_webhook; - } - - /** - * Version of the deployed admission_webhook pod - * - * Generated from protobuf field string admission_webhook = 7; - * @param string $var - * @return $this - */ - public function setAdmissionWebhook($var) - { - GPBUtil::checkString($var, True); - $this->admission_webhook = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php deleted file mode 100644 index 802546aeafdd..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.DeploymentState - */ -class DeploymentState -{ - /** - * Deployment's state cannot be determined - * - * Generated from protobuf enum DEPLOYMENT_STATE_UNSPECIFIED = 0; - */ - const DEPLOYMENT_STATE_UNSPECIFIED = 0; - /** - * Deployment is not installed - * - * Generated from protobuf enum NOT_INSTALLED = 1; - */ - const NOT_INSTALLED = 1; - /** - * Deployment is installed - * - * Generated from protobuf enum INSTALLED = 2; - */ - const INSTALLED = 2; - /** - * Deployment was attempted to be installed, but has errors - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - /** - * Deployment is installing or terminating - * - * Generated from protobuf enum PENDING = 4; - */ - const PENDING = 4; - - private static $valueToName = [ - self::DEPLOYMENT_STATE_UNSPECIFIED => 'DEPLOYMENT_STATE_UNSPECIFIED', - self::NOT_INSTALLED => 'NOT_INSTALLED', - self::INSTALLED => 'INSTALLED', - self::ERROR => 'ERROR', - self::PENDING => 'PENDING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php deleted file mode 100644 index 2eccf955ae58..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.ErrorResource - */ -class ErrorResource extends \Google\Protobuf\Internal\Message -{ - /** - * Path in the git repo of the erroneous config - * - * Generated from protobuf field string source_path = 1; - */ - protected $source_path = ''; - /** - * Metadata name of the resource that is causing an error - * - * Generated from protobuf field string resource_name = 2; - */ - protected $resource_name = ''; - /** - * Namespace of the resource that is causing an error - * - * Generated from protobuf field string resource_namespace = 3; - */ - protected $resource_namespace = ''; - /** - * Group/version/kind of the resource that is causing an error - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - */ - protected $resource_gvk = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_path - * Path in the git repo of the erroneous config - * @type string $resource_name - * Metadata name of the resource that is causing an error - * @type string $resource_namespace - * Namespace of the resource that is causing an error - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind $resource_gvk - * Group/version/kind of the resource that is causing an error - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Path in the git repo of the erroneous config - * - * Generated from protobuf field string source_path = 1; - * @return string - */ - public function getSourcePath() - { - return $this->source_path; - } - - /** - * Path in the git repo of the erroneous config - * - * Generated from protobuf field string source_path = 1; - * @param string $var - * @return $this - */ - public function setSourcePath($var) - { - GPBUtil::checkString($var, True); - $this->source_path = $var; - - return $this; - } - - /** - * Metadata name of the resource that is causing an error - * - * Generated from protobuf field string resource_name = 2; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * Metadata name of the resource that is causing an error - * - * Generated from protobuf field string resource_name = 2; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Namespace of the resource that is causing an error - * - * Generated from protobuf field string resource_namespace = 3; - * @return string - */ - public function getResourceNamespace() - { - return $this->resource_namespace; - } - - /** - * Namespace of the resource that is causing an error - * - * Generated from protobuf field string resource_namespace = 3; - * @param string $var - * @return $this - */ - public function setResourceNamespace($var) - { - GPBUtil::checkString($var, True); - $this->resource_namespace = $var; - - return $this; - } - - /** - * Group/version/kind of the resource that is causing an error - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind|null - */ - public function getResourceGvk() - { - return $this->resource_gvk; - } - - public function hasResourceGvk() - { - return isset($this->resource_gvk); - } - - public function clearResourceGvk() - { - unset($this->resource_gvk); - } - - /** - * Group/version/kind of the resource that is causing an error - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind $var - * @return $this - */ - public function setResourceGvk($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind::class); - $this->resource_gvk = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php deleted file mode 100644 index 711ded4041be..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - */ -class GatekeeperDeploymentState extends \Google\Protobuf\Internal\Message -{ - /** - * Status of gatekeeper-controller-manager pod. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - */ - protected $gatekeeper_controller_manager_state = 0; - /** - * Status of gatekeeper-audit deployment. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - */ - protected $gatekeeper_audit = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $gatekeeper_controller_manager_state - * Status of gatekeeper-controller-manager pod. - * @type int $gatekeeper_audit - * Status of gatekeeper-audit deployment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Status of gatekeeper-controller-manager pod. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * @return int - */ - public function getGatekeeperControllerManagerState() - { - return $this->gatekeeper_controller_manager_state; - } - - /** - * Status of gatekeeper-controller-manager pod. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * @param int $var - * @return $this - */ - public function setGatekeeperControllerManagerState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->gatekeeper_controller_manager_state = $var; - - return $this; - } - - /** - * Status of gatekeeper-audit deployment. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * @return int - */ - public function getGatekeeperAudit() - { - return $this->gatekeeper_audit; - } - - /** - * Status of gatekeeper-audit deployment. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * @param int $var - * @return $this - */ - public function setGatekeeperAudit($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->gatekeeper_audit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php deleted file mode 100644 index e31ce65e990b..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php +++ /dev/null @@ -1,321 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.GitConfig - */ -class GitConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The URL of the Git repository to use as the source of truth. - * - * Generated from protobuf field string sync_repo = 1; - */ - protected $sync_repo = ''; - /** - * The branch of the repository to sync from. Default: master. - * - * Generated from protobuf field string sync_branch = 2; - */ - protected $sync_branch = ''; - /** - * The path within the Git repository that represents the top level of the - * repo to sync. Default: the root directory of the repository. - * - * Generated from protobuf field string policy_dir = 3; - */ - protected $policy_dir = ''; - /** - * Period in seconds between consecutive syncs. Default: 15. - * - * Generated from protobuf field int64 sync_wait_secs = 4; - */ - protected $sync_wait_secs = 0; - /** - * Git revision (tag or hash) to check out. Default HEAD. - * - * Generated from protobuf field string sync_rev = 5; - */ - protected $sync_rev = ''; - /** - * Type of secret configured for access to the Git repo. Must be one of ssh, - * cookiefile, gcenode, token, gcpserviceaccount or none. The - * validation of this is case-sensitive. Required. - * - * Generated from protobuf field string secret_type = 6; - */ - protected $secret_type = ''; - /** - * URL for the HTTPS proxy to be used when communicating with the Git repo. - * - * Generated from protobuf field string https_proxy = 7; - */ - protected $https_proxy = ''; - /** - * The Google Cloud Service Account Email used for auth when secret_type is - * gcpServiceAccount. - * - * Generated from protobuf field string gcp_service_account_email = 8; - */ - protected $gcp_service_account_email = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sync_repo - * The URL of the Git repository to use as the source of truth. - * @type string $sync_branch - * The branch of the repository to sync from. Default: master. - * @type string $policy_dir - * The path within the Git repository that represents the top level of the - * repo to sync. Default: the root directory of the repository. - * @type int|string $sync_wait_secs - * Period in seconds between consecutive syncs. Default: 15. - * @type string $sync_rev - * Git revision (tag or hash) to check out. Default HEAD. - * @type string $secret_type - * Type of secret configured for access to the Git repo. Must be one of ssh, - * cookiefile, gcenode, token, gcpserviceaccount or none. The - * validation of this is case-sensitive. Required. - * @type string $https_proxy - * URL for the HTTPS proxy to be used when communicating with the Git repo. - * @type string $gcp_service_account_email - * The Google Cloud Service Account Email used for auth when secret_type is - * gcpServiceAccount. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * The URL of the Git repository to use as the source of truth. - * - * Generated from protobuf field string sync_repo = 1; - * @return string - */ - public function getSyncRepo() - { - return $this->sync_repo; - } - - /** - * The URL of the Git repository to use as the source of truth. - * - * Generated from protobuf field string sync_repo = 1; - * @param string $var - * @return $this - */ - public function setSyncRepo($var) - { - GPBUtil::checkString($var, True); - $this->sync_repo = $var; - - return $this; - } - - /** - * The branch of the repository to sync from. Default: master. - * - * Generated from protobuf field string sync_branch = 2; - * @return string - */ - public function getSyncBranch() - { - return $this->sync_branch; - } - - /** - * The branch of the repository to sync from. Default: master. - * - * Generated from protobuf field string sync_branch = 2; - * @param string $var - * @return $this - */ - public function setSyncBranch($var) - { - GPBUtil::checkString($var, True); - $this->sync_branch = $var; - - return $this; - } - - /** - * The path within the Git repository that represents the top level of the - * repo to sync. Default: the root directory of the repository. - * - * Generated from protobuf field string policy_dir = 3; - * @return string - */ - public function getPolicyDir() - { - return $this->policy_dir; - } - - /** - * The path within the Git repository that represents the top level of the - * repo to sync. Default: the root directory of the repository. - * - * Generated from protobuf field string policy_dir = 3; - * @param string $var - * @return $this - */ - public function setPolicyDir($var) - { - GPBUtil::checkString($var, True); - $this->policy_dir = $var; - - return $this; - } - - /** - * Period in seconds between consecutive syncs. Default: 15. - * - * Generated from protobuf field int64 sync_wait_secs = 4; - * @return int|string - */ - public function getSyncWaitSecs() - { - return $this->sync_wait_secs; - } - - /** - * Period in seconds between consecutive syncs. Default: 15. - * - * Generated from protobuf field int64 sync_wait_secs = 4; - * @param int|string $var - * @return $this - */ - public function setSyncWaitSecs($var) - { - GPBUtil::checkInt64($var); - $this->sync_wait_secs = $var; - - return $this; - } - - /** - * Git revision (tag or hash) to check out. Default HEAD. - * - * Generated from protobuf field string sync_rev = 5; - * @return string - */ - public function getSyncRev() - { - return $this->sync_rev; - } - - /** - * Git revision (tag or hash) to check out. Default HEAD. - * - * Generated from protobuf field string sync_rev = 5; - * @param string $var - * @return $this - */ - public function setSyncRev($var) - { - GPBUtil::checkString($var, True); - $this->sync_rev = $var; - - return $this; - } - - /** - * Type of secret configured for access to the Git repo. Must be one of ssh, - * cookiefile, gcenode, token, gcpserviceaccount or none. The - * validation of this is case-sensitive. Required. - * - * Generated from protobuf field string secret_type = 6; - * @return string - */ - public function getSecretType() - { - return $this->secret_type; - } - - /** - * Type of secret configured for access to the Git repo. Must be one of ssh, - * cookiefile, gcenode, token, gcpserviceaccount or none. The - * validation of this is case-sensitive. Required. - * - * Generated from protobuf field string secret_type = 6; - * @param string $var - * @return $this - */ - public function setSecretType($var) - { - GPBUtil::checkString($var, True); - $this->secret_type = $var; - - return $this; - } - - /** - * URL for the HTTPS proxy to be used when communicating with the Git repo. - * - * Generated from protobuf field string https_proxy = 7; - * @return string - */ - public function getHttpsProxy() - { - return $this->https_proxy; - } - - /** - * URL for the HTTPS proxy to be used when communicating with the Git repo. - * - * Generated from protobuf field string https_proxy = 7; - * @param string $var - * @return $this - */ - public function setHttpsProxy($var) - { - GPBUtil::checkString($var, True); - $this->https_proxy = $var; - - return $this; - } - - /** - * The Google Cloud Service Account Email used for auth when secret_type is - * gcpServiceAccount. - * - * Generated from protobuf field string gcp_service_account_email = 8; - * @return string - */ - public function getGcpServiceAccountEmail() - { - return $this->gcp_service_account_email; - } - - /** - * The Google Cloud Service Account Email used for auth when secret_type is - * gcpServiceAccount. - * - * Generated from protobuf field string gcp_service_account_email = 8; - * @param string $var - * @return $this - */ - public function setGcpServiceAccountEmail($var) - { - GPBUtil::checkString($var, True); - $this->gcp_service_account_email = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php deleted file mode 100644 index bea54d39e71d..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.GroupVersionKind - */ -class GroupVersionKind extends \Google\Protobuf\Internal\Message -{ - /** - * Kubernetes Group - * - * Generated from protobuf field string group = 1; - */ - protected $group = ''; - /** - * Kubernetes Version - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - /** - * Kubernetes Kind - * - * Generated from protobuf field string kind = 3; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $group - * Kubernetes Group - * @type string $version - * Kubernetes Version - * @type string $kind - * Kubernetes Kind - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Kubernetes Group - * - * Generated from protobuf field string group = 1; - * @return string - */ - public function getGroup() - { - return $this->group; - } - - /** - * Kubernetes Group - * - * Generated from protobuf field string group = 1; - * @param string $var - * @return $this - */ - public function setGroup($var) - { - GPBUtil::checkString($var, True); - $this->group = $var; - - return $this; - } - - /** - * Kubernetes Version - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Kubernetes Version - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Kubernetes Kind - * - * Generated from protobuf field string kind = 3; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Kubernetes Kind - * - * Generated from protobuf field string kind = 3; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php deleted file mode 100644 index 0f5c352c5b10..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - */ -class HierarchyControllerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Hierarchy Controller is enabled in this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Whether pod tree labels are enabled in this cluster. - * - * Generated from protobuf field bool enable_pod_tree_labels = 2; - */ - protected $enable_pod_tree_labels = false; - /** - * Whether hierarchical resource quota is enabled in this cluster. - * - * Generated from protobuf field bool enable_hierarchical_resource_quota = 3; - */ - protected $enable_hierarchical_resource_quota = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Hierarchy Controller is enabled in this cluster. - * @type bool $enable_pod_tree_labels - * Whether pod tree labels are enabled in this cluster. - * @type bool $enable_hierarchical_resource_quota - * Whether hierarchical resource quota is enabled in this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Whether Hierarchy Controller is enabled in this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Hierarchy Controller is enabled in this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Whether pod tree labels are enabled in this cluster. - * - * Generated from protobuf field bool enable_pod_tree_labels = 2; - * @return bool - */ - public function getEnablePodTreeLabels() - { - return $this->enable_pod_tree_labels; - } - - /** - * Whether pod tree labels are enabled in this cluster. - * - * Generated from protobuf field bool enable_pod_tree_labels = 2; - * @param bool $var - * @return $this - */ - public function setEnablePodTreeLabels($var) - { - GPBUtil::checkBool($var); - $this->enable_pod_tree_labels = $var; - - return $this; - } - - /** - * Whether hierarchical resource quota is enabled in this cluster. - * - * Generated from protobuf field bool enable_hierarchical_resource_quota = 3; - * @return bool - */ - public function getEnableHierarchicalResourceQuota() - { - return $this->enable_hierarchical_resource_quota; - } - - /** - * Whether hierarchical resource quota is enabled in this cluster. - * - * Generated from protobuf field bool enable_hierarchical_resource_quota = 3; - * @param bool $var - * @return $this - */ - public function setEnableHierarchicalResourceQuota($var) - { - GPBUtil::checkBool($var); - $this->enable_hierarchical_resource_quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php deleted file mode 100644 index d348a6ff5617..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - */ -class HierarchyControllerDeploymentState extends \Google\Protobuf\Internal\Message -{ - /** - * The deployment state for open source HNC (e.g. v0.7.0-hc.0) - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - */ - protected $hnc = 0; - /** - * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - */ - protected $extension = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $hnc - * The deployment state for open source HNC (e.g. v0.7.0-hc.0) - * @type int $extension - * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * The deployment state for open source HNC (e.g. v0.7.0-hc.0) - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * @return int - */ - public function getHnc() - { - return $this->hnc; - } - - /** - * The deployment state for open source HNC (e.g. v0.7.0-hc.0) - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * @param int $var - * @return $this - */ - public function setHnc($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->hnc = $var; - - return $this; - } - - /** - * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * @return int - */ - public function getExtension() - { - return $this->extension; - } - - /** - * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * @param int $var - * @return $this - */ - public function setExtension($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->extension = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php deleted file mode 100644 index 0fa804532730..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - */ -class HierarchyControllerState extends \Google\Protobuf\Internal\Message -{ - /** - * The version for Hierarchy Controller - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - */ - protected $version = null; - /** - * The deployment state for Hierarchy Controller - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - */ - protected $state = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion $version - * The version for Hierarchy Controller - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState $state - * The deployment state for Hierarchy Controller - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * The version for Hierarchy Controller - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * The version for Hierarchy Controller - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion::class); - $this->version = $var; - - return $this; - } - - /** - * The deployment state for Hierarchy Controller - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState|null - */ - public function getState() - { - return $this->state; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * The deployment state for Hierarchy Controller - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php deleted file mode 100644 index 7a29821ab300..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - */ -class HierarchyControllerVersion extends \Google\Protobuf\Internal\Message -{ - /** - * Version for open source HNC - * - * Generated from protobuf field string hnc = 1; - */ - protected $hnc = ''; - /** - * Version for Hierarchy Controller extension - * - * Generated from protobuf field string extension = 2; - */ - protected $extension = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $hnc - * Version for open source HNC - * @type string $extension - * Version for Hierarchy Controller extension - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Version for open source HNC - * - * Generated from protobuf field string hnc = 1; - * @return string - */ - public function getHnc() - { - return $this->hnc; - } - - /** - * Version for open source HNC - * - * Generated from protobuf field string hnc = 1; - * @param string $var - * @return $this - */ - public function setHnc($var) - { - GPBUtil::checkString($var, True); - $this->hnc = $var; - - return $this; - } - - /** - * Version for Hierarchy Controller extension - * - * Generated from protobuf field string extension = 2; - * @return string - */ - public function getExtension() - { - return $this->extension; - } - - /** - * Version for Hierarchy Controller extension - * - * Generated from protobuf field string extension = 2; - * @param string $var - * @return $this - */ - public function setExtension($var) - { - GPBUtil::checkString($var, True); - $this->extension = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php deleted file mode 100644 index 5616df50e468..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.InstallError - */ -class InstallError extends \Google\Protobuf\Internal\Message -{ - /** - * A string representing the user facing error message - * - * Generated from protobuf field string error_message = 1; - */ - protected $error_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $error_message - * A string representing the user facing error message - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * A string representing the user facing error message - * - * Generated from protobuf field string error_message = 1; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * A string representing the user facing error message - * - * Generated from protobuf field string error_message = 1; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php deleted file mode 100644 index e785153b26a9..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php +++ /dev/null @@ -1,292 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.MembershipSpec - */ -class MembershipSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Config Sync configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - */ - protected $config_sync = null; - /** - * Policy Controller configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - */ - protected $policy_controller = null; - /** - * Hierarchy Controller configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - */ - protected $hierarchy_controller = null; - /** - * Version of ACM installed. - * - * Generated from protobuf field string version = 10; - */ - protected $version = ''; - /** - * The user-specified cluster name used by Config Sync cluster-name-selector - * annotation or ClusterSelector, for applying configs to only a subset - * of clusters. - * Omit this field if the cluster's fleet membership name is used by Config - * Sync cluster-name-selector annotation or ClusterSelector. - * Set this field if a name different from the cluster's fleet membership name - * is used by Config Sync cluster-name-selector annotation or ClusterSelector. - * - * Generated from protobuf field string cluster = 11; - */ - protected $cluster = ''; - /** - * Enables automatic Feature management. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; - */ - protected $management = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync $config_sync - * Config Sync configuration for the cluster. - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController $policy_controller - * Policy Controller configuration for the cluster. - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig $hierarchy_controller - * Hierarchy Controller configuration for the cluster. - * @type string $version - * Version of ACM installed. - * @type string $cluster - * The user-specified cluster name used by Config Sync cluster-name-selector - * annotation or ClusterSelector, for applying configs to only a subset - * of clusters. - * Omit this field if the cluster's fleet membership name is used by Config - * Sync cluster-name-selector annotation or ClusterSelector. - * Set this field if a name different from the cluster's fleet membership name - * is used by Config Sync cluster-name-selector annotation or ClusterSelector. - * @type int $management - * Enables automatic Feature management. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Config Sync configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync|null - */ - public function getConfigSync() - { - return $this->config_sync; - } - - public function hasConfigSync() - { - return isset($this->config_sync); - } - - public function clearConfigSync() - { - unset($this->config_sync); - } - - /** - * Config Sync configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync $var - * @return $this - */ - public function setConfigSync($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync::class); - $this->config_sync = $var; - - return $this; - } - - /** - * Policy Controller configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController|null - */ - public function getPolicyController() - { - return $this->policy_controller; - } - - public function hasPolicyController() - { - return isset($this->policy_controller); - } - - public function clearPolicyController() - { - unset($this->policy_controller); - } - - /** - * Policy Controller configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController $var - * @return $this - */ - public function setPolicyController($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController::class); - $this->policy_controller = $var; - - return $this; - } - - /** - * Hierarchy Controller configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig|null - */ - public function getHierarchyController() - { - return $this->hierarchy_controller; - } - - public function hasHierarchyController() - { - return isset($this->hierarchy_controller); - } - - public function clearHierarchyController() - { - unset($this->hierarchy_controller); - } - - /** - * Hierarchy Controller configuration for the cluster. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig $var - * @return $this - */ - public function setHierarchyController($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig::class); - $this->hierarchy_controller = $var; - - return $this; - } - - /** - * Version of ACM installed. - * - * Generated from protobuf field string version = 10; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of ACM installed. - * - * Generated from protobuf field string version = 10; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * The user-specified cluster name used by Config Sync cluster-name-selector - * annotation or ClusterSelector, for applying configs to only a subset - * of clusters. - * Omit this field if the cluster's fleet membership name is used by Config - * Sync cluster-name-selector annotation or ClusterSelector. - * Set this field if a name different from the cluster's fleet membership name - * is used by Config Sync cluster-name-selector annotation or ClusterSelector. - * - * Generated from protobuf field string cluster = 11; - * @return string - */ - public function getCluster() - { - return $this->cluster; - } - - /** - * The user-specified cluster name used by Config Sync cluster-name-selector - * annotation or ClusterSelector, for applying configs to only a subset - * of clusters. - * Omit this field if the cluster's fleet membership name is used by Config - * Sync cluster-name-selector annotation or ClusterSelector. - * Set this field if a name different from the cluster's fleet membership name - * is used by Config Sync cluster-name-selector annotation or ClusterSelector. - * - * Generated from protobuf field string cluster = 11; - * @param string $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkString($var, True); - $this->cluster = $var; - - return $this; - } - - /** - * Enables automatic Feature management. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; - * @return int - */ - public function getManagement() - { - return $this->management; - } - - /** - * Enables automatic Feature management. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; - * @param int $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec\Management::class); - $this->management = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php deleted file mode 100644 index a7e4823ee480..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management - */ -class Management -{ - /** - * Unspecified - * - * Generated from protobuf enum MANAGEMENT_UNSPECIFIED = 0; - */ - const MANAGEMENT_UNSPECIFIED = 0; - /** - * Google will manage the Feature for the cluster. - * - * Generated from protobuf enum MANAGEMENT_AUTOMATIC = 1; - */ - const MANAGEMENT_AUTOMATIC = 1; - /** - * User will manually manage the Feature for the cluster. - * - * Generated from protobuf enum MANAGEMENT_MANUAL = 2; - */ - const MANAGEMENT_MANUAL = 2; - - private static $valueToName = [ - self::MANAGEMENT_UNSPECIFIED => 'MANAGEMENT_UNSPECIFIED', - self::MANAGEMENT_AUTOMATIC => 'MANAGEMENT_AUTOMATIC', - self::MANAGEMENT_MANUAL => 'MANAGEMENT_MANUAL', - ]; - - 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(Management::class, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec_Management::class); - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php deleted file mode 100644 index f9539fae394b..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php +++ /dev/null @@ -1,299 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.MembershipState - */ -class MembershipState extends \Google\Protobuf\Internal\Message -{ - /** - * This field is set to the `cluster_name` field of the Membership Spec if it - * is not empty. Otherwise, it is set to the cluster's fleet membership name. - * - * Generated from protobuf field string cluster_name = 1; - */ - protected $cluster_name = ''; - /** - * Membership configuration in the cluster. This represents the actual state - * in the cluster, while the MembershipSpec in the FeatureSpec represents - * the intended state - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - */ - protected $membership_spec = null; - /** - * Current install status of ACM's Operator - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - */ - protected $operator_state = null; - /** - * Current sync status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - */ - protected $config_sync_state = null; - /** - * PolicyController status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - */ - protected $policy_controller_state = null; - /** - * Hierarchy Controller status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - */ - protected $hierarchy_controller_state = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cluster_name - * This field is set to the `cluster_name` field of the Membership Spec if it - * is not empty. Otherwise, it is set to the cluster's fleet membership name. - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $membership_spec - * Membership configuration in the cluster. This represents the actual state - * in the cluster, while the MembershipSpec in the FeatureSpec represents - * the intended state - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState $operator_state - * Current install status of ACM's Operator - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState $config_sync_state - * Current sync status - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState $policy_controller_state - * PolicyController status - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState $hierarchy_controller_state - * Hierarchy Controller status - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * This field is set to the `cluster_name` field of the Membership Spec if it - * is not empty. Otherwise, it is set to the cluster's fleet membership name. - * - * Generated from protobuf field string cluster_name = 1; - * @return string - */ - public function getClusterName() - { - return $this->cluster_name; - } - - /** - * This field is set to the `cluster_name` field of the Membership Spec if it - * is not empty. Otherwise, it is set to the cluster's fleet membership name. - * - * Generated from protobuf field string cluster_name = 1; - * @param string $var - * @return $this - */ - public function setClusterName($var) - { - GPBUtil::checkString($var, True); - $this->cluster_name = $var; - - return $this; - } - - /** - * Membership configuration in the cluster. This represents the actual state - * in the cluster, while the MembershipSpec in the FeatureSpec represents - * the intended state - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec|null - */ - public function getMembershipSpec() - { - return $this->membership_spec; - } - - public function hasMembershipSpec() - { - return isset($this->membership_spec); - } - - public function clearMembershipSpec() - { - unset($this->membership_spec); - } - - /** - * Membership configuration in the cluster. This represents the actual state - * in the cluster, while the MembershipSpec in the FeatureSpec represents - * the intended state - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $var - * @return $this - */ - public function setMembershipSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec::class); - $this->membership_spec = $var; - - return $this; - } - - /** - * Current install status of ACM's Operator - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState|null - */ - public function getOperatorState() - { - return $this->operator_state; - } - - public function hasOperatorState() - { - return isset($this->operator_state); - } - - public function clearOperatorState() - { - unset($this->operator_state); - } - - /** - * Current install status of ACM's Operator - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState $var - * @return $this - */ - public function setOperatorState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState::class); - $this->operator_state = $var; - - return $this; - } - - /** - * Current sync status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState|null - */ - public function getConfigSyncState() - { - return $this->config_sync_state; - } - - public function hasConfigSyncState() - { - return isset($this->config_sync_state); - } - - public function clearConfigSyncState() - { - unset($this->config_sync_state); - } - - /** - * Current sync status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState $var - * @return $this - */ - public function setConfigSyncState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState::class); - $this->config_sync_state = $var; - - return $this; - } - - /** - * PolicyController status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState|null - */ - public function getPolicyControllerState() - { - return $this->policy_controller_state; - } - - public function hasPolicyControllerState() - { - return isset($this->policy_controller_state); - } - - public function clearPolicyControllerState() - { - unset($this->policy_controller_state); - } - - /** - * PolicyController status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState $var - * @return $this - */ - public function setPolicyControllerState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState::class); - $this->policy_controller_state = $var; - - return $this; - } - - /** - * Hierarchy Controller status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState|null - */ - public function getHierarchyControllerState() - { - return $this->hierarchy_controller_state; - } - - public function hasHierarchyControllerState() - { - return isset($this->hierarchy_controller_state); - } - - public function clearHierarchyControllerState() - { - unset($this->hierarchy_controller_state); - } - - /** - * Hierarchy Controller status - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState $var - * @return $this - */ - public function setHierarchyControllerState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState::class); - $this->hierarchy_controller_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php deleted file mode 100644 index b2b91e6ea01b..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php +++ /dev/null @@ -1,215 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.OciConfig - */ -class OciConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The OCI image repository URL for the package to sync from. - * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. - * - * Generated from protobuf field string sync_repo = 1; - */ - protected $sync_repo = ''; - /** - * The absolute path of the directory that contains - * the local resources. Default: the root directory of the image. - * - * Generated from protobuf field string policy_dir = 2; - */ - protected $policy_dir = ''; - /** - * Period in seconds between consecutive syncs. Default: 15. - * - * Generated from protobuf field int64 sync_wait_secs = 3; - */ - protected $sync_wait_secs = 0; - /** - * Type of secret configured for access to the Git repo. - * - * Generated from protobuf field string secret_type = 4; - */ - protected $secret_type = ''; - /** - * The Google Cloud Service Account Email used for auth when secret_type is - * gcpServiceAccount. - * - * Generated from protobuf field string gcp_service_account_email = 5; - */ - protected $gcp_service_account_email = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sync_repo - * The OCI image repository URL for the package to sync from. - * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. - * @type string $policy_dir - * The absolute path of the directory that contains - * the local resources. Default: the root directory of the image. - * @type int|string $sync_wait_secs - * Period in seconds between consecutive syncs. Default: 15. - * @type string $secret_type - * Type of secret configured for access to the Git repo. - * @type string $gcp_service_account_email - * The Google Cloud Service Account Email used for auth when secret_type is - * gcpServiceAccount. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * The OCI image repository URL for the package to sync from. - * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. - * - * Generated from protobuf field string sync_repo = 1; - * @return string - */ - public function getSyncRepo() - { - return $this->sync_repo; - } - - /** - * The OCI image repository URL for the package to sync from. - * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. - * - * Generated from protobuf field string sync_repo = 1; - * @param string $var - * @return $this - */ - public function setSyncRepo($var) - { - GPBUtil::checkString($var, True); - $this->sync_repo = $var; - - return $this; - } - - /** - * The absolute path of the directory that contains - * the local resources. Default: the root directory of the image. - * - * Generated from protobuf field string policy_dir = 2; - * @return string - */ - public function getPolicyDir() - { - return $this->policy_dir; - } - - /** - * The absolute path of the directory that contains - * the local resources. Default: the root directory of the image. - * - * Generated from protobuf field string policy_dir = 2; - * @param string $var - * @return $this - */ - public function setPolicyDir($var) - { - GPBUtil::checkString($var, True); - $this->policy_dir = $var; - - return $this; - } - - /** - * Period in seconds between consecutive syncs. Default: 15. - * - * Generated from protobuf field int64 sync_wait_secs = 3; - * @return int|string - */ - public function getSyncWaitSecs() - { - return $this->sync_wait_secs; - } - - /** - * Period in seconds between consecutive syncs. Default: 15. - * - * Generated from protobuf field int64 sync_wait_secs = 3; - * @param int|string $var - * @return $this - */ - public function setSyncWaitSecs($var) - { - GPBUtil::checkInt64($var); - $this->sync_wait_secs = $var; - - return $this; - } - - /** - * Type of secret configured for access to the Git repo. - * - * Generated from protobuf field string secret_type = 4; - * @return string - */ - public function getSecretType() - { - return $this->secret_type; - } - - /** - * Type of secret configured for access to the Git repo. - * - * Generated from protobuf field string secret_type = 4; - * @param string $var - * @return $this - */ - public function setSecretType($var) - { - GPBUtil::checkString($var, True); - $this->secret_type = $var; - - return $this; - } - - /** - * The Google Cloud Service Account Email used for auth when secret_type is - * gcpServiceAccount. - * - * Generated from protobuf field string gcp_service_account_email = 5; - * @return string - */ - public function getGcpServiceAccountEmail() - { - return $this->gcp_service_account_email; - } - - /** - * The Google Cloud Service Account Email used for auth when secret_type is - * gcpServiceAccount. - * - * Generated from protobuf field string gcp_service_account_email = 5; - * @param string $var - * @return $this - */ - public function setGcpServiceAccountEmail($var) - { - GPBUtil::checkString($var, True); - $this->gcp_service_account_email = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php deleted file mode 100644 index 8b91ffdf0006..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.OperatorState - */ -class OperatorState extends \Google\Protobuf\Internal\Message -{ - /** - * The semenatic version number of the operator - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * The state of the Operator's deployment - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - */ - protected $deployment_state = 0; - /** - * Install errors. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; - */ - private $errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The semenatic version number of the operator - * @type int $deployment_state - * The state of the Operator's deployment - * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\InstallError>|\Google\Protobuf\Internal\RepeatedField $errors - * Install errors. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * The semenatic version number of the operator - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The semenatic version number of the operator - * - * 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; - } - - /** - * The state of the Operator's deployment - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * @return int - */ - public function getDeploymentState() - { - return $this->deployment_state; - } - - /** - * The state of the Operator's deployment - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * @param int $var - * @return $this - */ - public function setDeploymentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class); - $this->deployment_state = $var; - - return $this; - } - - /** - * Install errors. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Install errors. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; - * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\InstallError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\InstallError::class); - $this->errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php deleted file mode 100644 index eafd7df91446..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php +++ /dev/null @@ -1,277 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.PolicyController - */ -class PolicyController extends \Google\Protobuf\Internal\Message -{ - /** - * Enables the installation of Policy Controller. - * If false, the rest of PolicyController fields take no - * effect. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Installs the default template library along with Policy Controller. - * - * Generated from protobuf field optional bool template_library_installed = 2; - */ - protected $template_library_installed = null; - /** - * Sets the interval for Policy Controller Audit Scans (in seconds). - * When set to 0, this disables audit functionality altogether. - * - * Generated from protobuf field optional int64 audit_interval_seconds = 3; - */ - protected $audit_interval_seconds = null; - /** - * The set of namespaces that are excluded from Policy Controller checks. - * Namespaces do not need to currently exist on the cluster. - * - * Generated from protobuf field repeated string exemptable_namespaces = 4; - */ - private $exemptable_namespaces; - /** - * Enables the ability to use Constraint Templates that reference to objects - * other than the object currently being evaluated. - * - * Generated from protobuf field bool referential_rules_enabled = 5; - */ - protected $referential_rules_enabled = false; - /** - * Logs all denies and dry run failures. - * - * Generated from protobuf field bool log_denies_enabled = 6; - */ - protected $log_denies_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables the installation of Policy Controller. - * If false, the rest of PolicyController fields take no - * effect. - * @type bool $template_library_installed - * Installs the default template library along with Policy Controller. - * @type int|string $audit_interval_seconds - * Sets the interval for Policy Controller Audit Scans (in seconds). - * When set to 0, this disables audit functionality altogether. - * @type array|\Google\Protobuf\Internal\RepeatedField $exemptable_namespaces - * The set of namespaces that are excluded from Policy Controller checks. - * Namespaces do not need to currently exist on the cluster. - * @type bool $referential_rules_enabled - * Enables the ability to use Constraint Templates that reference to objects - * other than the object currently being evaluated. - * @type bool $log_denies_enabled - * Logs all denies and dry run failures. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Enables the installation of Policy Controller. - * If false, the rest of PolicyController fields take no - * effect. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables the installation of Policy Controller. - * If false, the rest of PolicyController fields take no - * effect. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Installs the default template library along with Policy Controller. - * - * Generated from protobuf field optional bool template_library_installed = 2; - * @return bool - */ - public function getTemplateLibraryInstalled() - { - return isset($this->template_library_installed) ? $this->template_library_installed : false; - } - - public function hasTemplateLibraryInstalled() - { - return isset($this->template_library_installed); - } - - public function clearTemplateLibraryInstalled() - { - unset($this->template_library_installed); - } - - /** - * Installs the default template library along with Policy Controller. - * - * Generated from protobuf field optional bool template_library_installed = 2; - * @param bool $var - * @return $this - */ - public function setTemplateLibraryInstalled($var) - { - GPBUtil::checkBool($var); - $this->template_library_installed = $var; - - return $this; - } - - /** - * Sets the interval for Policy Controller Audit Scans (in seconds). - * When set to 0, this disables audit functionality altogether. - * - * Generated from protobuf field optional int64 audit_interval_seconds = 3; - * @return int|string - */ - public function getAuditIntervalSeconds() - { - return isset($this->audit_interval_seconds) ? $this->audit_interval_seconds : 0; - } - - public function hasAuditIntervalSeconds() - { - return isset($this->audit_interval_seconds); - } - - public function clearAuditIntervalSeconds() - { - unset($this->audit_interval_seconds); - } - - /** - * Sets the interval for Policy Controller Audit Scans (in seconds). - * When set to 0, this disables audit functionality altogether. - * - * Generated from protobuf field optional int64 audit_interval_seconds = 3; - * @param int|string $var - * @return $this - */ - public function setAuditIntervalSeconds($var) - { - GPBUtil::checkInt64($var); - $this->audit_interval_seconds = $var; - - return $this; - } - - /** - * The set of namespaces that are excluded from Policy Controller checks. - * Namespaces do not need to currently exist on the cluster. - * - * Generated from protobuf field repeated string exemptable_namespaces = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExemptableNamespaces() - { - return $this->exemptable_namespaces; - } - - /** - * The set of namespaces that are excluded from Policy Controller checks. - * Namespaces do not need to currently exist on the cluster. - * - * Generated from protobuf field repeated string exemptable_namespaces = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExemptableNamespaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exemptable_namespaces = $arr; - - return $this; - } - - /** - * Enables the ability to use Constraint Templates that reference to objects - * other than the object currently being evaluated. - * - * Generated from protobuf field bool referential_rules_enabled = 5; - * @return bool - */ - public function getReferentialRulesEnabled() - { - return $this->referential_rules_enabled; - } - - /** - * Enables the ability to use Constraint Templates that reference to objects - * other than the object currently being evaluated. - * - * Generated from protobuf field bool referential_rules_enabled = 5; - * @param bool $var - * @return $this - */ - public function setReferentialRulesEnabled($var) - { - GPBUtil::checkBool($var); - $this->referential_rules_enabled = $var; - - return $this; - } - - /** - * Logs all denies and dry run failures. - * - * Generated from protobuf field bool log_denies_enabled = 6; - * @return bool - */ - public function getLogDeniesEnabled() - { - return $this->log_denies_enabled; - } - - /** - * Logs all denies and dry run failures. - * - * Generated from protobuf field bool log_denies_enabled = 6; - * @param bool $var - * @return $this - */ - public function setLogDeniesEnabled($var) - { - GPBUtil::checkBool($var); - $this->log_denies_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php deleted file mode 100644 index e0ba94d19999..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.PolicyControllerState - */ -class PolicyControllerState extends \Google\Protobuf\Internal\Message -{ - /** - * The version of Gatekeeper Policy Controller deployed. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - */ - protected $version = null; - /** - * The state about the policy controller installation. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - */ - protected $deployment_state = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion $version - * The version of Gatekeeper Policy Controller deployed. - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState $deployment_state - * The state about the policy controller installation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * The version of Gatekeeper Policy Controller deployed. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * The version of Gatekeeper Policy Controller deployed. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion::class); - $this->version = $var; - - return $this; - } - - /** - * The state about the policy controller installation. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState|null - */ - public function getDeploymentState() - { - return $this->deployment_state; - } - - public function hasDeploymentState() - { - return isset($this->deployment_state); - } - - public function clearDeploymentState() - { - unset($this->deployment_state); - } - - /** - * The state about the policy controller installation. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState $var - * @return $this - */ - public function setDeploymentState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState::class); - $this->deployment_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php deleted file mode 100644 index fb70a7bffb04..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - */ -class PolicyControllerVersion extends \Google\Protobuf\Internal\Message -{ - /** - * The gatekeeper image tag that is composed of ACM version, git tag, build - * number. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The gatekeeper image tag that is composed of ACM version, git tag, build - * number. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * The gatekeeper image tag that is composed of ACM version, git tag, build - * number. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The gatekeeper image tag that is composed of ACM version, git tag, build - * number. - * - * 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/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php deleted file mode 100644 index f9a32a75047d..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.SyncError - */ -class SyncError extends \Google\Protobuf\Internal\Message -{ - /** - * An ACM defined error code - * - * Generated from protobuf field string code = 1; - */ - protected $code = ''; - /** - * A description of the error - * - * Generated from protobuf field string error_message = 2; - */ - protected $error_message = ''; - /** - * A list of config(s) associated with the error, if any - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - */ - private $error_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $code - * An ACM defined error code - * @type string $error_message - * A description of the error - * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource>|\Google\Protobuf\Internal\RepeatedField $error_resources - * A list of config(s) associated with the error, if any - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * An ACM defined error code - * - * Generated from protobuf field string code = 1; - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * An ACM defined error code - * - * Generated from protobuf field string code = 1; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->code = $var; - - return $this; - } - - /** - * A description of the error - * - * Generated from protobuf field string error_message = 2; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * A description of the error - * - * Generated from protobuf field string error_message = 2; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - - /** - * A list of config(s) associated with the error, if any - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorResources() - { - return $this->error_resources; - } - - /** - * A list of config(s) associated with the error, if any - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource::class); - $this->error_resources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php deleted file mode 100644 index 66d52b10ce17..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php +++ /dev/null @@ -1,304 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.SyncState - */ -class SyncState extends \Google\Protobuf\Internal\Message -{ - /** - * Token indicating the state of the repo. - * - * Generated from protobuf field string source_token = 1; - */ - protected $source_token = ''; - /** - * Token indicating the state of the importer. - * - * Generated from protobuf field string import_token = 2; - */ - protected $import_token = ''; - /** - * Token indicating the state of the syncer. - * - * Generated from protobuf field string sync_token = 3; - */ - protected $sync_token = ''; - /** - * Deprecated: use last_sync_time instead. - * Timestamp of when ACM last successfully synced the repo - * The time format is specified in https://golang.org/pkg/time/#Time.String - * - * Generated from protobuf field string last_sync = 4 [deprecated = true]; - * @deprecated - */ - protected $last_sync = ''; - /** - * Timestamp type of when ACM last successfully synced the repo - * - * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7; - */ - protected $last_sync_time = null; - /** - * Sync status code - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - */ - protected $code = 0; - /** - * A list of errors resulting from problematic configs. - * This list will be truncated after 100 errors, although it is - * unlikely for that many errors to simultaneously exist. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6; - */ - private $errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_token - * Token indicating the state of the repo. - * @type string $import_token - * Token indicating the state of the importer. - * @type string $sync_token - * Token indicating the state of the syncer. - * @type string $last_sync - * Deprecated: use last_sync_time instead. - * Timestamp of when ACM last successfully synced the repo - * The time format is specified in https://golang.org/pkg/time/#Time.String - * @type \Google\Protobuf\Timestamp $last_sync_time - * Timestamp type of when ACM last successfully synced the repo - * @type int $code - * Sync status code - * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>|\Google\Protobuf\Internal\RepeatedField $errors - * A list of errors resulting from problematic configs. - * This list will be truncated after 100 errors, although it is - * unlikely for that many errors to simultaneously exist. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce(); - parent::__construct($data); - } - - /** - * Token indicating the state of the repo. - * - * Generated from protobuf field string source_token = 1; - * @return string - */ - public function getSourceToken() - { - return $this->source_token; - } - - /** - * Token indicating the state of the repo. - * - * Generated from protobuf field string source_token = 1; - * @param string $var - * @return $this - */ - public function setSourceToken($var) - { - GPBUtil::checkString($var, True); - $this->source_token = $var; - - return $this; - } - - /** - * Token indicating the state of the importer. - * - * Generated from protobuf field string import_token = 2; - * @return string - */ - public function getImportToken() - { - return $this->import_token; - } - - /** - * Token indicating the state of the importer. - * - * Generated from protobuf field string import_token = 2; - * @param string $var - * @return $this - */ - public function setImportToken($var) - { - GPBUtil::checkString($var, True); - $this->import_token = $var; - - return $this; - } - - /** - * Token indicating the state of the syncer. - * - * Generated from protobuf field string sync_token = 3; - * @return string - */ - public function getSyncToken() - { - return $this->sync_token; - } - - /** - * Token indicating the state of the syncer. - * - * Generated from protobuf field string sync_token = 3; - * @param string $var - * @return $this - */ - public function setSyncToken($var) - { - GPBUtil::checkString($var, True); - $this->sync_token = $var; - - return $this; - } - - /** - * Deprecated: use last_sync_time instead. - * Timestamp of when ACM last successfully synced the repo - * The time format is specified in https://golang.org/pkg/time/#Time.String - * - * Generated from protobuf field string last_sync = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getLastSync() - { - if ($this->last_sync !== '') { - @trigger_error('last_sync is deprecated.', E_USER_DEPRECATED); - } - return $this->last_sync; - } - - /** - * Deprecated: use last_sync_time instead. - * Timestamp of when ACM last successfully synced the repo - * The time format is specified in https://golang.org/pkg/time/#Time.String - * - * Generated from protobuf field string last_sync = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setLastSync($var) - { - @trigger_error('last_sync is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->last_sync = $var; - - return $this; - } - - /** - * Timestamp type of when ACM last successfully synced the repo - * - * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSyncTime() - { - return $this->last_sync_time; - } - - public function hasLastSyncTime() - { - return isset($this->last_sync_time); - } - - public function clearLastSyncTime() - { - unset($this->last_sync_time); - } - - /** - * Timestamp type of when ACM last successfully synced the repo - * - * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSyncTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_sync_time = $var; - - return $this; - } - - /** - * Sync status code - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * Sync status code - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState\SyncCode::class); - $this->code = $var; - - return $this; - } - - /** - * A list of errors resulting from problematic configs. - * This list will be truncated after 100 errors, although it is - * unlikely for that many errors to simultaneously exist. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * A list of errors resulting from problematic configs. - * This list will be truncated after 100 errors, although it is - * unlikely for that many errors to simultaneously exist. - * - * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6; - * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncError::class); - $this->errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php deleted file mode 100644 index 79c8f38a8fd7..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php +++ /dev/null @@ -1,99 +0,0 @@ -google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode - */ -class SyncCode -{ - /** - * Config Sync cannot determine a sync code - * - * Generated from protobuf enum SYNC_CODE_UNSPECIFIED = 0; - */ - const SYNC_CODE_UNSPECIFIED = 0; - /** - * Config Sync successfully synced the git Repo with the cluster - * - * Generated from protobuf enum SYNCED = 1; - */ - const SYNCED = 1; - /** - * Config Sync is in the progress of syncing a new change - * - * Generated from protobuf enum PENDING = 2; - */ - const PENDING = 2; - /** - * Indicates an error configuring Config Sync, and user action is required - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - /** - * Config Sync has been installed but not configured - * - * Generated from protobuf enum NOT_CONFIGURED = 4; - */ - const NOT_CONFIGURED = 4; - /** - * Config Sync has not been installed - * - * Generated from protobuf enum NOT_INSTALLED = 5; - */ - const NOT_INSTALLED = 5; - /** - * Error authorizing with the cluster - * - * Generated from protobuf enum UNAUTHORIZED = 6; - */ - const UNAUTHORIZED = 6; - /** - * Cluster could not be reached - * - * Generated from protobuf enum UNREACHABLE = 7; - */ - const UNREACHABLE = 7; - - private static $valueToName = [ - self::SYNC_CODE_UNSPECIFIED => 'SYNC_CODE_UNSPECIFIED', - self::SYNCED => 'SYNCED', - self::PENDING => 'PENDING', - self::ERROR => 'ERROR', - self::NOT_CONFIGURED => 'NOT_CONFIGURED', - self::NOT_INSTALLED => 'NOT_INSTALLED', - self::UNAUTHORIZED => 'UNAUTHORIZED', - self::UNREACHABLE => 'UNREACHABLE', - ]; - - 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(SyncCode::class, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState_SyncCode::class); - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php deleted file mode 100644 index 1031f8479b15..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.gkehub.multiclusteringress.v1.FeatureSpec - */ -class FeatureSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. - * Example: `projects/foo-proj/locations/global/memberships/bar` - * - * Generated from protobuf field string config_membership = 1; - */ - protected $config_membership = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $config_membership - * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. - * Example: `projects/foo-proj/locations/global/memberships/bar` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Multiclusteringress\Multiclusteringress::initOnce(); - parent::__construct($data); - } - - /** - * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. - * Example: `projects/foo-proj/locations/global/memberships/bar` - * - * Generated from protobuf field string config_membership = 1; - * @return string - */ - public function getConfigMembership() - { - return $this->config_membership; - } - - /** - * Fully-qualified Membership name which hosts the MultiClusterIngress CRD. - * Example: `projects/foo-proj/locations/global/memberships/bar` - * - * Generated from protobuf field string config_membership = 1; - * @param string $var - * @return $this - */ - public function setConfigMembership($var) - { - GPBUtil::checkString($var, True); - $this->config_membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php deleted file mode 100644 index 7a7413afa5cd..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.gkehub.v1.Authority - */ -class Authority extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with - * `https://` and be a valid URL with length <2000 characters. - * If set, then Google will allow valid OIDC tokens from this issuer to - * authenticate within the workload_identity_pool. OIDC discovery will be - * performed on this URI to validate tokens from the issuer. - * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly - * modified; it must be cleared (and Workload Identity disabled) before using - * a new issuer (and re-enabling Workload Identity). - * - * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $issuer = ''; - /** - * Output only. The name of the workload identity pool in which `issuer` will - * be recognized. - * There is a single Workload Identity Pool per Hub that is shared - * between all Memberships that belong to that Hub. For a Hub hosted in - * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, - * although this is subject to change in newer versions of this API. - * - * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_identity_pool = ''; - /** - * Output only. An identity provider that reflects the `issuer` in the - * workload identity pool. - * - * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $identity_provider = ''; - /** - * Optional. OIDC verification keys for this Membership in JWKS format (RFC - * 7517). - * When this field is set, OIDC discovery will NOT be performed on `issuer`, - * and instead OIDC tokens will be validated using this field. - * - * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $oidc_jwks = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $issuer - * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with - * `https://` and be a valid URL with length <2000 characters. - * If set, then Google will allow valid OIDC tokens from this issuer to - * authenticate within the workload_identity_pool. OIDC discovery will be - * performed on this URI to validate tokens from the issuer. - * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly - * modified; it must be cleared (and Workload Identity disabled) before using - * a new issuer (and re-enabling Workload Identity). - * @type string $workload_identity_pool - * Output only. The name of the workload identity pool in which `issuer` will - * be recognized. - * There is a single Workload Identity Pool per Hub that is shared - * between all Memberships that belong to that Hub. For a Hub hosted in - * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, - * although this is subject to change in newer versions of this API. - * @type string $identity_provider - * Output only. An identity provider that reflects the `issuer` in the - * workload identity pool. - * @type string $oidc_jwks - * Optional. OIDC verification keys for this Membership in JWKS format (RFC - * 7517). - * When this field is set, OIDC discovery will NOT be performed on `issuer`, - * and instead OIDC tokens will be validated using this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with - * `https://` and be a valid URL with length <2000 characters. - * If set, then Google will allow valid OIDC tokens from this issuer to - * authenticate within the workload_identity_pool. OIDC discovery will be - * performed on this URI to validate tokens from the issuer. - * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly - * modified; it must be cleared (and Workload Identity disabled) before using - * a new issuer (and re-enabling Workload Identity). - * - * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getIssuer() - { - return $this->issuer; - } - - /** - * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with - * `https://` and be a valid URL with length <2000 characters. - * If set, then Google will allow valid OIDC tokens from this issuer to - * authenticate within the workload_identity_pool. OIDC discovery will be - * performed on this URI to validate tokens from the issuer. - * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly - * modified; it must be cleared (and Workload Identity disabled) before using - * a new issuer (and re-enabling Workload Identity). - * - * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setIssuer($var) - { - GPBUtil::checkString($var, True); - $this->issuer = $var; - - return $this; - } - - /** - * Output only. The name of the workload identity pool in which `issuer` will - * be recognized. - * There is a single Workload Identity Pool per Hub that is shared - * between all Memberships that belong to that Hub. For a Hub hosted in - * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, - * although this is subject to change in newer versions of this API. - * - * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getWorkloadIdentityPool() - { - return $this->workload_identity_pool; - } - - /** - * Output only. The name of the workload identity pool in which `issuer` will - * be recognized. - * There is a single Workload Identity Pool per Hub that is shared - * between all Memberships that belong to that Hub. For a Hub hosted in - * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, - * although this is subject to change in newer versions of this API. - * - * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setWorkloadIdentityPool($var) - { - GPBUtil::checkString($var, True); - $this->workload_identity_pool = $var; - - return $this; - } - - /** - * Output only. An identity provider that reflects the `issuer` in the - * workload identity pool. - * - * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIdentityProvider() - { - return $this->identity_provider; - } - - /** - * Output only. An identity provider that reflects the `issuer` in the - * workload identity pool. - * - * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIdentityProvider($var) - { - GPBUtil::checkString($var, True); - $this->identity_provider = $var; - - return $this; - } - - /** - * Optional. OIDC verification keys for this Membership in JWKS format (RFC - * 7517). - * When this field is set, OIDC discovery will NOT be performed on `issuer`, - * and instead OIDC tokens will be validated using this field. - * - * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOidcJwks() - { - return $this->oidc_jwks; - } - - /** - * Optional. OIDC verification keys for this Membership in JWKS format (RFC - * 7517). - * When this field is set, OIDC discovery will NOT be performed on `issuer`, - * and instead OIDC tokens will be validated using this field. - * - * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOidcJwks($var) - { - GPBUtil::checkString($var, False); - $this->oidc_jwks = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php deleted file mode 100644 index 7f7c7a4ded08..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.gkehub.v1.CommonFeatureSpec - */ -class CommonFeatureSpec extends \Google\Protobuf\Internal\Message -{ - protected $feature_spec; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec $multiclusteringress - * Multicluster Ingress-specific spec. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); - parent::__construct($data); - } - - /** - * Multicluster Ingress-specific spec. - * - * Generated from protobuf field .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * @return \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec|null - */ - public function getMulticlusteringress() - { - return $this->readOneof(102); - } - - public function hasMulticlusteringress() - { - return $this->hasOneof(102); - } - - /** - * Multicluster Ingress-specific spec. - * - * Generated from protobuf field .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * @param \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec $var - * @return $this - */ - public function setMulticlusteringress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec::class); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * @return string - */ - public function getFeatureSpec() - { - return $this->whichOneof("feature_spec"); - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php deleted file mode 100644 index 58319d7a887c..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.gkehub.v1.CommonFeatureState - */ -class CommonFeatureState extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The "running state" of the Feature in this Hub. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\V1\FeatureState $state - * Output only. The "running state" of the Feature in this Hub. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The "running state" of the Feature in this Hub. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeHub\V1\FeatureState|null - */ - public function getState() - { - return $this->state; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * Output only. The "running state" of the Feature in this Hub. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeHub\V1\FeatureState $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureState::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php deleted file mode 100644 index 4514fd3f1b41..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.gkehub.v1.ConnectAgentResource - */ -class ConnectAgentResource extends \Google\Protobuf\Internal\Message -{ - /** - * Kubernetes type of the resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1; - */ - protected $type = null; - /** - * YAML manifest of the resource. - * - * Generated from protobuf field string manifest = 2; - */ - protected $manifest = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\V1\TypeMeta $type - * Kubernetes type of the resource. - * @type string $manifest - * YAML manifest of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Kubernetes type of the resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1; - * @return \Google\Cloud\GkeHub\V1\TypeMeta|null - */ - public function getType() - { - return $this->type; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * Kubernetes type of the resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1; - * @param \Google\Cloud\GkeHub\V1\TypeMeta $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\TypeMeta::class); - $this->type = $var; - - return $this; - } - - /** - * YAML manifest of the resource. - * - * Generated from protobuf field string manifest = 2; - * @return string - */ - public function getManifest() - { - return $this->manifest; - } - - /** - * YAML manifest of the resource. - * - * Generated from protobuf field string manifest = 2; - * @param string $var - * @return $this - */ - public function setManifest($var) - { - GPBUtil::checkString($var, True); - $this->manifest = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php deleted file mode 100644 index c28628f4d442..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.gkehub.v1.CreateFeatureRequest - */ -class CreateFeatureRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent (project and location) where the Feature will be - * created. Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The ID of the feature to create. - * - * Generated from protobuf field string feature_id = 2; - */ - protected $feature_id = ''; - /** - * The Feature resource to create. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; - */ - protected $resource = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The parent (project and location) where the Feature will be - * created. Specified in the format `projects/*/locations/*`. - * @param \Google\Cloud\GkeHub\V1\Feature $resource The Feature resource to create. - * @param string $featureId The ID of the feature to create. - * - * @return \Google\Cloud\GkeHub\V1\CreateFeatureRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\GkeHub\V1\Feature $resource, string $featureId): self - { - return (new self()) - ->setParent($parent) - ->setResource($resource) - ->setFeatureId($featureId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent (project and location) where the Feature will be - * created. Specified in the format `projects/*/locations/*`. - * @type string $feature_id - * The ID of the feature to create. - * @type \Google\Cloud\GkeHub\V1\Feature $resource - * The Feature resource to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent (project and location) where the Feature will be - * created. Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent (project and location) where the Feature will be - * created. Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The ID of the feature to create. - * - * Generated from protobuf field string feature_id = 2; - * @return string - */ - public function getFeatureId() - { - return $this->feature_id; - } - - /** - * The ID of the feature to create. - * - * Generated from protobuf field string feature_id = 2; - * @param string $var - * @return $this - */ - public function setFeatureId($var) - { - GPBUtil::checkString($var, True); - $this->feature_id = $var; - - return $this; - } - - /** - * The Feature resource to create. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; - * @return \Google\Cloud\GkeHub\V1\Feature|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * The Feature resource to create. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; - * @param \Google\Cloud\GkeHub\V1\Feature $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Feature::class); - $this->resource = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php deleted file mode 100644 index 7ed12c498291..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php +++ /dev/null @@ -1,274 +0,0 @@ -google.cloud.gkehub.v1.CreateMembershipRequest - */ -class CreateMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * - * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $membership_id = ''; - /** - * Required. The membership to create. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The parent (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. Please see - * {@see GkeHubClient::locationName()} for help formatting this field. - * @param \Google\Cloud\GkeHub\V1\Membership $resource Required. The membership to create. - * @param string $membershipId Required. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: - * - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * - * @return \Google\Cloud\GkeHub\V1\CreateMembershipRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\GkeHub\V1\Membership $resource, string $membershipId): self - { - return (new self()) - ->setParent($parent) - ->setResource($resource) - ->setMembershipId($membershipId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. - * @type string $membership_id - * Required. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * @type \Google\Cloud\GkeHub\V1\Membership $resource - * Required. The membership to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. - * - * 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 (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. - * - * 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. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * - * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMembershipId() - { - return $this->membership_id; - } - - /** - * Required. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * - * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMembershipId($var) - { - GPBUtil::checkString($var, True); - $this->membership_id = $var; - - return $this; - } - - /** - * Required. The membership to create. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeHub\V1\Membership|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Required. The membership to create. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeHub\V1\Membership $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Membership::class); - $this->resource = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php deleted file mode 100644 index e4859d9f53cb..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.gkehub.v1.DeleteFeatureRequest - */ -class DeleteFeatureRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, the delete will ignore any outstanding resources for - * this Feature (that is, `FeatureState.has_resources` is set to true). These - * resources will NOT be cleaned up or modified in any way. - * - * Generated from protobuf field bool force = 2; - */ - protected $force = false; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * - * @return \Google\Cloud\GkeHub\V1\DeleteFeatureRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * @type bool $force - * If set to true, the delete will ignore any outstanding resources for - * this Feature (that is, `FeatureState.has_resources` is set to true). These - * resources will NOT be cleaned up or modified in any way. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.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, the delete will ignore any outstanding resources for - * this Feature (that is, `FeatureState.has_resources` is set to true). These - * resources will NOT be cleaned up or modified in any way. - * - * Generated from protobuf field bool force = 2; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * If set to true, the delete will ignore any outstanding resources for - * this Feature (that is, `FeatureState.has_resources` is set to true). These - * resources will NOT be cleaned up or modified in any way. - * - * Generated from protobuf field bool force = 2; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php deleted file mode 100644 index cf246161bdbe..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php +++ /dev/null @@ -1,202 +0,0 @@ -google.cloud.gkehub.v1.DeleteMembershipRequest - */ -class DeleteMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, any subresource from this Membership will also be - * deleted. Otherwise, the request will only work if the Membership has no - * subresource. - * - * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. Please see - * {@see GkeHubClient::membershipName()} for help formatting this field. - * - * @return \Google\Cloud\GkeHub\V1\DeleteMembershipRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $force - * Optional. If set to true, any subresource from this Membership will also be - * deleted. Otherwise, the request will only work if the Membership has no - * subresource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * 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 Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * 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; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, any subresource from this Membership will also be - * deleted. Otherwise, the request will only work if the Membership has no - * subresource. - * - * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any subresource from this Membership will also be - * deleted. Otherwise, the request will only work if the Membership has no - * subresource. - * - * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php deleted file mode 100644 index 22cbd2b42a1b..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php +++ /dev/null @@ -1,513 +0,0 @@ -google.cloud.gkehub.v1.Feature - */ -class Feature extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The full, unique name of this Feature resource in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * GCP labels for this Feature. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - /** - * Output only. State of the Feature resource itself. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resource_state = null; - /** - * Optional. Hub-wide Feature configuration. If this Feature does not support any - * Hub-wide configuration, this field may be unused. - * - * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $spec = null; - /** - * Optional. Membership-specific configuration for this Feature. If this Feature does - * not support any per-Membership configuration, this field may be unused. - * The keys indicate which Membership the configuration is for, in the form: - * projects/{p}/locations/{l}/memberships/{m} - * Where {p} is the project, {l} is a valid location and {m} is a valid - * Membership in this project at that location. {p} WILL match the Feature's - * project. - * {p} will always be returned as the project number, but the project ID is - * also accepted during input. If the same Membership is specified in the map - * twice (using the project ID form, and the project number form), exactly - * ONE of the entries will be saved, with no guarantees as to which. For this - * reason, it is recommended the same format be used for all entries when - * mutating a Feature. - * - * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $membership_specs; - /** - * Output only. The Hub-wide Feature state. - * - * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = null; - /** - * Output only. Membership-specific Feature status. If this Feature does - * report any per-Membership status, this field may be unused. - * The keys indicate which Membership the state is for, in the form: - * projects/{p}/locations/{l}/memberships/{m} - * Where {p} is the project number, {l} is a valid location and {m} is a valid - * Membership in this project at that location. {p} MUST match the Feature's - * project number. - * - * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $membership_states; - /** - * Output only. When the Feature resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. When the Feature resource was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. When the Feature resource was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The full, unique name of this Feature resource in the format - * `projects/*/locations/*/features/*`. - * @type array|\Google\Protobuf\Internal\MapField $labels - * GCP labels for this Feature. - * @type \Google\Cloud\GkeHub\V1\FeatureResourceState $resource_state - * Output only. State of the Feature resource itself. - * @type \Google\Cloud\GkeHub\V1\CommonFeatureSpec $spec - * Optional. Hub-wide Feature configuration. If this Feature does not support any - * Hub-wide configuration, this field may be unused. - * @type array|\Google\Protobuf\Internal\MapField $membership_specs - * Optional. Membership-specific configuration for this Feature. If this Feature does - * not support any per-Membership configuration, this field may be unused. - * The keys indicate which Membership the configuration is for, in the form: - * projects/{p}/locations/{l}/memberships/{m} - * Where {p} is the project, {l} is a valid location and {m} is a valid - * Membership in this project at that location. {p} WILL match the Feature's - * project. - * {p} will always be returned as the project number, but the project ID is - * also accepted during input. If the same Membership is specified in the map - * twice (using the project ID form, and the project number form), exactly - * ONE of the entries will be saved, with no guarantees as to which. For this - * reason, it is recommended the same format be used for all entries when - * mutating a Feature. - * @type \Google\Cloud\GkeHub\V1\CommonFeatureState $state - * Output only. The Hub-wide Feature state. - * @type array|\Google\Protobuf\Internal\MapField $membership_states - * Output only. Membership-specific Feature status. If this Feature does - * report any per-Membership status, this field may be unused. - * The keys indicate which Membership the state is for, in the form: - * projects/{p}/locations/{l}/memberships/{m} - * Where {p} is the project number, {l} is a valid location and {m} is a valid - * Membership in this project at that location. {p} MUST match the Feature's - * project number. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. When the Feature resource was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. When the Feature resource was last updated. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. When the Feature resource was deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The full, unique name of this Feature resource in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The full, unique name of this Feature resource in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * GCP labels for this Feature. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * GCP labels for this Feature. - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. State of the Feature resource itself. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeHub\V1\FeatureResourceState|null - */ - public function getResourceState() - { - return $this->resource_state; - } - - public function hasResourceState() - { - return isset($this->resource_state); - } - - public function clearResourceState() - { - unset($this->resource_state); - } - - /** - * Output only. State of the Feature resource itself. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeHub\V1\FeatureResourceState $var - * @return $this - */ - public function setResourceState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureResourceState::class); - $this->resource_state = $var; - - return $this; - } - - /** - * Optional. Hub-wide Feature configuration. If this Feature does not support any - * Hub-wide configuration, this field may be unused. - * - * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeHub\V1\CommonFeatureSpec|null - */ - public function getSpec() - { - return $this->spec; - } - - public function hasSpec() - { - return isset($this->spec); - } - - public function clearSpec() - { - unset($this->spec); - } - - /** - * Optional. Hub-wide Feature configuration. If this Feature does not support any - * Hub-wide configuration, this field may be unused. - * - * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeHub\V1\CommonFeatureSpec $var - * @return $this - */ - public function setSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\CommonFeatureSpec::class); - $this->spec = $var; - - return $this; - } - - /** - * Optional. Membership-specific configuration for this Feature. If this Feature does - * not support any per-Membership configuration, this field may be unused. - * The keys indicate which Membership the configuration is for, in the form: - * projects/{p}/locations/{l}/memberships/{m} - * Where {p} is the project, {l} is a valid location and {m} is a valid - * Membership in this project at that location. {p} WILL match the Feature's - * project. - * {p} will always be returned as the project number, but the project ID is - * also accepted during input. If the same Membership is specified in the map - * twice (using the project ID form, and the project number form), exactly - * ONE of the entries will be saved, with no guarantees as to which. For this - * reason, it is recommended the same format be used for all entries when - * mutating a Feature. - * - * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMembershipSpecs() - { - return $this->membership_specs; - } - - /** - * Optional. Membership-specific configuration for this Feature. If this Feature does - * not support any per-Membership configuration, this field may be unused. - * The keys indicate which Membership the configuration is for, in the form: - * projects/{p}/locations/{l}/memberships/{m} - * Where {p} is the project, {l} is a valid location and {m} is a valid - * Membership in this project at that location. {p} WILL match the Feature's - * project. - * {p} will always be returned as the project number, but the project ID is - * also accepted during input. If the same Membership is specified in the map - * twice (using the project ID form, and the project number form), exactly - * ONE of the entries will be saved, with no guarantees as to which. For this - * reason, it is recommended the same format be used for all entries when - * mutating a Feature. - * - * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMembershipSpecs($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\MembershipFeatureSpec::class); - $this->membership_specs = $arr; - - return $this; - } - - /** - * Output only. The Hub-wide Feature state. - * - * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeHub\V1\CommonFeatureState|null - */ - public function getState() - { - return $this->state; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * Output only. The Hub-wide Feature state. - * - * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeHub\V1\CommonFeatureState $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\CommonFeatureState::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Membership-specific Feature status. If this Feature does - * report any per-Membership status, this field may be unused. - * The keys indicate which Membership the state is for, in the form: - * projects/{p}/locations/{l}/memberships/{m} - * Where {p} is the project number, {l} is a valid location and {m} is a valid - * Membership in this project at that location. {p} MUST match the Feature's - * project number. - * - * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMembershipStates() - { - return $this->membership_states; - } - - /** - * Output only. Membership-specific Feature status. If this Feature does - * report any per-Membership status, this field may be unused. - * The keys indicate which Membership the state is for, in the form: - * projects/{p}/locations/{l}/memberships/{m} - * Where {p} is the project number, {l} is a valid location and {m} is a valid - * Membership in this project at that location. {p} MUST match the Feature's - * project number. - * - * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMembershipStates($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\MembershipFeatureState::class); - $this->membership_states = $arr; - - return $this; - } - - /** - * Output only. When the Feature resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. When the Feature resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. When the Feature resource was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. When the Feature resource was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. When the Feature resource was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. When the Feature resource was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php deleted file mode 100644 index 52b5f7983c2f..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.gkehub.v1.FeatureResourceState - */ -class FeatureResourceState extends \Google\Protobuf\Internal\Message -{ - /** - * The current state of the Feature resource in the Hub API. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The current state of the Feature resource in the Hub API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); - parent::__construct($data); - } - - /** - * The current state of the Feature resource in the Hub API. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The current state of the Feature resource in the Hub API. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\FeatureResourceState\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php deleted file mode 100644 index 127008cae944..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php +++ /dev/null @@ -1,88 +0,0 @@ -google.cloud.gkehub.v1.FeatureResourceState.State - */ -class State -{ - /** - * State is unknown or not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The Feature is being enabled, and the Feature resource is being created. - * Once complete, the corresponding Feature will be enabled in this Hub. - * - * Generated from protobuf enum ENABLING = 1; - */ - const ENABLING = 1; - /** - * The Feature is enabled in this Hub, and the Feature resource is fully - * available. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The Feature is being disabled in this Hub, and the Feature resource - * is being deleted. - * - * Generated from protobuf enum DISABLING = 3; - */ - const DISABLING = 3; - /** - * The Feature resource is being updated. - * - * Generated from protobuf enum UPDATING = 4; - */ - const UPDATING = 4; - /** - * The Feature resource is being updated by the Hub Service. - * - * Generated from protobuf enum SERVICE_UPDATING = 5; - */ - const SERVICE_UPDATING = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ENABLING => 'ENABLING', - self::ACTIVE => 'ACTIVE', - self::DISABLING => 'DISABLING', - self::UPDATING => 'UPDATING', - self::SERVICE_UPDATING => 'SERVICE_UPDATING', - ]; - - 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\GkeHub\V1\FeatureResourceState_State::class); - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php deleted file mode 100644 index d2188bb9360d..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.gkehub.v1.FeatureState - */ -class FeatureState extends \Google\Protobuf\Internal\Message -{ - /** - * The high-level, machine-readable status of this Feature. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1; - */ - protected $code = 0; - /** - * A human-readable description of the current status. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The time this status and any related Feature-specific details were updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * The high-level, machine-readable status of this Feature. - * @type string $description - * A human-readable description of the current status. - * @type \Google\Protobuf\Timestamp $update_time - * The time this status and any related Feature-specific details were updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); - parent::__construct($data); - } - - /** - * The high-level, machine-readable status of this Feature. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * The high-level, machine-readable status of this Feature. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\FeatureState\Code::class); - $this->code = $var; - - return $this; - } - - /** - * A human-readable description of the current status. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A human-readable description of the current status. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The time this status and any related Feature-specific details were updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @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); - } - - /** - * The time this status and any related Feature-specific details were updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php deleted file mode 100644 index 5fe378f63660..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.gkehub.v1.FeatureState.Code - */ -class Code -{ - /** - * Unknown or not set. - * - * Generated from protobuf enum CODE_UNSPECIFIED = 0; - */ - const CODE_UNSPECIFIED = 0; - /** - * The Feature is operating normally. - * - * Generated from protobuf enum OK = 1; - */ - const OK = 1; - /** - * The Feature has encountered an issue, and is operating in a degraded - * state. The Feature may need intervention to return to normal operation. - * See the description and any associated Feature-specific details for more - * information. - * - * Generated from protobuf enum WARNING = 2; - */ - const WARNING = 2; - /** - * The Feature is not operating or is in a severely degraded state. - * The Feature may need intervention to return to normal operation. - * See the description and any associated Feature-specific details for more - * information. - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - - private static $valueToName = [ - self::CODE_UNSPECIFIED => 'CODE_UNSPECIFIED', - self::OK => 'OK', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - ]; - - 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(Code::class, \Google\Cloud\GkeHub\V1\FeatureState_Code::class); - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php deleted file mode 100644 index 70f450cccddc..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php +++ /dev/null @@ -1,321 +0,0 @@ -google.cloud.gkehub.v1.GenerateConnectManifestRequest - */ -class GenerateConnectManifestRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Membership resource name the Agent will associate with, in - * the format `projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Namespace for GKE Connect agent resources. Defaults to - * `gke-connect`. - * The Connect Agent is authorized automatically when run in the default - * namespace. Otherwise, explicit authorization must be granted with an - * additional IAM binding. - * - * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $namespace = ''; - /** - * Optional. URI of a proxy if connectivity from the agent to - * gkeconnect.googleapis.com requires the use of a proxy. Format must be in - * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol - * supported by the proxy. This will direct the connect agent's outbound - * traffic through a HTTP(S) proxy. - * - * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy = ''; - /** - * Optional. The Connect agent version to use. Defaults to the most current - * version. - * - * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $version = ''; - /** - * Optional. If true, generate the resources for upgrade only. Some resources - * generated only for installation (e.g. secrets) will be excluded. - * - * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $is_upgrade = false; - /** - * Optional. The registry to fetch the connect agent image from. Defaults to - * gcr.io/gkeconnect. - * - * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $registry = ''; - /** - * Optional. The image pull secret content for the registry, if not public. - * - * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image_pull_secret_content = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Membership resource name the Agent will associate with, in - * the format `projects/*/locations/*/memberships/*`. - * @type string $namespace - * Optional. Namespace for GKE Connect agent resources. Defaults to - * `gke-connect`. - * The Connect Agent is authorized automatically when run in the default - * namespace. Otherwise, explicit authorization must be granted with an - * additional IAM binding. - * @type string $proxy - * Optional. URI of a proxy if connectivity from the agent to - * gkeconnect.googleapis.com requires the use of a proxy. Format must be in - * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol - * supported by the proxy. This will direct the connect agent's outbound - * traffic through a HTTP(S) proxy. - * @type string $version - * Optional. The Connect agent version to use. Defaults to the most current - * version. - * @type bool $is_upgrade - * Optional. If true, generate the resources for upgrade only. Some resources - * generated only for installation (e.g. secrets) will be excluded. - * @type string $registry - * Optional. The registry to fetch the connect agent image from. Defaults to - * gcr.io/gkeconnect. - * @type string $image_pull_secret_content - * Optional. The image pull secret content for the registry, if not public. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Membership resource name the Agent will associate with, in - * the format `projects/*/locations/*/memberships/*`. - * - * 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 Membership resource name the Agent will associate with, in - * the format `projects/*/locations/*/memberships/*`. - * - * 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; - } - - /** - * Optional. Namespace for GKE Connect agent resources. Defaults to - * `gke-connect`. - * The Connect Agent is authorized automatically when run in the default - * namespace. Otherwise, explicit authorization must be granted with an - * additional IAM binding. - * - * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNamespace() - { - return $this->namespace; - } - - /** - * Optional. Namespace for GKE Connect agent resources. Defaults to - * `gke-connect`. - * The Connect Agent is authorized automatically when run in the default - * namespace. Otherwise, explicit authorization must be granted with an - * additional IAM binding. - * - * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNamespace($var) - { - GPBUtil::checkString($var, True); - $this->namespace = $var; - - return $this; - } - - /** - * Optional. URI of a proxy if connectivity from the agent to - * gkeconnect.googleapis.com requires the use of a proxy. Format must be in - * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol - * supported by the proxy. This will direct the connect agent's outbound - * traffic through a HTTP(S) proxy. - * - * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getProxy() - { - return $this->proxy; - } - - /** - * Optional. URI of a proxy if connectivity from the agent to - * gkeconnect.googleapis.com requires the use of a proxy. Format must be in - * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol - * supported by the proxy. This will direct the connect agent's outbound - * traffic through a HTTP(S) proxy. - * - * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setProxy($var) - { - GPBUtil::checkString($var, False); - $this->proxy = $var; - - return $this; - } - - /** - * Optional. The Connect agent version to use. Defaults to the most current - * version. - * - * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional. The Connect agent version to use. Defaults to the most current - * version. - * - * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional. If true, generate the resources for upgrade only. Some resources - * generated only for installation (e.g. secrets) will be excluded. - * - * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIsUpgrade() - { - return $this->is_upgrade; - } - - /** - * Optional. If true, generate the resources for upgrade only. Some resources - * generated only for installation (e.g. secrets) will be excluded. - * - * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIsUpgrade($var) - { - GPBUtil::checkBool($var); - $this->is_upgrade = $var; - - return $this; - } - - /** - * Optional. The registry to fetch the connect agent image from. Defaults to - * gcr.io/gkeconnect. - * - * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRegistry() - { - return $this->registry; - } - - /** - * Optional. The registry to fetch the connect agent image from. Defaults to - * gcr.io/gkeconnect. - * - * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRegistry($var) - { - GPBUtil::checkString($var, True); - $this->registry = $var; - - return $this; - } - - /** - * Optional. The image pull secret content for the registry, if not public. - * - * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getImagePullSecretContent() - { - return $this->image_pull_secret_content; - } - - /** - * Optional. The image pull secret content for the registry, if not public. - * - * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setImagePullSecretContent($var) - { - GPBUtil::checkString($var, False); - $this->image_pull_secret_content = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php deleted file mode 100644 index fbecc64a2c15..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.gkehub.v1.GenerateConnectManifestResponse - */ -class GenerateConnectManifestResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The ordered list of Kubernetes resources that need to be applied to the - * cluster for GKE Connect agent installation/upgrade. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1; - */ - private $manifest; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeHub\V1\ConnectAgentResource>|\Google\Protobuf\Internal\RepeatedField $manifest - * The ordered list of Kubernetes resources that need to be applied to the - * cluster for GKE Connect agent installation/upgrade. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The ordered list of Kubernetes resources that need to be applied to the - * cluster for GKE Connect agent installation/upgrade. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getManifest() - { - return $this->manifest; - } - - /** - * The ordered list of Kubernetes resources that need to be applied to the - * cluster for GKE Connect agent installation/upgrade. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1; - * @param array<\Google\Cloud\GkeHub\V1\ConnectAgentResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setManifest($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ConnectAgentResource::class); - $this->manifest = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php deleted file mode 100644 index 5fd540450a6b..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.gkehub.v1.GetFeatureRequest - */ -class GetFeatureRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` - * - * @return \Google\Cloud\GkeHub\V1\GetFeatureRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` - * - * Generated from protobuf field string name = 1 [(.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/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php deleted file mode 100644 index 8f1b1f43d5a4..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.gkehub.v1.GetMembershipRequest - */ -class GetMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. Please see - * {@see GkeHubClient::membershipName()} for help formatting this field. - * - * @return \Google\Cloud\GkeHub\V1\GetMembershipRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * 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 Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * 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/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php deleted file mode 100644 index 5fc98881e773..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.gkehub.v1.GkeCluster - */ -class GkeCluster extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For - * example: - * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster - * Zonal clusters are also supported. - * - * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $resource_link = ''; - /** - * Output only. If cluster_missing is set then it denotes that the GKE cluster - * no longer exists in the GKE Control Plane. - * - * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_missing = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_link - * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For - * example: - * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster - * Zonal clusters are also supported. - * @type bool $cluster_missing - * Output only. If cluster_missing is set then it denotes that the GKE cluster - * no longer exists in the GKE Control Plane. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For - * example: - * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster - * Zonal clusters are also supported. - * - * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getResourceLink() - { - return $this->resource_link; - } - - /** - * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For - * example: - * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster - * Zonal clusters are also supported. - * - * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setResourceLink($var) - { - GPBUtil::checkString($var, True); - $this->resource_link = $var; - - return $this; - } - - /** - * Output only. If cluster_missing is set then it denotes that the GKE cluster - * no longer exists in the GKE Control Plane. - * - * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getClusterMissing() - { - return $this->cluster_missing; - } - - /** - * Output only. If cluster_missing is set then it denotes that the GKE cluster - * no longer exists in the GKE Control Plane. - * - * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setClusterMissing($var) - { - GPBUtil::checkBool($var); - $this->cluster_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php deleted file mode 100644 index 54fd9c79de89..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.gkehub.v1.KubernetesMetadata - */ -class KubernetesMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Kubernetes API server version string as reported by - * `/version`. - * - * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $kubernetes_api_server_version = ''; - /** - * Output only. Node providerID as reported by the first node in the list of - * nodes on the Kubernetes endpoint. On Kubernetes platforms that support - * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the - * node_provider_id will be empty. - * - * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $node_provider_id = ''; - /** - * Output only. Node count as reported by Kubernetes nodes resources. - * - * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $node_count = 0; - /** - * Output only. vCPU count as reported by Kubernetes nodes resources. - * - * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $vcpu_count = 0; - /** - * Output only. The total memory capacity as reported by the sum of all - * Kubernetes nodes resources, defined in MB. - * - * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $memory_mb = 0; - /** - * Output only. The time at which these details were last updated. This - * update_time is different from the Membership-level update_time since - * EndpointDetails are updated internally for API consumers. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kubernetes_api_server_version - * Output only. Kubernetes API server version string as reported by - * `/version`. - * @type string $node_provider_id - * Output only. Node providerID as reported by the first node in the list of - * nodes on the Kubernetes endpoint. On Kubernetes platforms that support - * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the - * node_provider_id will be empty. - * @type int $node_count - * Output only. Node count as reported by Kubernetes nodes resources. - * @type int $vcpu_count - * Output only. vCPU count as reported by Kubernetes nodes resources. - * @type int $memory_mb - * Output only. The total memory capacity as reported by the sum of all - * Kubernetes nodes resources, defined in MB. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which these details were last updated. This - * update_time is different from the Membership-level update_time since - * EndpointDetails are updated internally for API consumers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Kubernetes API server version string as reported by - * `/version`. - * - * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getKubernetesApiServerVersion() - { - return $this->kubernetes_api_server_version; - } - - /** - * Output only. Kubernetes API server version string as reported by - * `/version`. - * - * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setKubernetesApiServerVersion($var) - { - GPBUtil::checkString($var, True); - $this->kubernetes_api_server_version = $var; - - return $this; - } - - /** - * Output only. Node providerID as reported by the first node in the list of - * nodes on the Kubernetes endpoint. On Kubernetes platforms that support - * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the - * node_provider_id will be empty. - * - * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNodeProviderId() - { - return $this->node_provider_id; - } - - /** - * Output only. Node providerID as reported by the first node in the list of - * nodes on the Kubernetes endpoint. On Kubernetes platforms that support - * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the - * node_provider_id will be empty. - * - * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNodeProviderId($var) - { - GPBUtil::checkString($var, True); - $this->node_provider_id = $var; - - return $this; - } - - /** - * Output only. Node count as reported by Kubernetes nodes resources. - * - * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Output only. Node count as reported by Kubernetes nodes resources. - * - * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->node_count = $var; - - return $this; - } - - /** - * Output only. vCPU count as reported by Kubernetes nodes resources. - * - * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getVcpuCount() - { - return $this->vcpu_count; - } - - /** - * Output only. vCPU count as reported by Kubernetes nodes resources. - * - * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setVcpuCount($var) - { - GPBUtil::checkInt32($var); - $this->vcpu_count = $var; - - return $this; - } - - /** - * Output only. The total memory capacity as reported by the sum of all - * Kubernetes nodes resources, defined in MB. - * - * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getMemoryMb() - { - return $this->memory_mb; - } - - /** - * Output only. The total memory capacity as reported by the sum of all - * Kubernetes nodes resources, defined in MB. - * - * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setMemoryMb($var) - { - GPBUtil::checkInt32($var); - $this->memory_mb = $var; - - return $this; - } - - /** - * Output only. The time at which these details were last updated. This - * update_time is different from the Membership-level update_time since - * EndpointDetails are updated internally for API consumers. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.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 these details were last updated. This - * update_time is different from the Membership-level update_time since - * EndpointDetails are updated internally for API consumers. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.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; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php deleted file mode 100644 index 6bd38f96b363..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php +++ /dev/null @@ -1,245 +0,0 @@ -google.cloud.gkehub.v1.KubernetesResource - */ -class KubernetesResource extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. The YAML representation of the Membership CR. This field is - * ignored for GKE clusters where Hub can read the CR directly. - * Callers should provide the CR that is currently present in the cluster - * during CreateMembership or UpdateMembership, or leave this field empty if - * none exists. The CR manifest is used to validate the cluster has not been - * registered with another Membership. - * - * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $membership_cr_manifest = ''; - /** - * Output only. Additional Kubernetes resources that need to be applied to the - * cluster after Membership creation, and after every update. - * This field is only populated in the Membership returned from a successful - * long-running operation from CreateMembership or UpdateMembership. It is not - * populated during normal GetMembership or ListMemberships requests. To get - * the resource manifest after the initial registration, the caller should - * make a UpdateMembership call with an empty field mask. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $membership_resources; - /** - * Output only. The Kubernetes resources for installing the GKE Connect agent - * This field is only populated in the Membership returned from a successful - * long-running operation from CreateMembership or UpdateMembership. It is not - * populated during normal GetMembership or ListMemberships requests. To get - * the resource manifest after the initial registration, the caller should - * make a UpdateMembership call with an empty field mask. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $connect_resources; - /** - * Optional. Options for Kubernetes resource generation. - * - * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $membership_cr_manifest - * Input only. The YAML representation of the Membership CR. This field is - * ignored for GKE clusters where Hub can read the CR directly. - * Callers should provide the CR that is currently present in the cluster - * during CreateMembership or UpdateMembership, or leave this field empty if - * none exists. The CR manifest is used to validate the cluster has not been - * registered with another Membership. - * @type array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $membership_resources - * Output only. Additional Kubernetes resources that need to be applied to the - * cluster after Membership creation, and after every update. - * This field is only populated in the Membership returned from a successful - * long-running operation from CreateMembership or UpdateMembership. It is not - * populated during normal GetMembership or ListMemberships requests. To get - * the resource manifest after the initial registration, the caller should - * make a UpdateMembership call with an empty field mask. - * @type array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $connect_resources - * Output only. The Kubernetes resources for installing the GKE Connect agent - * This field is only populated in the Membership returned from a successful - * long-running operation from CreateMembership or UpdateMembership. It is not - * populated during normal GetMembership or ListMemberships requests. To get - * the resource manifest after the initial registration, the caller should - * make a UpdateMembership call with an empty field mask. - * @type \Google\Cloud\GkeHub\V1\ResourceOptions $resource_options - * Optional. Options for Kubernetes resource generation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Input only. The YAML representation of the Membership CR. This field is - * ignored for GKE clusters where Hub can read the CR directly. - * Callers should provide the CR that is currently present in the cluster - * during CreateMembership or UpdateMembership, or leave this field empty if - * none exists. The CR manifest is used to validate the cluster has not been - * registered with another Membership. - * - * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getMembershipCrManifest() - { - return $this->membership_cr_manifest; - } - - /** - * Input only. The YAML representation of the Membership CR. This field is - * ignored for GKE clusters where Hub can read the CR directly. - * Callers should provide the CR that is currently present in the cluster - * during CreateMembership or UpdateMembership, or leave this field empty if - * none exists. The CR manifest is used to validate the cluster has not been - * registered with another Membership. - * - * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMembershipCrManifest($var) - { - GPBUtil::checkString($var, True); - $this->membership_cr_manifest = $var; - - return $this; - } - - /** - * Output only. Additional Kubernetes resources that need to be applied to the - * cluster after Membership creation, and after every update. - * This field is only populated in the Membership returned from a successful - * long-running operation from CreateMembership or UpdateMembership. It is not - * populated during normal GetMembership or ListMemberships requests. To get - * the resource manifest after the initial registration, the caller should - * make a UpdateMembership call with an empty field mask. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMembershipResources() - { - return $this->membership_resources; - } - - /** - * Output only. Additional Kubernetes resources that need to be applied to the - * cluster after Membership creation, and after every update. - * This field is only populated in the Membership returned from a successful - * long-running operation from CreateMembership or UpdateMembership. It is not - * populated during normal GetMembership or ListMemberships requests. To get - * the resource manifest after the initial registration, the caller should - * make a UpdateMembership call with an empty field mask. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMembershipResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ResourceManifest::class); - $this->membership_resources = $arr; - - return $this; - } - - /** - * Output only. The Kubernetes resources for installing the GKE Connect agent - * This field is only populated in the Membership returned from a successful - * long-running operation from CreateMembership or UpdateMembership. It is not - * populated during normal GetMembership or ListMemberships requests. To get - * the resource manifest after the initial registration, the caller should - * make a UpdateMembership call with an empty field mask. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConnectResources() - { - return $this->connect_resources; - } - - /** - * Output only. The Kubernetes resources for installing the GKE Connect agent - * This field is only populated in the Membership returned from a successful - * long-running operation from CreateMembership or UpdateMembership. It is not - * populated during normal GetMembership or ListMemberships requests. To get - * the resource manifest after the initial registration, the caller should - * make a UpdateMembership call with an empty field mask. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConnectResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ResourceManifest::class); - $this->connect_resources = $arr; - - return $this; - } - - /** - * Optional. Options for Kubernetes resource generation. - * - * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeHub\V1\ResourceOptions|null - */ - public function getResourceOptions() - { - return $this->resource_options; - } - - public function hasResourceOptions() - { - return isset($this->resource_options); - } - - public function clearResourceOptions() - { - unset($this->resource_options); - } - - /** - * Optional. Options for Kubernetes resource generation. - * - * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeHub\V1\ResourceOptions $var - * @return $this - */ - public function setResourceOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\ResourceOptions::class); - $this->resource_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php deleted file mode 100644 index e9d2982682b6..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php +++ /dev/null @@ -1,273 +0,0 @@ -google.cloud.gkehub.v1.ListFeaturesRequest - */ -class ListFeaturesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent (project and location) where the Features will be - * listed. Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * When requesting a 'page' of resources, `page_size` specifies number of - * resources to return. If unspecified or set to 0, all resources will - * be returned. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Token returned by previous call to `ListFeatures` which - * specifies the position in the list from where to continue listing the - * resources. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Lists Features that match the filter expression, following the syntax - * outlined in https://google.aip.dev/160. - * Examples: - * - Feature with the name "servicemesh" in project "foo-proj": - * name = "projects/foo-proj/locations/global/features/servicemesh" - * - Features that have a label called `foo`: - * labels.foo:* - * - Features that have a label called `foo` whose value is `bar`: - * labels.foo = bar - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * One or more fields to compare and use to sort the output. - * See https://google.aip.dev/132#ordering. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent (project and location) where the Features will be - * listed. Specified in the format `projects/*/locations/*`. - * - * @return \Google\Cloud\GkeHub\V1\ListFeaturesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent (project and location) where the Features will be - * listed. Specified in the format `projects/*/locations/*`. - * @type int $page_size - * When requesting a 'page' of resources, `page_size` specifies number of - * resources to return. If unspecified or set to 0, all resources will - * be returned. - * @type string $page_token - * Token returned by previous call to `ListFeatures` which - * specifies the position in the list from where to continue listing the - * resources. - * @type string $filter - * Lists Features that match the filter expression, following the syntax - * outlined in https://google.aip.dev/160. - * Examples: - * - Feature with the name "servicemesh" in project "foo-proj": - * name = "projects/foo-proj/locations/global/features/servicemesh" - * - Features that have a label called `foo`: - * labels.foo:* - * - Features that have a label called `foo` whose value is `bar`: - * labels.foo = bar - * @type string $order_by - * One or more fields to compare and use to sort the output. - * See https://google.aip.dev/132#ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent (project and location) where the Features will be - * listed. Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent (project and location) where the Features will be - * listed. Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * When requesting a 'page' of resources, `page_size` specifies number of - * resources to return. If unspecified or set to 0, all resources will - * be returned. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * When requesting a 'page' of resources, `page_size` specifies number of - * resources to return. If unspecified or set to 0, all resources will - * be returned. - * - * 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; - } - - /** - * Token returned by previous call to `ListFeatures` which - * specifies the position in the list from where to continue listing the - * resources. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Token returned by previous call to `ListFeatures` which - * specifies the position in the list from where to continue listing the - * resources. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Lists Features that match the filter expression, following the syntax - * outlined in https://google.aip.dev/160. - * Examples: - * - Feature with the name "servicemesh" in project "foo-proj": - * name = "projects/foo-proj/locations/global/features/servicemesh" - * - Features that have a label called `foo`: - * labels.foo:* - * - Features that have a label called `foo` whose value is `bar`: - * labels.foo = bar - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Lists Features that match the filter expression, following the syntax - * outlined in https://google.aip.dev/160. - * Examples: - * - Feature with the name "servicemesh" in project "foo-proj": - * name = "projects/foo-proj/locations/global/features/servicemesh" - * - Features that have a label called `foo`: - * labels.foo:* - * - Features that have a label called `foo` whose value is `bar`: - * labels.foo = bar - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * One or more fields to compare and use to sort the output. - * See https://google.aip.dev/132#ordering. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * One or more fields to compare and use to sort the output. - * See https://google.aip.dev/132#ordering. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php deleted file mode 100644 index a1b284439a46..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.gkehub.v1.ListFeaturesResponse - */ -class ListFeaturesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of matching Features - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1; - */ - private $resources; - /** - * A token to request the next page of resources from the - * `ListFeatures` method. The value of an empty string means - * that there are no more resources to return. - * - * 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\GkeHub\V1\Feature>|\Google\Protobuf\Internal\RepeatedField $resources - * The list of matching Features - * @type string $next_page_token - * A token to request the next page of resources from the - * `ListFeatures` method. The value of an empty string means - * that there are no more resources to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of matching Features - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * The list of matching Features - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1; - * @param array<\Google\Cloud\GkeHub\V1\Feature>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\Feature::class); - $this->resources = $arr; - - return $this; - } - - /** - * A token to request the next page of resources from the - * `ListFeatures` method. The value of an empty string means - * that there are no more resources to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to request the next page of resources from the - * `ListFeatures` method. The value of an empty string means - * that there are no more resources to return. - * - * 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/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php deleted file mode 100644 index 4ae0d7ee4984..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php +++ /dev/null @@ -1,287 +0,0 @@ -google.cloud.gkehub.v1.ListMembershipsRequest - */ -class ListMembershipsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent (project and location) where the Memberships will be - * listed. Specified in the format `projects/*/locations/*`. - * `projects/*/locations/-` list memberships in all the regions. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. When requesting a 'page' of resources, `page_size` specifies - * number of resources to return. If unspecified or set to 0, all resources - * will be returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Token returned by previous call to `ListMemberships` which - * specifies the position in the list from where to continue listing the - * resources. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Lists Memberships that match the filter expression, following the - * syntax outlined in https://google.aip.dev/160. - * Examples: - * - Name is `bar` in project `foo-proj` and location `global`: - * name = "projects/foo-proj/locations/global/membership/bar" - * - Memberships that have a label called `foo`: - * labels.foo:* - * - Memberships that have a label called `foo` whose value is `bar`: - * labels.foo = bar - * - Memberships in the CREATING state: - * state = CREATING - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. One or more fields to compare and use to sort the output. - * See https://google.aip.dev/132#ordering. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent (project and location) where the Memberships will be - * listed. Specified in the format `projects/*/locations/*`. - * `projects/*/locations/-` list memberships in all the regions. Please see - * {@see GkeHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\GkeHub\V1\ListMembershipsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent (project and location) where the Memberships will be - * listed. Specified in the format `projects/*/locations/*`. - * `projects/*/locations/-` list memberships in all the regions. - * @type int $page_size - * Optional. When requesting a 'page' of resources, `page_size` specifies - * number of resources to return. If unspecified or set to 0, all resources - * will be returned. - * @type string $page_token - * Optional. Token returned by previous call to `ListMemberships` which - * specifies the position in the list from where to continue listing the - * resources. - * @type string $filter - * Optional. Lists Memberships that match the filter expression, following the - * syntax outlined in https://google.aip.dev/160. - * Examples: - * - Name is `bar` in project `foo-proj` and location `global`: - * name = "projects/foo-proj/locations/global/membership/bar" - * - Memberships that have a label called `foo`: - * labels.foo:* - * - Memberships that have a label called `foo` whose value is `bar`: - * labels.foo = bar - * - Memberships in the CREATING state: - * state = CREATING - * @type string $order_by - * Optional. One or more fields to compare and use to sort the output. - * See https://google.aip.dev/132#ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent (project and location) where the Memberships will be - * listed. Specified in the format `projects/*/locations/*`. - * `projects/*/locations/-` list memberships in all the regions. - * - * 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 (project and location) where the Memberships will be - * listed. Specified in the format `projects/*/locations/*`. - * `projects/*/locations/-` list memberships in all the regions. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. When requesting a 'page' of resources, `page_size` specifies - * number of resources to return. If unspecified or set to 0, all resources - * will be returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. When requesting a 'page' of resources, `page_size` specifies - * number of resources to return. If unspecified or set to 0, all resources - * will be returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Token returned by previous call to `ListMemberships` which - * specifies the position in the list from where to continue listing the - * resources. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Token returned by previous call to `ListMemberships` which - * specifies the position in the list from where to continue listing the - * resources. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Lists Memberships that match the filter expression, following the - * syntax outlined in https://google.aip.dev/160. - * Examples: - * - Name is `bar` in project `foo-proj` and location `global`: - * name = "projects/foo-proj/locations/global/membership/bar" - * - Memberships that have a label called `foo`: - * labels.foo:* - * - Memberships that have a label called `foo` whose value is `bar`: - * labels.foo = bar - * - Memberships in the CREATING state: - * state = CREATING - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Lists Memberships that match the filter expression, following the - * syntax outlined in https://google.aip.dev/160. - * Examples: - * - Name is `bar` in project `foo-proj` and location `global`: - * name = "projects/foo-proj/locations/global/membership/bar" - * - Memberships that have a label called `foo`: - * labels.foo:* - * - Memberships that have a label called `foo` whose value is `bar`: - * labels.foo = bar - * - Memberships in the CREATING state: - * state = CREATING - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. One or more fields to compare and use to sort the output. - * See https://google.aip.dev/132#ordering. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. One or more fields to compare and use to sort the output. - * See https://google.aip.dev/132#ordering. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php deleted file mode 100644 index 401758bd06e4..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.gkehub.v1.ListMembershipsResponse - */ -class ListMembershipsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of matching Memberships. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1; - */ - private $resources; - /** - * A token to request the next page of resources from the - * `ListMemberships` method. The value of an empty string means that - * there are no more resources to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * List of locations that could not be reached while fetching this list. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\GkeHub\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $resources - * The list of matching Memberships. - * @type string $next_page_token - * A token to request the next page of resources from the - * `ListMemberships` method. The value of an empty string means that - * there are no more resources to return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * List of locations that could not be reached while fetching this list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of matching Memberships. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * The list of matching Memberships. - * - * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1; - * @param array<\Google\Cloud\GkeHub\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\Membership::class); - $this->resources = $arr; - - return $this; - } - - /** - * A token to request the next page of resources from the - * `ListMemberships` method. The value of an empty string means that - * there are no more resources to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to request the next page of resources from the - * `ListMemberships` method. The value of an empty string means that - * there are no more resources to return. - * - * 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; - } - - /** - * List of locations that could not be reached while fetching this list. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * List of locations that could not be reached while fetching this list. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php deleted file mode 100644 index 38ddfe562907..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php +++ /dev/null @@ -1,641 +0,0 @@ -google.cloud.gkehub.v1.Membership - */ -class Membership extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The full, unique name of this Membership resource in the - * format `projects/*/locations/*/memberships/{membership_id}`, set during - * creation. - * `membership_id` must be a valid RFC 1123 compliant DNS label: - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Optional. Labels for this membership. - * - * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. Description of this membership, limited to 63 characters. - * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` - * This field is present for legacy purposes. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. State of the Membership resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = null; - /** - * Output only. When the Membership was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. When the Membership was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. When the Membership was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Optional. An externally-generated and managed ID for this Membership. This - * ID may be modified after creation, but this is not recommended. - * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` - * If this Membership represents a Kubernetes cluster, this value should be - * set to the UID of the `kube-system` namespace object. - * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_id = ''; - /** - * Output only. For clusters using Connect, the timestamp of the most recent - * connection established with Google Cloud. This time is updated every - * several minutes, not continuously. For clusters that do not use GKE - * Connect, or that have never connected successfully, this field will be - * unset. - * - * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_connection_time = null; - /** - * Output only. Google-generated UUID for this resource. This is unique across - * all Membership resources. If a Membership resource is deleted and another - * resource with the same name is created, it gets a different unique_id. - * - * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $unique_id = ''; - /** - * Optional. How to identify workloads from this Membership. - * See the documentation on Workload Identity for more details: - * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity - * - * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $authority = null; - /** - * Optional. The monitoring config information for this membership. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $monitoring_config = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\V1\MembershipEndpoint $endpoint - * Optional. Endpoint information to reach this member. - * @type string $name - * Output only. The full, unique name of this Membership resource in the - * format `projects/*/locations/*/memberships/{membership_id}`, set during - * creation. - * `membership_id` must be a valid RFC 1123 compliant DNS label: - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels for this membership. - * @type string $description - * Output only. Description of this membership, limited to 63 characters. - * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` - * This field is present for legacy purposes. - * @type \Google\Cloud\GkeHub\V1\MembershipState $state - * Output only. State of the Membership resource. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. When the Membership was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. When the Membership was last updated. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. When the Membership was deleted. - * @type string $external_id - * Optional. An externally-generated and managed ID for this Membership. This - * ID may be modified after creation, but this is not recommended. - * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` - * If this Membership represents a Kubernetes cluster, this value should be - * set to the UID of the `kube-system` namespace object. - * @type \Google\Protobuf\Timestamp $last_connection_time - * Output only. For clusters using Connect, the timestamp of the most recent - * connection established with Google Cloud. This time is updated every - * several minutes, not continuously. For clusters that do not use GKE - * Connect, or that have never connected successfully, this field will be - * unset. - * @type string $unique_id - * Output only. Google-generated UUID for this resource. This is unique across - * all Membership resources. If a Membership resource is deleted and another - * resource with the same name is created, it gets a different unique_id. - * @type \Google\Cloud\GkeHub\V1\Authority $authority - * Optional. How to identify workloads from this Membership. - * See the documentation on Workload Identity for more details: - * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity - * @type \Google\Cloud\GkeHub\V1\MonitoringConfig $monitoring_config - * Optional. The monitoring config information for this membership. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Endpoint information to reach this member. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeHub\V1\MembershipEndpoint|null - */ - public function getEndpoint() - { - return $this->readOneof(4); - } - - public function hasEndpoint() - { - return $this->hasOneof(4); - } - - /** - * Optional. Endpoint information to reach this member. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeHub\V1\MembershipEndpoint $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MembershipEndpoint::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The full, unique name of this Membership resource in the - * format `projects/*/locations/*/memberships/{membership_id}`, set during - * creation. - * `membership_id` must be a valid RFC 1123 compliant DNS label: - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The full, unique name of this Membership resource in the - * format `projects/*/locations/*/memberships/{membership_id}`, set during - * creation. - * `membership_id` must be a valid RFC 1123 compliant DNS label: - * 1. At most 63 characters in length - * 2. It must consist of lower case alphanumeric characters or `-` - * 3. It must start and end with an alphanumeric character - * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, - * with a maximum length of 63 characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Labels for this membership. - * - * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels for this membership. - * - * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Description of this membership, limited to 63 characters. - * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` - * This field is present for legacy purposes. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. Description of this membership, limited to 63 characters. - * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` - * This field is present for legacy purposes. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. State of the Membership resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeHub\V1\MembershipState|null - */ - public function getState() - { - return $this->state; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * Output only. State of the Membership resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeHub\V1\MembershipState $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MembershipState::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. When the Membership 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. When the Membership 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; - } - - /** - * Output only. When the Membership was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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. When the Membership was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. When the Membership was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. When the Membership was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Optional. An externally-generated and managed ID for this Membership. This - * ID may be modified after creation, but this is not recommended. - * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` - * If this Membership represents a Kubernetes cluster, this value should be - * set to the UID of the `kube-system` namespace object. - * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Optional. An externally-generated and managed ID for this Membership. This - * ID may be modified after creation, but this is not recommended. - * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` - * If this Membership represents a Kubernetes cluster, this value should be - * set to the UID of the `kube-system` namespace object. - * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - - /** - * Output only. For clusters using Connect, the timestamp of the most recent - * connection established with Google Cloud. This time is updated every - * several minutes, not continuously. For clusters that do not use GKE - * Connect, or that have never connected successfully, this field will be - * unset. - * - * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastConnectionTime() - { - return $this->last_connection_time; - } - - public function hasLastConnectionTime() - { - return isset($this->last_connection_time); - } - - public function clearLastConnectionTime() - { - unset($this->last_connection_time); - } - - /** - * Output only. For clusters using Connect, the timestamp of the most recent - * connection established with Google Cloud. This time is updated every - * several minutes, not continuously. For clusters that do not use GKE - * Connect, or that have never connected successfully, this field will be - * unset. - * - * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastConnectionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_connection_time = $var; - - return $this; - } - - /** - * Output only. Google-generated UUID for this resource. This is unique across - * all Membership resources. If a Membership resource is deleted and another - * resource with the same name is created, it gets a different unique_id. - * - * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUniqueId() - { - return $this->unique_id; - } - - /** - * Output only. Google-generated UUID for this resource. This is unique across - * all Membership resources. If a Membership resource is deleted and another - * resource with the same name is created, it gets a different unique_id. - * - * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUniqueId($var) - { - GPBUtil::checkString($var, True); - $this->unique_id = $var; - - return $this; - } - - /** - * Optional. How to identify workloads from this Membership. - * See the documentation on Workload Identity for more details: - * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity - * - * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeHub\V1\Authority|null - */ - public function getAuthority() - { - return $this->authority; - } - - public function hasAuthority() - { - return isset($this->authority); - } - - public function clearAuthority() - { - unset($this->authority); - } - - /** - * Optional. How to identify workloads from this Membership. - * See the documentation on Workload Identity for more details: - * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity - * - * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeHub\V1\Authority $var - * @return $this - */ - public function setAuthority($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Authority::class); - $this->authority = $var; - - return $this; - } - - /** - * Optional. The monitoring config information for this membership. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeHub\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. The monitoring config information for this membership. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeHub\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php deleted file mode 100644 index 6558053fe879..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php +++ /dev/null @@ -1,228 +0,0 @@ -google.cloud.gkehub.v1.MembershipEndpoint - */ -class MembershipEndpoint extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. GKE-specific information. Only present if this Membership is a GKE cluster. - * - * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $gke_cluster = null; - /** - * Output only. Useful Kubernetes-specific metadata. - * - * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $kubernetes_metadata = null; - /** - * Optional. The in-cluster Kubernetes Resources that should be applied for a - * correctly registered cluster, in the steady state. These resources: - * * Ensure that the cluster is exclusively registered to one and only one - * Hub Membership. - * * Propagate Workload Pool Information available in the Membership - * Authority field. - * * Ensure proper initial configuration of default Hub Features. - * - * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $kubernetes_resource = null; - /** - * Output only. Whether the lifecycle of this membership is managed by a - * google cluster platform service. - * - * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $google_managed = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\V1\GkeCluster $gke_cluster - * Optional. GKE-specific information. Only present if this Membership is a GKE cluster. - * @type \Google\Cloud\GkeHub\V1\KubernetesMetadata $kubernetes_metadata - * Output only. Useful Kubernetes-specific metadata. - * @type \Google\Cloud\GkeHub\V1\KubernetesResource $kubernetes_resource - * Optional. The in-cluster Kubernetes Resources that should be applied for a - * correctly registered cluster, in the steady state. These resources: - * * Ensure that the cluster is exclusively registered to one and only one - * Hub Membership. - * * Propagate Workload Pool Information available in the Membership - * Authority field. - * * Ensure proper initial configuration of default Hub Features. - * @type bool $google_managed - * Output only. Whether the lifecycle of this membership is managed by a - * google cluster platform service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Optional. GKE-specific information. Only present if this Membership is a GKE cluster. - * - * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeHub\V1\GkeCluster|null - */ - public function getGkeCluster() - { - return $this->gke_cluster; - } - - public function hasGkeCluster() - { - return isset($this->gke_cluster); - } - - public function clearGkeCluster() - { - unset($this->gke_cluster); - } - - /** - * Optional. GKE-specific information. Only present if this Membership is a GKE cluster. - * - * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeHub\V1\GkeCluster $var - * @return $this - */ - public function setGkeCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\GkeCluster::class); - $this->gke_cluster = $var; - - return $this; - } - - /** - * Output only. Useful Kubernetes-specific metadata. - * - * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\GkeHub\V1\KubernetesMetadata|null - */ - public function getKubernetesMetadata() - { - return $this->kubernetes_metadata; - } - - public function hasKubernetesMetadata() - { - return isset($this->kubernetes_metadata); - } - - public function clearKubernetesMetadata() - { - unset($this->kubernetes_metadata); - } - - /** - * Output only. Useful Kubernetes-specific metadata. - * - * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\GkeHub\V1\KubernetesMetadata $var - * @return $this - */ - public function setKubernetesMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\KubernetesMetadata::class); - $this->kubernetes_metadata = $var; - - return $this; - } - - /** - * Optional. The in-cluster Kubernetes Resources that should be applied for a - * correctly registered cluster, in the steady state. These resources: - * * Ensure that the cluster is exclusively registered to one and only one - * Hub Membership. - * * Propagate Workload Pool Information available in the Membership - * Authority field. - * * Ensure proper initial configuration of default Hub Features. - * - * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\GkeHub\V1\KubernetesResource|null - */ - public function getKubernetesResource() - { - return $this->kubernetes_resource; - } - - public function hasKubernetesResource() - { - return isset($this->kubernetes_resource); - } - - public function clearKubernetesResource() - { - unset($this->kubernetes_resource); - } - - /** - * Optional. The in-cluster Kubernetes Resources that should be applied for a - * correctly registered cluster, in the steady state. These resources: - * * Ensure that the cluster is exclusively registered to one and only one - * Hub Membership. - * * Propagate Workload Pool Information available in the Membership - * Authority field. - * * Ensure proper initial configuration of default Hub Features. - * - * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\GkeHub\V1\KubernetesResource $var - * @return $this - */ - public function setKubernetesResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\KubernetesResource::class); - $this->kubernetes_resource = $var; - - return $this; - } - - /** - * Output only. Whether the lifecycle of this membership is managed by a - * google cluster platform service. - * - * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getGoogleManaged() - { - return $this->google_managed; - } - - /** - * Output only. Whether the lifecycle of this membership is managed by a - * google cluster platform service. - * - * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setGoogleManaged($var) - { - GPBUtil::checkBool($var); - $this->google_managed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php deleted file mode 100644 index cbb126324b89..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.gkehub.v1.MembershipFeatureSpec - */ -class MembershipFeatureSpec extends \Google\Protobuf\Internal\Message -{ - protected $feature_spec; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $configmanagement - * Config Management-specific spec. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); - parent::__construct($data); - } - - /** - * Config Management-specific spec. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec|null - */ - public function getConfigmanagement() - { - return $this->readOneof(106); - } - - public function hasConfigmanagement() - { - return $this->hasOneof(106); - } - - /** - * Config Management-specific spec. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $var - * @return $this - */ - public function setConfigmanagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec::class); - $this->writeOneof(106, $var); - - return $this; - } - - /** - * @return string - */ - public function getFeatureSpec() - { - return $this->whichOneof("feature_spec"); - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php deleted file mode 100644 index cdbc23edb08a..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.gkehub.v1.MembershipFeatureState - */ -class MembershipFeatureState extends \Google\Protobuf\Internal\Message -{ - /** - * The high-level state of this Feature for a single membership. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1; - */ - protected $state = null; - protected $feature_state; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState $configmanagement - * Config Management-specific state. - * @type \Google\Cloud\GkeHub\V1\FeatureState $state - * The high-level state of this Feature for a single membership. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce(); - parent::__construct($data); - } - - /** - * Config Management-specific state. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; - * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState|null - */ - public function getConfigmanagement() - { - return $this->readOneof(106); - } - - public function hasConfigmanagement() - { - return $this->hasOneof(106); - } - - /** - * Config Management-specific state. - * - * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; - * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState $var - * @return $this - */ - public function setConfigmanagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState::class); - $this->writeOneof(106, $var); - - return $this; - } - - /** - * The high-level state of this Feature for a single membership. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1; - * @return \Google\Cloud\GkeHub\V1\FeatureState|null - */ - public function getState() - { - return $this->state; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * The high-level state of this Feature for a single membership. - * - * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1; - * @param \Google\Cloud\GkeHub\V1\FeatureState $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureState::class); - $this->state = $var; - - return $this; - } - - /** - * @return string - */ - public function getFeatureState() - { - return $this->whichOneof("feature_state"); - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php deleted file mode 100644 index c46968fcb0e0..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.gkehub.v1.MembershipState - */ -class MembershipState extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The current state of the Membership resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $code = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * Output only. The current state of the Membership resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The current state of the Membership resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * Output only. The current state of the Membership resource. - * - * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\MembershipState\Code::class); - $this->code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php deleted file mode 100644 index 7c40449feacd..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.gkehub.v1.MembershipState.Code - */ -class Code -{ - /** - * The code is not set. - * - * Generated from protobuf enum CODE_UNSPECIFIED = 0; - */ - const CODE_UNSPECIFIED = 0; - /** - * The cluster is being registered. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The cluster is registered. - * - * Generated from protobuf enum READY = 2; - */ - const READY = 2; - /** - * The cluster is being unregistered. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The Membership is being updated. - * - * Generated from protobuf enum UPDATING = 4; - */ - const UPDATING = 4; - /** - * The Membership is being updated by the Hub Service. - * - * Generated from protobuf enum SERVICE_UPDATING = 5; - */ - const SERVICE_UPDATING = 5; - - private static $valueToName = [ - self::CODE_UNSPECIFIED => 'CODE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::READY => 'READY', - self::DELETING => 'DELETING', - self::UPDATING => 'UPDATING', - self::SERVICE_UPDATING => 'SERVICE_UPDATING', - ]; - - 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(Code::class, \Google\Cloud\GkeHub\V1\MembershipState_Code::class); - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php deleted file mode 100644 index 94b7778b1b70..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.gkehub.v1.MonitoringConfig - */ -class MonitoringConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Project used to report Metrics - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $project_id = ''; - /** - * Immutable. Location used to report Metrics - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $location = ''; - /** - * Immutable. Cluster name used to report metrics. - * For Anthos on VMWare/Baremetal, it would be in format - * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in - * format - * `{azureClusters, awsClusters}/cluster_name`. - * - * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $cluster = ''; - /** - * Kubernetes system metrics, if available, are written to this prefix. - * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos - * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today - * but will migration to be under kubernetes.io/anthos - * - * Generated from protobuf field string kubernetes_metrics_prefix = 4; - */ - protected $kubernetes_metrics_prefix = ''; - /** - * Immutable. Cluster hash, this is a unique string generated by google code, - * which does not contain any PII, which we can use to reference the cluster. - * This is expected to be created by the monitoring stack and persisted into - * the Cluster object as well as to GKE-Hub. - * - * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $cluster_hash = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Immutable. Project used to report Metrics - * @type string $location - * Immutable. Location used to report Metrics - * @type string $cluster - * Immutable. Cluster name used to report metrics. - * For Anthos on VMWare/Baremetal, it would be in format - * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in - * format - * `{azureClusters, awsClusters}/cluster_name`. - * @type string $kubernetes_metrics_prefix - * Kubernetes system metrics, if available, are written to this prefix. - * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos - * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today - * but will migration to be under kubernetes.io/anthos - * @type string $cluster_hash - * Immutable. Cluster hash, this is a unique string generated by google code, - * which does not contain any PII, which we can use to reference the cluster. - * This is expected to be created by the monitoring stack and persisted into - * the Cluster object as well as to GKE-Hub. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Project used to report Metrics - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Immutable. Project used to report Metrics - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Immutable. Location used to report Metrics - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Immutable. Location used to report Metrics - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Immutable. Cluster name used to report metrics. - * For Anthos on VMWare/Baremetal, it would be in format - * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in - * format - * `{azureClusters, awsClusters}/cluster_name`. - * - * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getCluster() - { - return $this->cluster; - } - - /** - * Immutable. Cluster name used to report metrics. - * For Anthos on VMWare/Baremetal, it would be in format - * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in - * format - * `{azureClusters, awsClusters}/cluster_name`. - * - * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkString($var, True); - $this->cluster = $var; - - return $this; - } - - /** - * Kubernetes system metrics, if available, are written to this prefix. - * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos - * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today - * but will migration to be under kubernetes.io/anthos - * - * Generated from protobuf field string kubernetes_metrics_prefix = 4; - * @return string - */ - public function getKubernetesMetricsPrefix() - { - return $this->kubernetes_metrics_prefix; - } - - /** - * Kubernetes system metrics, if available, are written to this prefix. - * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos - * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today - * but will migration to be under kubernetes.io/anthos - * - * Generated from protobuf field string kubernetes_metrics_prefix = 4; - * @param string $var - * @return $this - */ - public function setKubernetesMetricsPrefix($var) - { - GPBUtil::checkString($var, True); - $this->kubernetes_metrics_prefix = $var; - - return $this; - } - - /** - * Immutable. Cluster hash, this is a unique string generated by google code, - * which does not contain any PII, which we can use to reference the cluster. - * This is expected to be created by the monitoring stack and persisted into - * the Cluster object as well as to GKE-Hub. - * - * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getClusterHash() - { - return $this->cluster_hash; - } - - /** - * Immutable. Cluster hash, this is a unique string generated by google code, - * which does not contain any PII, which we can use to reference the cluster. - * This is expected to be created by the monitoring stack and persisted into - * the Cluster object as well as to GKE-Hub. - * - * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setClusterHash($var) - { - GPBUtil::checkString($var, True); - $this->cluster_hash = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php deleted file mode 100644 index a09857d77830..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.gkehub.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the 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 the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_detail = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cancel_requested = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_detail - * Output only. Human-readable status of the operation, if any. - * @type bool $cancel_requested - * Output only. Identifies whether the user has requested cancellation - * of 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`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the 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 the 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 the operation finished running. - * - * 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 the operation finished running. - * - * 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. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the 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. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.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. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_detail = 5 [(.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 = 5 [(.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. Identifies whether the user has requested cancellation - * of 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCancelRequested() - { - return $this->cancel_requested; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of 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 cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCancelRequested($var) - { - GPBUtil::checkBool($var); - $this->cancel_requested = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php deleted file mode 100644 index 1ae0d6196454..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.gkehub.v1.ResourceManifest - */ -class ResourceManifest extends \Google\Protobuf\Internal\Message -{ - /** - * YAML manifest of the resource. - * - * Generated from protobuf field string manifest = 1; - */ - protected $manifest = ''; - /** - * Whether the resource provided in the manifest is `cluster_scoped`. - * If unset, the manifest is assumed to be namespace scoped. - * This field is used for REST mapping when applying the resource in a - * cluster. - * - * Generated from protobuf field bool cluster_scoped = 2; - */ - protected $cluster_scoped = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $manifest - * YAML manifest of the resource. - * @type bool $cluster_scoped - * Whether the resource provided in the manifest is `cluster_scoped`. - * If unset, the manifest is assumed to be namespace scoped. - * This field is used for REST mapping when applying the resource in a - * cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * YAML manifest of the resource. - * - * Generated from protobuf field string manifest = 1; - * @return string - */ - public function getManifest() - { - return $this->manifest; - } - - /** - * YAML manifest of the resource. - * - * 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; - } - - /** - * Whether the resource provided in the manifest is `cluster_scoped`. - * If unset, the manifest is assumed to be namespace scoped. - * This field is used for REST mapping when applying the resource in a - * cluster. - * - * Generated from protobuf field bool cluster_scoped = 2; - * @return bool - */ - public function getClusterScoped() - { - return $this->cluster_scoped; - } - - /** - * Whether the resource provided in the manifest is `cluster_scoped`. - * If unset, the manifest is assumed to be namespace scoped. - * This field is used for REST mapping when applying the resource in a - * cluster. - * - * Generated from protobuf field bool cluster_scoped = 2; - * @param bool $var - * @return $this - */ - public function setClusterScoped($var) - { - GPBUtil::checkBool($var); - $this->cluster_scoped = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php deleted file mode 100644 index bb595ca99482..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php +++ /dev/null @@ -1,205 +0,0 @@ -google.cloud.gkehub.v1.ResourceOptions - */ -class ResourceOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The Connect agent version to use for connect_resources. Defaults - * to the latest GKE Connect version. The version must be a currently - * supported version, obsolete versions will be rejected. - * - * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $connect_version = ''; - /** - * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for - * CustomResourceDefinition resources. - * This option should be set for clusters with Kubernetes apiserver versions - * <1.16. - * - * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $v1beta1_crd = false; - /** - * Optional. Major and minor version of the Kubernetes cluster. This is only - * used to determine which version to use for the CustomResourceDefinition - * resources, `apiextensions/v1beta1` or`apiextensions/v1`. - * - * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $k8s_version = ''; - /** - * Optional. Git version of the Kubernetes cluster. This is only used to gate - * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and - * above. - * - * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $k8s_git_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $connect_version - * Optional. The Connect agent version to use for connect_resources. Defaults - * to the latest GKE Connect version. The version must be a currently - * supported version, obsolete versions will be rejected. - * @type bool $v1beta1_crd - * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for - * CustomResourceDefinition resources. - * This option should be set for clusters with Kubernetes apiserver versions - * <1.16. - * @type string $k8s_version - * Optional. Major and minor version of the Kubernetes cluster. This is only - * used to determine which version to use for the CustomResourceDefinition - * resources, `apiextensions/v1beta1` or`apiextensions/v1`. - * @type string $k8s_git_version - * Optional. Git version of the Kubernetes cluster. This is only used to gate - * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and - * above. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The Connect agent version to use for connect_resources. Defaults - * to the latest GKE Connect version. The version must be a currently - * supported version, obsolete versions will be rejected. - * - * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConnectVersion() - { - return $this->connect_version; - } - - /** - * Optional. The Connect agent version to use for connect_resources. Defaults - * to the latest GKE Connect version. The version must be a currently - * supported version, obsolete versions will be rejected. - * - * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConnectVersion($var) - { - GPBUtil::checkString($var, True); - $this->connect_version = $var; - - return $this; - } - - /** - * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for - * CustomResourceDefinition resources. - * This option should be set for clusters with Kubernetes apiserver versions - * <1.16. - * - * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getV1Beta1Crd() - { - return $this->v1beta1_crd; - } - - /** - * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for - * CustomResourceDefinition resources. - * This option should be set for clusters with Kubernetes apiserver versions - * <1.16. - * - * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setV1Beta1Crd($var) - { - GPBUtil::checkBool($var); - $this->v1beta1_crd = $var; - - return $this; - } - - /** - * Optional. Major and minor version of the Kubernetes cluster. This is only - * used to determine which version to use for the CustomResourceDefinition - * resources, `apiextensions/v1beta1` or`apiextensions/v1`. - * - * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getK8SVersion() - { - return $this->k8s_version; - } - - /** - * Optional. Major and minor version of the Kubernetes cluster. This is only - * used to determine which version to use for the CustomResourceDefinition - * resources, `apiextensions/v1beta1` or`apiextensions/v1`. - * - * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setK8SVersion($var) - { - GPBUtil::checkString($var, True); - $this->k8s_version = $var; - - return $this; - } - - /** - * Optional. Git version of the Kubernetes cluster. This is only used to gate - * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and - * above. - * - * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getK8SGitVersion() - { - return $this->k8s_git_version; - } - - /** - * Optional. Git version of the Kubernetes cluster. This is only used to gate - * the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and - * above. - * - * Generated from protobuf field string k8s_git_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setK8SGitVersion($var) - { - GPBUtil::checkString($var, True); - $this->k8s_git_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php deleted file mode 100644 index d04c88055885..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.gkehub.v1.TypeMeta - */ -class TypeMeta extends \Google\Protobuf\Internal\Message -{ - /** - * Kind of the resource (e.g. Deployment). - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - /** - * APIVersion of the resource (e.g. v1). - * - * Generated from protobuf field string api_version = 2; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * Kind of the resource (e.g. Deployment). - * @type string $api_version - * APIVersion of the resource (e.g. v1). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Kind of the resource (e.g. Deployment). - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Kind of the resource (e.g. Deployment). - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * APIVersion of the resource (e.g. v1). - * - * Generated from protobuf field string api_version = 2; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * APIVersion of the resource (e.g. v1). - * - * Generated from protobuf field string api_version = 2; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php deleted file mode 100644 index 89a7b5b28dbb..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.cloud.gkehub.v1.UpdateFeatureRequest - */ -class UpdateFeatureRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; - */ - protected $resource = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * @param \Google\Cloud\GkeHub\V1\Feature $resource Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * @param \Google\Protobuf\FieldMask $updateMask Mask of fields to update. - * - * @return \Google\Cloud\GkeHub\V1\UpdateFeatureRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\GkeHub\V1\Feature $resource, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setResource($resource) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask of fields to update. - * @type \Google\Cloud\GkeHub\V1\Feature $resource - * Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @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); - } - - /** - * Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; - * @return \Google\Cloud\GkeHub\V1\Feature|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3; - * @param \Google\Cloud\GkeHub\V1\Feature $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Feature::class); - $this->resource = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php deleted file mode 100644 index 18371b71de73..000000000000 --- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php +++ /dev/null @@ -1,287 +0,0 @@ -google.cloud.gkehub.v1.UpdateMembershipRequest - */ -class UpdateMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. Please see - * {@see GkeHubClient::membershipName()} for help formatting this field. - * @param \Google\Cloud\GkeHub\V1\Membership $resource Required. Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\GkeHub\V1\UpdateMembershipRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\GkeHub\V1\Membership $resource, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setResource($resource) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type \Google\Cloud\GkeHub\V1\Membership $resource - * Required. Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * 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 Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * - * 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; - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.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. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\GkeHub\V1\Membership|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Required. Only fields specified in update_mask are updated. - * If you specify a field in the update_mask but don't specify its value here - * that field will be deleted. - * If you are updating a map field, set the value of a key to null or empty - * string to delete the key from the map. It's not possible to update a key's - * value to the empty string. - * If you specify the update_mask to be a special path "*", fully replaces all - * user-modifiable fields to match `resource`. - * - * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\GkeHub\V1\Membership $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Membership::class); - $this->resource = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server will know to ignore - * the request if it has already been completed. The server will guarantee - * that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php deleted file mode 100644 index 9b8547744236..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php +++ /dev/null @@ -1,69 +0,0 @@ -createFeature($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Feature $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END gkehub_v1_generated_GkeHub_CreateFeature_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php deleted file mode 100644 index 4dbc83dbd085..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php +++ /dev/null @@ -1,101 +0,0 @@ -setParent($formattedParent) - ->setMembershipId($membershipId) - ->setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $gkeHubClient->createMembership($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Membership $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 = GkeHubClient::locationName('[PROJECT]', '[LOCATION]'); - $membershipId = '[MEMBERSHIP_ID]'; - - create_membership_sample($formattedParent, $membershipId); -} -// [END gkehub_v1_generated_GkeHub_CreateMembership_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php deleted file mode 100644 index e635a795e9fe..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php +++ /dev/null @@ -1,66 +0,0 @@ -deleteFeature($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END gkehub_v1_generated_GkeHub_DeleteFeature_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php deleted file mode 100644 index 6618f41d94df..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $gkeHubClient->deleteMembership($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - - delete_membership_sample($formattedName); -} -// [END gkehub_v1_generated_GkeHub_DeleteMembership_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php deleted file mode 100644 index 40ca312d46ee..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GenerateConnectManifestResponse $response */ - $response = $gkeHubClient->generateConnectManifest($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - - generate_connect_manifest_sample($formattedName); -} -// [END gkehub_v1_generated_GkeHub_GenerateConnectManifest_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php deleted file mode 100644 index 3f3d30bf3ff8..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php +++ /dev/null @@ -1,57 +0,0 @@ -getFeature($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END gkehub_v1_generated_GkeHub_GetFeature_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php deleted file mode 100644 index c89827a1d772..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $gkeHubClient->getMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - - get_membership_sample($formattedName); -} -// [END gkehub_v1_generated_GkeHub_GetMembership_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php deleted file mode 100644 index 0b6f62e5426f..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php +++ /dev/null @@ -1,62 +0,0 @@ -listFeatures($request); - - /** @var Feature $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END gkehub_v1_generated_GkeHub_ListFeatures_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php deleted file mode 100644 index 9765aea962c3..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $gkeHubClient->listMemberships($request); - - /** @var Membership $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 = GkeHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_memberships_sample($formattedParent); -} -// [END gkehub_v1_generated_GkeHub_ListMemberships_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php deleted file mode 100644 index c32e93dee805..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php +++ /dev/null @@ -1,69 +0,0 @@ -updateFeature($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Feature $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END gkehub_v1_generated_GkeHub_UpdateFeature_sync] diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php deleted file mode 100644 index 9e4379be0c35..000000000000 --- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($formattedName) - ->setUpdateMask($updateMask) - ->setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $gkeHubClient->updateMembership($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Membership $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - - update_membership_sample($formattedName); -} -// [END gkehub_v1_generated_GkeHub_UpdateMembership_sync] diff --git a/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php b/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php deleted file mode 100644 index c3960d110409..000000000000 --- a/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php +++ /dev/null @@ -1,651 +0,0 @@ - createFeatureAsync(CreateFeatureRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMembershipAsync(CreateMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFeatureAsync(DeleteFeatureRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMembershipAsync(DeleteMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface generateConnectManifestAsync(GenerateConnectManifestRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFeatureAsync(GetFeatureRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMembershipAsync(GetMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFeaturesAsync(ListFeaturesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMembershipsAsync(ListMembershipsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFeatureAsync(UpdateFeatureRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMembershipAsync(UpdateMembershipRequest $request, array $optionalArgs = []) - */ -final class GkeHubClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.gkehub.v1.GkeHub'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'gkehub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'gkehub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/gke_hub_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/gke_hub_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/gke_hub_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/gke_hub_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a feature - * resource. - * - * @param string $project - * @param string $location - * @param string $feature - * - * @return string The formatted feature resource. - */ - public static function featureName(string $project, string $location, string $feature): string - { - return self::getPathTemplate('feature')->render([ - 'project' => $project, - 'location' => $location, - 'feature' => $feature, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a membership - * resource. - * - * @param string $project - * @param string $location - * @param string $membership - * - * @return string The formatted membership resource. - */ - public static function membershipName(string $project, string $location, string $membership): string - { - return self::getPathTemplate('membership')->render([ - 'project' => $project, - 'location' => $location, - 'membership' => $membership, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - feature: projects/{project}/locations/{location}/features/{feature} - * - location: projects/{project}/locations/{location} - * - membership: projects/{project}/locations/{location}/memberships/{membership} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $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 'gkehub.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. - * *Important*: If you accept a credential configuration (credential - * JSON/File/Stream) from an external source for authentication to Google Cloud - * Platform, you must validate it before providing it to any Google API or library. - * Providing an unvalidated credential configuration to Google APIs can compromise - * the security of your systems and data. For more information {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Adds a new Feature. - * - * The async variant is {@see GkeHubClient::createFeatureAsync()} . - * - * @example samples/V1/GkeHubClient/create_feature.php - * - * @param CreateFeatureRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createFeature(CreateFeatureRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateFeature', $request, $callOptions)->wait(); - } - - /** - * Creates a new Membership. - * - * **This is currently only supported for GKE clusters on Google Cloud**. - * To register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. - * - * The async variant is {@see GkeHubClient::createMembershipAsync()} . - * - * @example samples/V1/GkeHubClient/create_membership.php - * - * @param CreateMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createMembership(CreateMembershipRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateMembership', $request, $callOptions)->wait(); - } - - /** - * Removes a Feature. - * - * The async variant is {@see GkeHubClient::deleteFeatureAsync()} . - * - * @example samples/V1/GkeHubClient/delete_feature.php - * - * @param DeleteFeatureRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFeature(DeleteFeatureRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteFeature', $request, $callOptions)->wait(); - } - - /** - * Removes a Membership. - * - * **This is currently only supported for GKE clusters on Google Cloud**. - * To unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. - * - * The async variant is {@see GkeHubClient::deleteMembershipAsync()} . - * - * @example samples/V1/GkeHubClient/delete_membership.php - * - * @param DeleteMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteMembership(DeleteMembershipRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteMembership', $request, $callOptions)->wait(); - } - - /** - * Generates the manifest for deployment of the GKE connect agent. - * - * **This method is used internally by Google-provided libraries.** - * Most clients should not need to call this method directly. - * - * The async variant is {@see GkeHubClient::generateConnectManifestAsync()} . - * - * @example samples/V1/GkeHubClient/generate_connect_manifest.php - * - * @param GenerateConnectManifestRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GenerateConnectManifestResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function generateConnectManifest(GenerateConnectManifestRequest $request, array $callOptions = []): GenerateConnectManifestResponse - { - return $this->startApiCall('GenerateConnectManifest', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Feature. - * - * The async variant is {@see GkeHubClient::getFeatureAsync()} . - * - * @example samples/V1/GkeHubClient/get_feature.php - * - * @param GetFeatureRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Feature - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFeature(GetFeatureRequest $request, array $callOptions = []): Feature - { - return $this->startApiCall('GetFeature', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a Membership. - * - * The async variant is {@see GkeHubClient::getMembershipAsync()} . - * - * @example samples/V1/GkeHubClient/get_membership.php - * - * @param GetMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMembership(GetMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('GetMembership', $request, $callOptions)->wait(); - } - - /** - * Lists Features in a given project and location. - * - * The async variant is {@see GkeHubClient::listFeaturesAsync()} . - * - * @example samples/V1/GkeHubClient/list_features.php - * - * @param ListFeaturesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listFeatures(ListFeaturesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFeatures', $request, $callOptions); - } - - /** - * Lists Memberships in a given project and location. - * - * The async variant is {@see GkeHubClient::listMembershipsAsync()} . - * - * @example samples/V1/GkeHubClient/list_memberships.php - * - * @param ListMembershipsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listMemberships(ListMembershipsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMemberships', $request, $callOptions); - } - - /** - * Updates an existing Feature. - * - * The async variant is {@see GkeHubClient::updateFeatureAsync()} . - * - * @example samples/V1/GkeHubClient/update_feature.php - * - * @param UpdateFeatureRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateFeature(UpdateFeatureRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateFeature', $request, $callOptions)->wait(); - } - - /** - * Updates an existing Membership. - * - * The async variant is {@see GkeHubClient::updateMembershipAsync()} . - * - * @example samples/V1/GkeHubClient/update_membership.php - * - * @param UpdateMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateMembership(UpdateMembershipRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateMembership', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/GkeHub/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GkeHub/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 7b0047620c7f..000000000000 --- a/owl-bot-staging/GkeHub/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.gkehub.v1", - "libraryPackage": "Google\\Cloud\\GkeHub\\V1", - "services": { - "GkeHub": { - "clients": { - "grpc": { - "libraryClient": "GkeHubGapicClient", - "rpcs": { - "CreateFeature": { - "methods": [ - "createFeature" - ] - }, - "CreateMembership": { - "methods": [ - "createMembership" - ] - }, - "DeleteFeature": { - "methods": [ - "deleteFeature" - ] - }, - "DeleteMembership": { - "methods": [ - "deleteMembership" - ] - }, - "GenerateConnectManifest": { - "methods": [ - "generateConnectManifest" - ] - }, - "GetFeature": { - "methods": [ - "getFeature" - ] - }, - "GetMembership": { - "methods": [ - "getMembership" - ] - }, - "ListFeatures": { - "methods": [ - "listFeatures" - ] - }, - "ListMemberships": { - "methods": [ - "listMemberships" - ] - }, - "UpdateFeature": { - "methods": [ - "updateFeature" - ] - }, - "UpdateMembership": { - "methods": [ - "updateMembership" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_client_config.json b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_client_config.json deleted file mode 100644 index f361405e676f..000000000000 --- a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_client_config.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "interfaces": { - "google.cloud.gkehub.v1.GkeHub": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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 - } - }, - "methods": { - "CreateFeature": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateMembership": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteFeature": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteMembership": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GenerateConnectManifest": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetFeature": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMembership": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFeatures": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMemberships": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateFeature": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMembership": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_descriptor_config.php b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_descriptor_config.php deleted file mode 100644 index 8138ac902a72..000000000000 --- a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_descriptor_config.php +++ /dev/null @@ -1,223 +0,0 @@ - [ - 'google.cloud.gkehub.v1.GkeHub' => [ - 'CreateFeature' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeHub\V1\Feature', - 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMembership' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeHub\V1\Membership', - 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFeature' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMembership' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateFeature' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeHub\V1\Feature', - 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateMembership' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\GkeHub\V1\Membership', - 'metadataReturnType' => '\Google\Cloud\GkeHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GenerateConnectManifest' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GkeHub\V1\GenerateConnectManifestResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFeature' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GkeHub\V1\Feature', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\GkeHub\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListFeatures' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResources', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GkeHub\V1\ListFeaturesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMemberships' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResources', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\GkeHub\V1\ListMembershipsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'feature' => 'projects/{project}/locations/{location}/features/{feature}', - 'location' => 'projects/{project}/locations/{location}', - 'membership' => 'projects/{project}/locations/{location}/memberships/{membership}', - ], - ], - ], -]; diff --git a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_rest_client_config.php b/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_rest_client_config.php deleted file mode 100644 index 2e1886b10219..000000000000 --- a/owl-bot-staging/GkeHub/v1/src/V1/resources/gke_hub_rest_client_config.php +++ /dev/null @@ -1,288 +0,0 @@ - [ - 'google.cloud.gkehub.v1.GkeHub' => [ - 'CreateFeature' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/features', - 'body' => 'resource', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMembership' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/memberships', - 'body' => 'resource', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'membership_id', - ], - ], - 'DeleteFeature' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/features/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMembership' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateConnectManifest' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFeature' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/features/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMembership' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListFeatures' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/features', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMemberships' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/memberships', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateFeature' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/features/*}', - 'body' => 'resource', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateMembership' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}', - 'body' => 'resource', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/memberships/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/features/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/memberships/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/features/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/memberships/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/features/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - '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', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/GkeHub/v1/tests/Unit/V1/Client/GkeHubClientTest.php b/owl-bot-staging/GkeHub/v1/tests/Unit/V1/Client/GkeHubClientTest.php deleted file mode 100644 index 3e5705aa0ed9..000000000000 --- a/owl-bot-staging/GkeHub/v1/tests/Unit/V1/Client/GkeHubClientTest.php +++ /dev/null @@ -1,1213 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return GkeHubClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new GkeHubClient($options); - } - - /** @test */ - public function createFeatureTest() - { - $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/createFeatureTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $expectedResponse = new Feature(); - $expectedResponse->setName($name); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFeatureTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateFeatureRequest(); - $response = $gapicClient->createFeature($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/CreateFeature', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFeatureTest'); - $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 createFeatureExceptionTest() - { - $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/createFeatureTest'); - $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); - $request = new CreateFeatureRequest(); - $response = $gapicClient->createFeature($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFeatureTest'); - 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 createMembershipTest() - { - $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/createMembershipTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $externalId = 'externalId-1153075697'; - $uniqueId = 'uniqueId-538310583'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setUniqueId($uniqueId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createMembershipTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $membershipId = 'membershipId-1132211676'; - $resource = new Membership(); - $request = (new CreateMembershipRequest()) - ->setParent($formattedParent) - ->setMembershipId($membershipId) - ->setResource($resource); - $response = $gapicClient->createMembership($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/CreateMembership', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getMembershipId(); - $this->assertProtobufEquals($membershipId, $actualValue); - $actualValue = $actualApiRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMembershipTest'); - $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 createMembershipExceptionTest() - { - $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/createMembershipTest'); - $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]'); - $membershipId = 'membershipId-1132211676'; - $resource = new Membership(); - $request = (new CreateMembershipRequest()) - ->setParent($formattedParent) - ->setMembershipId($membershipId) - ->setResource($resource); - $response = $gapicClient->createMembership($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMembershipTest'); - 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 deleteFeatureTest() - { - $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/deleteFeatureTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteFeatureTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DeleteFeatureRequest(); - $response = $gapicClient->deleteFeature($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/DeleteFeature', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFeatureTest'); - $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 deleteFeatureExceptionTest() - { - $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/deleteFeatureTest'); - $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); - $request = new DeleteFeatureRequest(); - $response = $gapicClient->deleteFeature($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFeatureTest'); - 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 deleteMembershipTest() - { - $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/deleteMembershipTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteMembershipTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - $request = (new DeleteMembershipRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteMembership($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/DeleteMembership', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteMembershipTest'); - $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 deleteMembershipExceptionTest() - { - $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/deleteMembershipTest'); - $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->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - $request = (new DeleteMembershipRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteMembership($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteMembershipTest'); - 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 generateConnectManifestTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GenerateConnectManifestResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - $request = (new GenerateConnectManifestRequest()) - ->setName($formattedName); - $response = $gapicClient->generateConnectManifest($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/GenerateConnectManifest', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateConnectManifestExceptionTest() - { - $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->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - $request = (new GenerateConnectManifestRequest()) - ->setName($formattedName); - try { - $gapicClient->generateConnectManifest($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFeatureTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Feature(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - $request = new GetFeatureRequest(); - $response = $gapicClient->getFeature($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/GetFeature', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFeatureExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetFeatureRequest(); - try { - $gapicClient->getFeature($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $externalId = 'externalId-1153075697'; - $uniqueId = 'uniqueId-538310583'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setUniqueId($uniqueId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - $request = (new GetMembershipRequest()) - ->setName($formattedName); - $response = $gapicClient->getMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/GetMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMembershipExceptionTest() - { - $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->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - $request = (new GetMembershipRequest()) - ->setName($formattedName); - try { - $gapicClient->getMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFeaturesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resourcesElement = new Feature(); - $resources = [ - $resourcesElement, - ]; - $expectedResponse = new ListFeaturesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResources($resources); - $transport->addResponse($expectedResponse); - $request = new ListFeaturesRequest(); - $response = $gapicClient->listFeatures($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResources()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/ListFeatures', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFeaturesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListFeaturesRequest(); - try { - $gapicClient->listFeatures($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMembershipsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resourcesElement = new Membership(); - $resources = [ - $resourcesElement, - ]; - $expectedResponse = new ListMembershipsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResources($resources); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListMembershipsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMemberships($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResources()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/ListMemberships', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMembershipsExceptionTest() - { - $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]'); - $request = (new ListMembershipsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMemberships($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFeatureTest() - { - $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/updateFeatureTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $expectedResponse = new Feature(); - $expectedResponse->setName($name2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateFeatureTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new UpdateFeatureRequest(); - $response = $gapicClient->updateFeature($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/UpdateFeature', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateFeatureTest'); - $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 updateFeatureExceptionTest() - { - $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/updateFeatureTest'); - $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); - $request = new UpdateFeatureRequest(); - $response = $gapicClient->updateFeature($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateFeatureTest'); - 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 updateMembershipTest() - { - $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/updateMembershipTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $externalId = 'externalId-1153075697'; - $uniqueId = 'uniqueId-538310583'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setUniqueId($uniqueId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateMembershipTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - $updateMask = new FieldMask(); - $resource = new Membership(); - $request = (new UpdateMembershipRequest()) - ->setName($formattedName) - ->setUpdateMask($updateMask) - ->setResource($resource); - $response = $gapicClient->updateMembership($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/UpdateMembership', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMembershipTest'); - $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 updateMembershipExceptionTest() - { - $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/updateMembershipTest'); - $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->membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]'); - $updateMask = new FieldMask(); - $resource = new Membership(); - $request = (new UpdateMembershipRequest()) - ->setName($formattedName) - ->setUpdateMask($updateMask) - ->setResource($resource); - $response = $gapicClient->updateMembership($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMembershipTest'); - 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 createFeatureAsyncTest() - { - $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/createFeatureTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $expectedResponse = new Feature(); - $expectedResponse->setName($name); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFeatureTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateFeatureRequest(); - $response = $gapicClient->createFeatureAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.gkehub.v1.GkeHub/CreateFeature', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFeatureTest'); - $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()); - } -}